To make calls to a regular telephone we need an account with a call provider. Our FreePBX system will pass the call to the call provider (using SIP) and the call provider will pass the call to the regular telephone system. This is sometimes referred to as ‘call termination’
There are literally hundreds of SIP call providers to choose from. This guide uses voiptalk.org who are a large provider in the UK. First you need to sign up with the call provider and deposit some call credit with them. You will then receive SIP credentials which you will use to configure your connection (SIP trunk) to them.
They should also provide you with some configuration settings that you need to enter. Because FreePBX/Asterisk is so popular many providers will be able to let you know what settings to use. The settings can vary depending on the call provider.
There are 2 steps to this. First we need to set up the connection (SIP trunk) then we need to tell FreePBX what calls to send via that trunk. Don’t forget we could use many different call providers (possibly for different call destinations). We need to let FreePBX know what trunk to use for what calls.
Set up SIP trunk
Select Connectivity / Trunks form the menu
Click on Add SIP Trunk
Give the SIP trunk a name
Enter the SIP trunk details. The settings required will depend on the call provider. Then click Submit Changes
When you click OK you will be warned about not having a Caller ID set. As we don’t have any phone numbers configured on the system yet it’s OK to ignore this warning
Now we have our trunk set up we need to configure an Outbound Route, to tell FreePBX to place calls via this trunk.
Setting up an Outbound Route
Select Connectivity / Outbounds Routes from the main menu
Give your Outbound Route a name. I’m going to keep it the same as the trunk name. Then in the ‘match pattern’ box enter ‘X.‘ (letter X followed by a dot). This matches any number dialled that is not an internal phone number. So any number we call is going to get sent via this trunk. Then Submit Changes
Finally click Apply Config and we’re done. We should now be able to make a call from the extension we set up earlier
Checking if the trunk registered OK
As we entered registration information for this trunk (it’s not always the case this will be required, it will depend on the call provider) we should be able to check it registered OK.
Click ok Reports / Asterisk info
Select Registries from the right hand side