Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/tmp/cvs-serv8813/pbx
Modified Files:
pbx_ael.c
Log Message:
work around parsing problem by using GotoIf() (issue #4876)
Index: pbx_ael.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_ael.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- pbx_ael.c 26 Aug 2005 20:08:28 -0000 1.8
+++ pbx_ael.c 26 Aug 2005 20:10:17 -0000 1.9
@@ -642,8 +642,8 @@
if (ast_add_extension2(con, 0, exten, ifend, *label,
NULL, app, strdup(margs), FREE, registrar))
ast_log(LOG_WARNING, "Unable to add step at
priority '%d' of %s '%s'\n", *pos, what, name);
*label = NULL;
- app = "Goto";
- snprintf(margs, mlen, "${IF($[ %s ]?%d:%d)}", args,
ifstart, elsestart);
+ app = "GotoIf";
+ snprintf(margs, mlen, "$[ %s ]?%d:%d", args, ifstart,
elsestart);
if (ast_add_extension2(con, 0, exten, ifblock, iflabel,
NULL, app, strdup(margs), FREE, registrar))
ast_log(LOG_WARNING, "Unable to add step at
priority '%d' of %s '%s'\n", *pos, what, name);
if (ifskip) {
@@ -694,8 +694,8 @@
if (ast_add_extension2(con, 0, exten, (*pos)++, *label,
NULL, app, strdup(margs), FREE, registrar))
ast_log(LOG_WARNING, "Unable to add step at
priority '%d' of %s '%s'\n", *pos, what, name);
*label = NULL;
- app = "Goto";
- snprintf(margs, mlen, "${IF($[ %s ]?%d:%d)}", args,
whileblock, whileend);
+ app = "GotoIf";
+ snprintf(margs, mlen, "$[ %s ]?%d:%d", args,
whileblock, whileend);
if (ast_add_extension2(con, 0, exten, whilestart,
whilelabel, NULL, app, strdup(margs), FREE, registrar))
ast_log(LOG_WARNING, "Unable to add step at
priority '%d' of %s '%s'\n", *pos, what, name);
fillin_process(con, fillin, filename, lineno, exten,
whileend, exten, whilestart);
@@ -797,8 +797,8 @@
if (ast_add_extension2(con, 0, exten, (*pos)++,
*label, NULL, app, strdup(margs), FREE, registrar))
ast_log(LOG_WARNING, "Unable to add
step at priority '%d' of %s '%s'\n", *pos, what, name);
*label = NULL;
- app = "Goto";
- snprintf(margs, mlen, "${IF($[ %s ]?%d:%d)}",
fields->next->data, forblock, forend);
+ app = "GotoIf";
+ snprintf(margs, mlen, "$[ %s ]?%d:%d",
fields->next->data, forblock, forend);
if (ast_add_extension2(con, 0, exten, forstart,
forlabel, NULL, app, strdup(margs), FREE, registrar))
ast_log(LOG_WARNING, "Unable to add
step at priority '%d' of %s '%s'\n", forstart, what, name);
fillin_process(con, fillin, filename, lineno,
exten, forend, exten, forstart);
_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs