]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
This patch fixes a problem where a goto (or jump, in this case)
authorSteve Murphy <murf@digium.com>
Fri, 16 Jan 2009 00:19:12 +0000 (00:19 +0000)
committerSteve Murphy <murf@digium.com>
Fri, 16 Jan 2009 00:19:12 +0000 (00:19 +0000)
fails a consistency check because it can't find a matching
extension. The problem was a missing instruction to end
the range notation in the code where it converts the pattern
into a regex and uses the regex code to determine the match.

I tested using the AEL code the user supplied, and now,
the consistency check passes.

(closes issue #14141)
Reported by: dimas

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

pbx/pbx_ael.c

index 23454dd986cc446915be824965938f4a0eced9a7..7eb3dc06c62f8d9065550732902beac8500053b0 100644 (file)
@@ -762,6 +762,7 @@ static int extension_matches(pval *here, const char *exten, const char *pattern)
                                while ( *p && *p != ']' ) {
                                        *r++ = *p++;
                                }
+                               *r++ = ']';
                                if ( *p != ']') {
                                        ast_log(LOG_WARNING, "Warning: file %s, line %d-%d: The extension pattern '%s' is missing a closing bracket \n",
                                                        here->filename, here->startline, here->endline, pattern);