[asterisk-commits] branch 1.2 - r7577 /branches/1.2/pbx/pbx_ael.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Dec 21 13:23:13 CST 2005


Author: tilghman
Date: Wed Dec 21 13:23:12 2005
New Revision: 7577

URL: http://svn.digium.com/view/asterisk?rev=7577&view=rev
Log:
Bug 5777 - Remove parentheses on Goto in AEL, so that it parses correctly

Modified:
    branches/1.2/pbx/pbx_ael.c

Modified: branches/1.2/pbx/pbx_ael.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/pbx/pbx_ael.c?rev=7577&r1=7576&r2=7577&view=diff
==============================================================================
--- branches/1.2/pbx/pbx_ael.c (original)
+++ branches/1.2/pbx/pbx_ael.c Wed Dec 21 13:23:12 2005
@@ -730,6 +730,11 @@
 		if (aeldebug & DEBUG_TOKENS)
 			ast_verbose("--GOTO to : '%s'\n", args);
 		app = "Goto";
+		if (args[0] == '(' && args[strlen(args) - 1] == ')') {
+			args[0] = '\0';
+			args++;
+			args[strlen(args) - 1] = '\0';
+		}
 		if (ast_add_extension2(con, 0, exten, (*pos)++, *label, NULL, app, strdup(args), FREE, registrar))
 			ast_log(LOG_WARNING, "Unable to add step at priority '%d' of %s '%s'\n", *pos, what, name);
 		*label = NULL;



More information about the asterisk-commits mailing list