[asterisk-dev] extension ordering

Sergey Okhapkin sos at sokhapkin.dyndns.org
Sun Jan 22 12:02:48 MST 2006


Agreed. Extensions should be sorted in a natural "best fit" order
instead of alphabetical and (what the hell???) contexts include order.

On Sun, 2006-01-22 at 10:52 -0800, Luigi Rizzo wrote:

> i noticed that the ordering of extensions in the
> internal lists is determined by a strcmp(), which means
> that if a string is a prefix of another,
> the prefix comes first.
> 
> Is there a reason for this ? because it seems contrary
> to what is at least common practice in IP routing
> (longest prefix match first), and it would seem
> convenient to me that in a dialplan you have exceptions first
> and a general rule afterwards...
> 
> (why i am asking here and not on -users ? because
> on -users i would ask for a workaround, whereas here
> i am asking the motivation of this design choice...)
> 
> cheers
> luigi
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20060122/61a2d03c/attachment.htm


More information about the asterisk-dev mailing list