[asterisk-dev] CID match uses "shortest prefix match"

Klaus Darilion klaus.mailinglists at pernau.at
Mon Mar 16 12:47:00 CDT 2009



Jared Smith schrieb:
> ----- "Klaus Darilion" <klaus.mailinglists at pernau.at> wrote:
>> I tried the CID match feature of Asterisk (1.4.23) but found a strange
>>
>> behavior: it matches on shortest prefix, e.g:
>>
>>    s/_+436991116! => &Macro1();
>>    s/_+4369911!   => &Macro2();
>>
> 
> Just out of curiosity... what happens when you use a "." instead of "!" in the pattern?  Does it still behave the same way?


Yes. Using . causes the same behavior - shortest prefix match

regards
klaus


PS: I also compared '!' and '.' for normal extension matching: both do 
longest prefix matching



More information about the asterisk-dev mailing list