summaryrefslogtreecommitdiff
path: root/pbx.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-04-01 19:24:29 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-04-01 19:24:29 +0000
commit3cc8b2087614ef22d2f9cec8b4500dce99213fee (patch)
tree13a41990726098b415b081aef5eb4c4ba829a11b /pbx.c
parente07986cabac288bd8f247e8cdd590fcd9586177c (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: https://origsvn.digium.com/svn/asterisk/trunk@5345 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/pbx.c b/pbx.c
index dd9e98feb..6dd2b9d8b 100755
--- a/pbx.c
+++ b/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);
}
+ 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)