[Asterisk-Users] exten patterns: how to match from XXX to ZZZ ?

Benjamin on Asterisk Mailing Lists benjk.on.asterisk.ml at gmail.com
Mon Oct 4 06:43:38 MST 2004


On Mon, 4 Oct 2004 15:27:40 +0200, Alessio Focardi
<afoc at interconnessioni.it> wrote:
> Calls coming to extensions [200-250] have to be trunked to a server
> 
> Calls coming to extensions [251-299] have to be trunked to a different
> one

the closest you can get to that with only two patterns would be:

exten => _2[0-4]X,1,NoOp(calls to extensions 200-249)
...
exten => _2[5-9]X,1,NoOp(calls to extensions 250-299)
...

so if you want to split it right in the middle (200-249 is 50
extensions, 250-299 is 50 extensions) then that would work in your
favour.

rgds
benjk

-- 
Sunrise Telephone Systems, 9F Shibuya Daikyo Bldg., 1-13-5 Shibuya,
Tokyo, Japan.

NB: Spam filters in place. Messages unrelated to the * mailing lists
may get trashed.



More information about the asterisk-users mailing list