[Asterisk-Users] exten patterns: how to match from XXX to ZZZ ?
Alessio Focardi
afoc at interconnessioni.it
Mon Oct 4 06:52:32 MST 2004
Hello Benjamin,
It seems pretty reasonable, Tnx !
BoAML> On Mon, 4 Oct 2004 15:27:40 +0200, Alessio Focardi
BoAML> <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
BoAML> 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)
BoAML> ...
exten =>> _2[5-9]X,1,NoOp(calls to extensions 250-299)
BoAML> ...
BoAML> so if you want to split it right in the middle (200-249 is 50
BoAML> extensions, 250-299 is 50 extensions) then that would work in your
BoAML> favour.
BoAML> rgds
BoAML> benjk
--
Best regards,
Alessio mailto:afoc at interconnessioni.it
More information about the asterisk-users
mailing list