The correct answer is you don’t do it, because it isn’t a sensible thing to do, especially when using analogue phones. (With SIP phones you will get the problem in setting up the phone’s own “dial plan”, or will have to tolerate waiting for a timeout on the last digit.)
However, anyone sensible would actually have, say, extensions 2001-2150.
NB I haven’t tested this. The ! is the highest risk element. It should not be used on analogue phones,as they really send the digits one by one. For those you will have to relay on a timeout. However, I’m not sure I’ve ever used in in anger.
It provides four ways of matching. The first line matches 1 digit numbers, the second two digit numbers, the third matches 100-149 and the fourth matches 150. If I’ve got it right, the ! prevents having to wait for a timeout, when all the digits are sent at once, but will cause everything to be treated as a one digit number if the digits are sent individually.
s is a shorthand for n-1 and means all the lines have the same priority. You really should know what n means.
The ellipsis is your Dial application call.
I didn’t bother writing “exten=>” each time.
_Z!,1,Dial(SIP/${EXTEN})
_ZX!,n,Dial(SIP/${EXTEN})
_1[0-4]X,n,Dial(SIP/${EXTEN})
150,n,Dial(SIP/${EXTEN})
And for me to understand it, if the 150 clients become for example 148, then will be like this?
Z!,1,Dial(SIP/${EXTEN})
_ZX!,n,Dial(SIP/${EXTEN})
_1[0-4]X,n,Dial(SIP/${EXTEN})
148,n,Dial(SIP/${EXTEN})
Thanks in advance.
You need to have some basic skills in order to understand the answers here. David could answer your questions, but it would essentially be the same as in the guide. Sorry, but there is no shortcut.