diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-21 19:23:12 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-21 19:23:12 +0000 |
commit | 45850589a6b42a4e890c38e2c84d235a18048ff5 (patch) | |
tree | f601e493d2815c8b95dbec17e497537294463ad0 /pbx | |
parent | f9cfe3689b947dc85e445057bd8d2f3f427e14fa (diff) |
Bug 5777 - Remove parentheses on Goto in AEL, so that it parses correctly
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7577 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r-- | pbx/pbx_ael.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c index 40406110b..4b758a61b 100644 --- a/pbx/pbx_ael.c +++ b/pbx/pbx_ael.c @@ -730,6 +730,11 @@ static int __build_step(const char *what, const char *name, const char *filename 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; |