diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-26 20:10:17 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-26 20:10:17 +0000 |
commit | d4567010732b5b0e875ddb8eb81efc77cd013cab (patch) | |
tree | 5426687906b38a44ca6b249385b011d66d1679bb /pbx/pbx_ael.c | |
parent | 5017d85472d1b525c336645fd9e3fbf40aa752ac (diff) |
work around parsing problem by using GotoIf() (issue #4876)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6425 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/pbx_ael.c')
-rwxr-xr-x | pbx/pbx_ael.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c index a56c87ba7..e422e9b1a 100755 --- a/pbx/pbx_ael.c +++ b/pbx/pbx_ael.c @@ -642,8 +642,8 @@ static int __build_step(const char *what, const char *name, const char *filename 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 @@ static int __build_step(const char *what, const char *name, const char *filename 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 @@ static int __build_step(const char *what, const char *name, const char *filename 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); |