mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-19 11:13:09 +00:00
Use the comma separator in app_while. reported by blitzrage on irc, patched by me
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@80616 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -243,7 +243,7 @@ static int _while_exec(struct ast_channel *chan, void *data, int end)
|
|||||||
size = strlen(chan->context) + strlen(chan->exten) + 32;
|
size = strlen(chan->context) + strlen(chan->exten) + 32;
|
||||||
goto_str = alloca(size);
|
goto_str = alloca(size);
|
||||||
memset(goto_str, 0, size);
|
memset(goto_str, 0, size);
|
||||||
snprintf(goto_str, size, "%s|%s|%d", chan->context, chan->exten, chan->priority);
|
snprintf(goto_str, size, "%s,%s,%d", chan->context, chan->exten, chan->priority);
|
||||||
pbx_builtin_setvar_helper(chan, varname, goto_str);
|
pbx_builtin_setvar_helper(chan, varname, goto_str);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -255,7 +255,7 @@ static int _while_exec(struct ast_channel *chan, void *data, int end)
|
|||||||
size = strlen(chan->context) + strlen(chan->exten) + 32;
|
size = strlen(chan->context) + strlen(chan->exten) + 32;
|
||||||
goto_str = alloca(size);
|
goto_str = alloca(size);
|
||||||
memset(goto_str, 0, size);
|
memset(goto_str, 0, size);
|
||||||
snprintf(goto_str, size, "%s|%s|%d", chan->context, chan->exten, chan->priority+1);
|
snprintf(goto_str, size, "%s,%s,%d", chan->context, chan->exten, chan->priority+1);
|
||||||
pbx_builtin_setvar_helper(chan, end_varname, goto_str);
|
pbx_builtin_setvar_helper(chan, end_varname, goto_str);
|
||||||
}
|
}
|
||||||
ast_parseable_goto(chan, while_pri);
|
ast_parseable_goto(chan, while_pri);
|
||||||
|
Reference in New Issue
Block a user