snom dial plan

Status
Not open for further replies.

Billy Wright

Silver Partner
Basic Certified
Joined
Mar 18, 2019
Messages
19
Reaction score
0
Hi please can someone help me, i have this dial plan (UK) and im not sure how it works but it does

if you dial 11 digits starting with 0 it auto dials so they dont have to press the tick

also if you dial 2 first followed by 2 more digits between 0 and 9 it auto dials 200 range extension numbers auto without pressing the tick,

What i am after is adding to this so if people dial 300 range and 400 range is will auto dial without the tick

<user_dp_str idx="1" perm="">|(^0[1-9][0-9]{9}$)|sip:\1@\d|d |^2([0-9]{2})$|2\1@\d|d</user_dp_str>


im just not sure how to add it

thanks
 
Haven't played around a lot with the Snom dialplan, but, if it works for 2XX extensions you could add this..

|^3([0-9]{2})$|^4([0-9]{2})$|

You can probably replace the 2 with |2-4|, and use just one rule for all extensions, but I'm not certain of the bracket syntax.
You'll have to play with it.
 
Hi that didnt seem to work not sure what you mean by replace the 2 with so i tried it in ever position :) anyway back to the drawing board

thanks
 
This portion of the dialplan accommodates the extension dialing for 3 digit calls starting with 2.

|^2([0-9]{2})$|

So if you replace the 2 with 2-4, something like |^[2-4]([0-9]{2})$| then it may work. As I said, I'm not familiar with the bracket syntax on Snom so there may be some other characters that are also required
 
Hi still didnt work but with a lot of messing around i got this to work

<user_dp_str idx="1" perm="">|(^0[1-9][0-9]{9}$)|sip:\1@\d|d |(^2[0-9]{2}$)|sip:\1@\d|d |(^3[0-9]{2}$)|sip:\1@\d|d |(^4[0-9]{2}$)|sip:\1@\d|d</user_dp_str>

so this will work with anything with 0 plus 10 digits and anything beginning with 2, 3 and 4 with 3 digits for internal calling.

thanks for your help though
 
Status
Not open for further replies.

Members Online Now

Forum statistics

Threads
111,832
Messages
589,280
Members
164,662
Latest member
DejanMDS