[asterisk-users] Dialplan end of pattern matching question

Warren Selby wcselby at selbytech.com
Tue Feb 15 15:41:41 CST 2011


On Tue, Feb 15, 2011 at 3:03 PM, Doug Lytle <support at drdos.info> wrote:

> Gabriel Ortiz Lour wrote:
>
>> exten => _6XXX,1,NoOp(test1)
>>
>> exten => _XXXX,1,NoOp(test2)
>> exten => _XXXX,2,NoOp(test3)
>>
>
>
>
If you're going to keep them in the same context, you can change the second
pattern to exclude 4 digit numbers starting with a 6:

exten => _6XXX,1,Verbose(Test1)

exten => _[123457890]XXX,1,Verbose(Test2)
same => 2,Verbose(Test3)

There may even be a better pattern exclusion match parameter...this is just
what I came up with off the top of my head.

-- 
Thanks,
--Warren Selby, dCAP
http://www.selbytech.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110215/47b380ab/attachment.htm>


More information about the asterisk-users mailing list