FreePBX 2.11 Guide: Local number dialling

When using VOIP to place telephone calls our call provider has no real concept of our exact geographical location, we could be anywhere. So there’s no ‘local’ area code by default.

In this set up guide we are using Voiptalk to place our external calls. As they are a UK provider they will accept UK numbers dialled in the regular national format.┬áSo if I want to dial a Northampton number (with the area code 01604) I can call “01604 838383”. But if my telephone users are based in Northampton they may be used to just dialling “838383”

We can implement this by manipulating a number dialled in to the format expected by the call provider. We are going to do this by setting up “Dialed Number Manipulation Rules” on the “voiptalk” trunk we created earlier.

The rule we want to create is –

  • Any 6 digit number dialled that starts with a 7 or an 8 gets 01604 added to the front before being sent to the call provider

Adding the manipulation rules

Dialed number manipulation rules

Dialed number manipulation rules

FreePBX apply config

FreePBX apply config

And that’s it. Now if an extension dials a matching number that goes out via this trunk it will have the area code added to the front.

It possible to do this sort of manipulation on either the Outbound Route or on the Trunk. I chose to do it on the trunk because if we set up another trunk (with a different call provider) in the future then the number that needs to be added could be different. Maybe the new provider will expect the number to be in full international format, so we’d need to add 00441604 to the front.

Pattern matching

There’s a great pop-up help screen to help you match the dialled number. Click on the little blue question mark after “Dialed Number Manipulation Rules”

Help for dialed number manipulation rules

Help for dialed number manipulation rules