Make extension match characters case-insensitive.
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 6 Jun 2008 19:55:08 +0000 (19:55 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 6 Jun 2008 19:55:08 +0000 (19:55 +0000)
(closes issue #12777)
 Reported by: jsmith
 Patches:
       lower_case_patterns-trunk-v1.patch uploaded by jsmith (license 15)

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

main/pbx.c

index 343ed85..8f6fb83 100644 (file)
@@ -1483,7 +1483,7 @@ static int ext_cmp1(const char **p)
                ;       /* ignore some characters */
 
        /* always return unless we have a set of chars */
-       switch (c) {
+       switch (toupper(c)) {
        default:        /* ordinary character */
                return 0x0000 | (c & 0xff);