mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 10:58:15 +00:00
ensure that variables supplied to ast_pbx_outgoing_exten are applied to the channel even in 'sync' mode (bug #3922, for HEAD only)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5345 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
7
pbx.c
7
pbx.c
@@ -4835,6 +4835,13 @@ int ast_pbx_outgoing_exten(const char *type, int format, void *data, int timeout
|
|||||||
ast_cdr_start(chan->cdr);
|
ast_cdr_start(chan->cdr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (variable) {
|
||||||
|
tmp = ast_strdupa(variable);
|
||||||
|
for (var = strtok_r(tmp, "|", &tmp); var; var = strtok_r(NULL, "|", &tmp)) {
|
||||||
|
pbx_builtin_setvar( chan, var );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (chan->_state == AST_STATE_UP) {
|
if (chan->_state == AST_STATE_UP) {
|
||||||
res = 0;
|
res = 0;
|
||||||
if (option_verbose > 3)
|
if (option_verbose > 3)
|
||||||
|
|||||||
Reference in New Issue
Block a user