[asterisk-dev] new priority of pattern matching in 1.4. Does it makes sense?

Jared Smith jsmith at digium.com
Fri Feb 22 11:28:31 CST 2008


On Fri, 2008-02-22 at 20:04 +0200, Tzafrir Cohen wrote:
> So: it scans all potential contexts first looking for an exact match and 
> then scans all contexts looking for an inexact match?

Nope... it's no different for an exact match than it is for a pattern
match.  Asterisk first looks in the current context, and if it finds
*any match at all*, it won't follow any switch or include statements.
Only if it doesn't find any matches at all will it follow switch and
include statements.

-- 
Jared Smith
Community Relations Manager
Digium, Inc.




More information about the asterisk-dev mailing list