How do I use my Call Plan number with FreePBX? Print

  • 1845

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-Connect.

In SIP Settings -> Outgoing tab set Trunk Name to IrishVoIP-Outbound-Connect 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=connect.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@connect.irishvoip.com:5099/YOURNUMBER

Step 2

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

Step 3

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 the Irish VoIP trunk name the route and save.

Step 4

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-Connect]
host=connect.irishvoip.com
port=5099 type=peer context=from-trunk allow=all qualify=4000
Save the file and reload the configuration by typing fwconsole reload 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 a registration for inbound under Registry (will say registered if OK), a trunk for outbound and a 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


Was this answer helpful?

« Back

Powered by WHMCompleteSolution