mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
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
This commit is contained in:
@@ -730,6 +730,11 @@ static int __build_step(const char *what, const char *name, const char *filename
|
|||||||
if (aeldebug & DEBUG_TOKENS)
|
if (aeldebug & DEBUG_TOKENS)
|
||||||
ast_verbose("--GOTO to : '%s'\n", args);
|
ast_verbose("--GOTO to : '%s'\n", args);
|
||||||
app = "Goto";
|
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))
|
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);
|
ast_log(LOG_WARNING, "Unable to add step at priority '%d' of %s '%s'\n", *pos, what, name);
|
||||||
*label = NULL;
|
*label = NULL;
|
||||||
|
Reference in New Issue
Block a user