[asterisk-dev] extension ordering
Luigi Rizzo
rizzo at icir.org
Sun Jan 22 11:52:29 MST 2006
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
More information about the asterisk-dev
mailing list