SIP URI Calling FROM FusionPBX and FS PBX
If you have relatives or business contacts in far away places, you may find it more cost-effective to contact them using a SIP URI for which there are no communications charges. For purposes of this tutorial, we will be using the free Zoiper5 application to make the SIP calls. In the previous tutorial we explained how to make a direct SIP URI call TO a FusionPBX or FS PBX server using Zoiper. The drawback of make the direct call from Zoiper to a FusionPBX or FS PBX is you must whitelist the public IP address of your Zoiper for every site from which you make a call. And, if the site happens to have a dynamic IP address, the calls will fail as soon as the IP address changes.
To avoid this, the simple solution is to register the Zoiper client to a server with a static public IP address. If that happens to be a FusionPBX or FS PBX server, then you also have to enable SIP URI dialing through the PBX. Also note that the syntax for the Zoiper call will also change from sip:extension@fusionpbx.yourdomain.org to extension at fusionpbx.yourdomain.org without the sip: prefix.
Here’s how to enable SIP URI calling through a FusionPBX or FS PBX server:
1. Create a Gateway TO the destination FusionPBX or FS PBX server in Accounts -> Gateways and then click SAVE:
Gateway: fusionpbx-destination
Proxy: Public IP address of your calling server
Context: public
Enabled
2. In Dialplan -> Outbound Routes, create an Outbound Route for SIP URI calls TO the destination PBX and click SAVE:
Gateway: fusionpbx-destination
Dialplan Expression: destination_number ^(^@\s+@^@\s+\.^@\s+)$
Destination: choose any option e.g. North America (which will be change below)
3. Edit and SAVE the Outbound Route you just created and make the following changes:
change order to: 90
change action bridge to: sofia/gateway/fusionpbx-destination/$1
4. Allow the IP address of the Calling PBX in Advanced -> Access Control -> providers
5. Click Reload ACL in Status -> SIP Status
This will allow making SIP URI calls to any extension, ring group, or DID with the syntax extension@fusionpbx.somedomain.com while Zoiper is registered to the calling server just as if you called from a traditional phone… except the SIP URI call will be free.