aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-16 00:19:12 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-16 00:19:12 +0000
commitcaebf8461f9849f484eb5bbd649880e457c20e31 (patch)
tree3e0b68760b7b6d49c72de4fd5b747ed4d5726ad3
parentd91d54092013a25a3674a96eb30b86690cda73bb (diff)
This patch fixes a problem where a goto (or jump, in this case)
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: http://svn.digium.com/svn/asterisk/branches/1.4@168745 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--pbx/pbx_ael.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c
index 23454dd98..7eb3dc06c 100644
--- a/pbx/pbx_ael.c
+++ b/pbx/pbx_ael.c
@@ -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);