diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-04-01 19:24:29 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-04-01 19:24:29 +0000 |
commit | ee4c972a74a2af7022385707a9681bc5fc3bb7da (patch) | |
tree | 13a41990726098b415b081aef5eb4c4ba829a11b /pbx.c | |
parent | b38275e064a312d9444585b3a23606c0437b6e27 (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@5345 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -4835,6 +4835,13 @@ int ast_pbx_outgoing_exten(const char *type, int format, void *data, int timeout 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) { res = 0; if (option_verbose > 3) |