[asterisk-dev] Better pattern matching

Jason Parker jparker at digium.com
Thu Aug 2 10:18:44 CDT 2007

Vasil Kolev wrote:
> В чт, 2007-08-02 в 10:26 -0400, Leif Madsen написа:
>> 2) The ability to have an alias or shortcut to say, "use the previous pattern 
>> match", similar to the 'n' priority (or rather, the 's' priority), so I can 
>> write a complex pattern match, BUT only have to write it on the first 
>> priority
>> exten => nancy|jim|james,1,NoOp()
>> exten => p,n,Verbose(1|My current EXTEN is ${EXTEN})
>> exten => p,n,Playback(silence/1&tt-weasels)
>> exten => p,n,Hangup()
> Please rethink this - it would make grep-ing through the files useless,
> and most of the time it's the fastest way to see what goes where
> (especially if you need to go through multiple files).

The 'p' extension would be optional.  You would still be able to do it 
the 'normal' way.

Jason Parker

More information about the asterisk-dev mailing list