How do I use my Call Plan number with FreePBX?

By following the steps below you will be able to make and receive calls using your Irish VoIP number from your FreePBX (CHAN_SIP) server with automatic failover from our Primary to Secondary server in case of an outage.

Step 1

Add a CHAN_SIP trunk called IrishVoIP-Outbound-Primary.

In SIP Settings -> Outgoing tab set Trunk Name to IrishVoIP-Outbound-Primary with Peer Details as below replacing your YOURNUMBER and YOURPASSWORD.

YOURNUMBER is in format similar to 35311234567 as received on signup

type=peer
qualify=4000
username=YOURNUMBER
fromuser=YOURNUMBER
secret=YOURPASSWORD
host=primary.irishvoip.com
port=5099
disallow=all
allow=ulaw&alaw

In SIP Settings -> Incoming tab set Register String as below (User Details and User Context should be blank)

YOURNUMBER:YOURPASSWORD@primary.irishvoip.com:5099/YOURNUMBER

Step 2

Add another CHAN_SIP trunk called IrishVoIP-Outbound-Secondary.

In SIP Settings -> Outgoing tab set Trunk Name to IrishVoIP-Outbound-Secondary with Peer Details as

type=peer
qualify=4000
username=YOURNUMBER
fromuser=YOURNUMBER
secret=YOURPASSWORD
host=secondary.irishvoip.com
port=5099
disallow=all
allow=ulaw&alaw

In SIP Settings -> Incoming tab set Register String as below (User Details and User Context should be blank)

YOURNUMBER:YOURPASSWORD@secondary.irishvoip.com:5099/YOURNUMBER

Step 3

Create an Inbound Route with no settings except a name, DID = YOURNUMBER and destination (your chosen extension, ring group, IVR etc).

Step 4

Create an Outbound Route with the settings you wish to access for outbound calls?

For Example

To make people dial 9 for outbound include 9 in prefix and X. in dial pattern. This will route everything entered after 9 over Irish VoIP e.g 9017654321 will ring 017654321 over Irish VoIP.

Choose both Irish VoIP trunks with the IrishVoIP-Primary first, name the route and save.

Step 5

Log into the server terminal using Putty or similar tool and edit the file /etc/asterisk/sip_custom.conf using vi or nano and add the text below to allow inbound traffic to reach your server.

[IrishVoIP-Inbound-Primary]
host=primary.irishvoip.com
port=5099
type=peer
context=from-sip-external
allow=all
qualify=4000

[IrishVoIP-Inbound-Secondary]
host=secondary.irishvoip.com
port=5099
type=peer
context=from-sip-external
allow=all
qualify=4000

Save the file and reload the configuration by typing fwconsole restart and hit return.

You can check all is OK by going to Reports->Asterisk Info->Chan_Sip Info on the FreePBX GUI. You should see the two registrations for inbound under Registry (will say registered if OK), the two trunks for outbound and the two trunk for inbound under Peers

That's it!

You can now make and receive calls from your PBX using your Irish VoIP Call Plan number

NOTE: Caller ID will always be your registered number when using this route and trunk even if changed in FreePBX.

Remember to keep your account topped up. Check your balance at any time by dialling 172

  • 1054 Users Found This Useful
Was this answer helpful?

Related Articles

FreePBX Feature List

  Caller ID Call Transfer Call Parking Call Forwarding Call Recording Call...

How to transfer a call with Freepbx?

Blind Transfer - If you wish to simply blind transfer a call to another extension perform the...

Device Settings

Irish VoIP settings are simple for most client devicesUSERNAME= Your number in full format like...

Device Settings

Irish VoIP settings are simple for most client devicesUSERNAME= Your number in full format like...

How to use Microsip for Windows with my Call Plan

We recommend Microsip as a comprehensive, lightweight and free SIP client for Windows based...