diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2005-12-21 19:24:56 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2005-12-21 19:24:56 +0000 |
commit | 84d98f6b843a1c73d81017c2c644af9bb9ca422c (patch) | |
tree | 397264ff00aa5da469e1d9df9770956fd8d818ce /pbx/pbx_ael.c | |
parent | 28af98ae954bf5de61b0f9ed4377df98e0c42af5 (diff) |
Merged revisions 7577 via svnmerge from
/branches/1.2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7578 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/pbx_ael.c')
-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; |