So we have configured our trunk and our extension and now we need to tell FreePBX to use that trunk when someone dials a number. This is done by creating an Outbound Route.
The configuration below also takes in to consideration the fact that I am in the UK and that callcentric is a US company. Your setup may differ.
Creating an outbound route
First we need to click on “Outbound Routes” in the main menu on the left hand side of the screen
Now we need to create the route. Give it a name – I’ve called mine “external”
Now we need to enter a “Dial Pattern”. This is what decides if this route is used or not. You can hover your mouse over “Dial Patterns” to get a description.
I have entered “0.” as my dial pattern. This means that if an extension/user dials any number beginning with 0 (zero) it will use the trunk selected.
Now select “SIP/callwithus” to be your destination trunk and click “Submit Changes”
Now, because I’m in the UK I’m going to create a “Dial Rule” on my trunk. So click on “Trunks” on the left hand menu and select our trunk “SIP/callwithus” on the right hand menu.
I’ve created 1 rule and this is what it does –
0044+0|Z. – if someone dials a number that starts with 0 followed by another number that’s not a 0 then remove the first zero and adds 0044 to the front of the number. Basically this turns a local UK number into the international equivalent. So “0800 123 4567” becomes “0044 800 123 4567”. I need this because callwithus is a US based provider and needs to be told to dial a UK number as an “International” number.
Scroll down to the bottom and click “Submit Changes”
Now you should be able to go to your extension and dial an external number. Either a national UK one or an international number, by using 00 as the international prefix