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

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Tue Mar 17 08:32:39 CDT 2009


On Tuesday 17 March 2009 05:32:52 Benny Amorsen wrote:
> Tilghman Lesher <tilghman at mail.jeffandtilghman.com> writes:
> > When it comes to the short-circuit operators "." and "!", the first
> > matches, based upon an alphanumeric search of the entire extension
> > string.  As Steve Davies correctly pointed out, the order in which
> > matching is done is better managed by using ordered includes (depth-first
> > search).  Also note that the short-circuit operators may only be the
> > final character within an extension, by definition:  the short-circuit
> > nature of the character means that no further matching will be done.
>
> Why is it that Asterisk does not let people specify the order, except
> with the rather inconvenient use of includes?
>
> It is probably the thing that annoys me the most about dial plans.

Probably because it's very difficult to both allow people to specify their own
ordering as well as maintaining good performance characteristics of the
resulting search field.  I don't see a problem with permitting that load
pattern, though, as long as that mode is user-selectable and not the default.

-- 
Tilghman



More information about the asterisk-dev mailing list