pbx: Fix regression caused by taking advantage of the function name sort.
authorRichard Mudgett <rmudgett@digium.com>
Sat, 9 Feb 2013 20:58:53 +0000 (20:58 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Sat, 9 Feb 2013 20:58:53 +0000 (20:58 +0000)
commit0e442112ada90d53cf8991b63bd3970cfaa7cc7a
tree0fae9915fe648a9103d54f1407f8ab1bba6cfe4d
parent1e65035d17b9774a959219e7ba68ff608639ba99
pbx: Fix regression caused by taking advantage of the function name sort.

Taking advantage of the sorted order of the registered functions container
requires that they are actually inserted in the expected sort order.

* Insert the registered functions into the container in case sensitive
position.  As a result, only the complete_functions() routine needs to
search the entire container because it does a case insensitive search for
convenience.

Caught by the unit tests.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@381118 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/pbx.c