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.
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)
Create an Inbound Route with no settings except a name, DID = YOURNUMBER and destination (your chosen extension, ring group, IVR etc).
Create an Outbound Route with the settings you wish to access for outbound calls?
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.
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.comSave the file and reload the configuration by typing fwconsole restart and hit return.
port=5099 type=peer context=from-trunk allow=all qualify=4000
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
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