This change fixes bug 7820. Way back in April this bug was reintroduced, it appears...
authorSteve Murphy <murf@digium.com>
Tue, 29 Aug 2006 23:08:42 +0000 (23:08 +0000)
committerSteve Murphy <murf@digium.com>
Tue, 29 Aug 2006 23:08:42 +0000 (23:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41283 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/pbx.c

index 31f554a..522da6f 100644 (file)
@@ -739,6 +739,9 @@ enum ext_match_t {
 static int _extension_match_core(const char *pattern, const char *data, enum ext_match_t mode)
 {
        mode &= E_MATCH_MASK;   /* only consider the relevant bits */
 static int _extension_match_core(const char *pattern, const char *data, enum ext_match_t mode)
 {
        mode &= E_MATCH_MASK;   /* only consider the relevant bits */
+       
+       if (!strcasecmp(pattern,data)) /* note: if this test is left out, then _x. will not match _x. !!! */
+               return 1;
 
        if (pattern[0] != '_') { /* not a pattern, try exact or partial match */
                int ld = strlen(data), lp = strlen(pattern);
 
        if (pattern[0] != '_') { /* not a pattern, try exact or partial match */
                int ld = strlen(data), lp = strlen(pattern);