[asterisk-commits] murf: branch 1.4 r168745 - /branches/1.4/pbx/pbx_ael.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 15 18:19:12 CST 2009


Author: murf
Date: Thu Jan 15 18:19:12 2009
New Revision: 168745

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=168745
Log:
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


Modified:
    branches/1.4/pbx/pbx_ael.c

Modified: branches/1.4/pbx/pbx_ael.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/pbx/pbx_ael.c?view=diff&rev=168745&r1=168744&r2=168745
==============================================================================
--- branches/1.4/pbx/pbx_ael.c (original)
+++ branches/1.4/pbx/pbx_ael.c Thu Jan 15 18:19:12 2009
@@ -762,6 +762,7 @@
 				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);




More information about the asterisk-commits mailing list