100 %
User avatar
By WelshPaul
Posts Signature Likes Avatar Topics
Below you will find a UK dial plan, in fact it is my dial for use with my VoIP provider Voipfone. It is setup to allow calls to be made to local numbers without the need to enter my own area code every time I call a local number, it is also set to bar calls to 090 premium rate calls.

Last updated: 23 February 2022
Take a look at it below:
Code: Select all
Now read on for an explanation of what each part of the above dial plan actually does!

Breakdown 1:
If you were to dial a number starting with 09 and you have the above string in your dial plan the call will be terminated immediately, this is great for preventing calls to premium rate numbers. (The ! part of the string tells the phone not to continue with the call.)

Breakdown 2:
This part of the dial plan is rather straight forward, it deals with three-digit numbers such as 101, 166, 200 and 999 to list but a few. Some of the strings have S4 on the end. The reason for this is simple, S4 will tell the device to wait four seconds before matching any numbers entered against that dial plan string which gives the user time to enter further digits which may be needed to dial longer numbers.

An example, you want to dial 123, if we have 123 or 123S0 in the dial plan then this will allow you to do just that without delay, upon pressing 3 the phone gets a match and dials the number immediately however should you need to dial 123456 then you would be unable to do so because once you get to the point where you entered third digit it would have matched the numbers entered against the 123 or 123S0 string and dialled that number.

S0 at the ends tells the device to dial the number without delay.

Breakdown 3:
This part of the dialplan string matches four digit numbers such as 1471 and 1571. The first number must be a 1, the second number can be a 4 or a 5, the third must be a 7 and the fourth can be any number between a 1 and 3.

Breakdown 4:
This allows calls to helpline numbers such as 116 006 or directory enquiries such as 118 118. The x's represents a number from 0-9 so instead of me having individual dialplan strings for each number beginning with 118 and there are loads here in the UK (e.g. 118 555 or 118 888) in my dial plan the x's allow me to use one string to match several numbers beginning with 118 otherwise my dial plan would be oh so longgggggggggggggg!

Breakdown 5:
When you dial a local area phone number from BT landlines you only need to dial the phone number, you don't need to include the area code like you do on mobile phones. Sadly just like mobile phones when calling out on Cisco, Linksys, Sipura and as far as I am aware all other VoIP phones and adaptors you need to enter your area code first when dialling a local phone number.

The above string will automatically add your local area code to every local call you make. 01792 is the local area code for Swansea, my home town. All you need to do is change the 01792 part of the string to your area code, if your area code is 0121 then you simply change it to look like this: <:0121>[2-8]xxxxx

Any six digit numbers you dial starting with a 2, 3, 4, 5, 6, 7 or 8 will start to ring immediately. If you dial 456456 the phone will actually call 01792456456. You need to make sure your dial plan does not contain any other strings that may interfere with calling local numbers, e.g. if I had the following string in my dial plan 456S0 then I wouldn't be able to call local numbers beginning with 456 as it would dial out early not allowing me time to enter the final three digits.

Breakdown 6:
This part of the dial plan string matches eight digit numbers such as Childline.

Breakdown 7:
An easy one, refers to UK national numbers and numbers like 0800, 0870, 0871 etc...

Breakdown 8:
As above however allows you to add a prefix such as 141 or 1470 when dialling national/mobile numbers. 141 hides your number, 1470 shows your number.

Breakdown 9:
This is solely used in my dial plan to allow calls to other users who use my VoIP provider Voipfone.

Breakdown 10:
This part of the dial plan refers to international calls, as international numbers vary in length there is no easy way to create a string for them unless you create individual strings for each country code and the problem there is your dial plan would be so longgggggggggggggg. By now you should understand what the string does up until the full stop at the end, the full stop simply allows more time to input numbers. As mentioned above, because international numbers vary in length you cannot create a fixed string of say eleven digits for all international calls otherwise should you attempt to call a number of lets say fifteen digits in length, your device would have started to call out on the eleventh digit.

Breakdown 11:
As above however allows you to add a prefix such as 141 or 1470 when dialling international numbers. 141 hides your number, 1470 shows your number.

Breakdown 12:
Again, this part of the dial plan refers to international calls, instead of 00 allows the user to subtitute 00 with a +.

Breakdown 13:
Again this string is unique to Voipfone, example: dialling **201 allows you to pick up extension 201 when it is receiving an incoming call from another phone.

Breakdown 14
The last part is used to identify short codes, you know numbers like *36 usually used to turn on a service or deactivate one.

A dial plan always starts with a ( and ends with an ) the | symbol located in the above dial plan is used to separate each dial plan command.
WelshPeter liked this
User avatar
By aaceuk
Posts Avatar
Hi WelshPaul

Have you got an update for this Dial Plan please?

I'm with Voipfone and I'm looking to automatically add a local area code (which is 0191) for local numbers like you've done here. However when I copy & paste this dial plan it doesn't work for me, I can't dial out any numbers at all, I just get a single long tone.

If you have an update to this that works with VoipFone it would be appreciated?

User avatar
By WelshPaul
Posts Signature Likes Avatar Topics
Here you go Andy:
Code: Select all
Just dial a local number without including the 0191 area code.
User avatar
By MikeP
Posts Avatar
I've been scouring the web recently trying to find ways to adjust the dial plan on my Cisco (Linksys) SPA942. I've found various guides but the dial plan code is alien to me and I'm lost. I'm wondering if you could assist in any way?

This is what I'd like;

When dialing a UK number i.e. 01241, I don't have to dial 441241 and when dialing the US or other countries I'd just dial their international code (as it currently works i.e. 1xxxxxxxxx)

My current dial plan is this which appears to be the default;


Thanks so much in advance!
User avatar
By WelshPeter
Posts Likes Avatar Topics
Thanks for the info on the Dial Plan. I wanted to program the feature covered in "Breakdown:7". I cut and pasted the text into my SPA112 Dial Plan and no more having to enter 01792 before local numbers. As you're probably aware, one slight update is to change [2-8] to [2-9] as some Swansea numbers now start with 9.

Cheers, Pete
WelshPaul liked this
User avatar
By WelshPaul
Posts Signature Likes Avatar Topics
Ah yea thanks for the heads about "Swansea numbers now start with 9". I have updated all previous dial plans to include this change. 🤦‍♂️👍
WelshPeter liked this
User avatar
By winenous
Posts Likes Avatar
WelshPaul wrote: Fri 2nd Jan 2015, 22:51 Here you go Andy:
Code: Select all
Just dial a local number without including the 0191 area code.
Thank you for this useful thread, but I think anyone using this dial plan should note that "<0191>[2-8]xxxxxxS3" should be "<:0191>[2-8]xxxxxxS3" (with a ":"). Shouldn't it?

If I've misunderstood something, please feel free to delete this post. Or indeed, if you chose to edit your earlier post, delete this one anyway!
WelshPaul liked this
User avatar
By WelshPaul
Posts Signature Likes Avatar Topics
@winenous Opps - Updated my post and thanks. 👍
User avatar
By andrewdbate
Posts Likes Avatar
I just want to point out to others coming to this thread that the dial plan shown in the first post is different to the breakdown shown underneath. (I am guessing this is a mistake.)

The dial plan I am using on my Cisco SPA112 is the following:
Code: Select all
This dial plan is just the fragments shown above in Breakdown 1 though 9 inclusive and Breakdown 12 joined together with | and also starting with ( and ending with ). I did not include the fragments from Breakdown 10 or 11 because I do not want the Voipfone specific patterns.

User avatar
By WelshPaul
Posts Signature Likes Avatar Topics
Hello and welcome...

I originally wrote this back in 2006 on the Voipfone User Forum which in turn later shut down and so I posted it again here back in 2013. Over the years I have made many tweaks to the dial plan but forgot to update the accompanying text. 👀

It still needed a tweak or two and so I have just updated the dial plan but this time I have also updated the accompanying text to match those changes. For clarity I have placed a notice at the top of the post, so people know when I last updated the dial plan. 👍

Hi Tony, I have just found that in the FAQ as well, se…

PSTN (analogue Phone line) to PBX

Hi, You/I need to think about FXO and FXS ports, see h…

Sip to PSTN lines gateway

Hi Dean, This product from Patton could be good for yo…

A Hook Flash is nothing more than hanging up and picki…

Sign up for VIP membership