Several fixes to the extenpatternmatchnew logic.
authorMark Michelson <mmichelson@digium.com>
Fri, 17 Apr 2009 13:29:33 +0000 (13:29 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 17 Apr 2009 13:29:33 +0000 (13:29 +0000)
commit6c29f76d2c8c0f59da02e0732a0db1d41fc3beb7
tree5b8f6e586d82db975640c1eba44c6c49777fcfeb
parentecc3c7c4a6eeb19eb091ba156f308cb1c4e11a5d
Several fixes to the extenpatternmatchnew logic.

1. Differentiate between literal characters in an extension
and characters that should be treated as a pattern match. Prior to
these fixes, an extension such as NNN would be treated as a pattern,
rather than a literal string of N's.

2. Fixed the logic used when matching an extension with a bracketed
expression, such as 2[5-7]6.

3. Removed all areas of code that were executed when NOT_NOW was
#defined. The code in these areas had the potential to crash, for
one thing, and the actual intent of these blocks seemed counterproductive.

4. Fixed many many coding guidelines problems I encountered while looking
through the corresponding code.

5. Added failure cases and warning messages for when duplicate extensions
are encountered.

6. Miscellaneous fixes to incorrect or redundant statements.

(closes issue #14615)
Reported by: steinwej
Tested by: mmichelson

Review: http://reviewboard.digium.com/r/194/

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