diff options
author | Jonathan Rose <jrose@digium.com> | 2013-12-13 20:13:22 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2013-12-13 20:13:22 +0000 |
commit | 63b2c28c4b5410d3876f175c8ec0d24c121c7b36 (patch) | |
tree | 60effb4983c98c1763a67438b3434995862f1eb8 /main/bridge_basic.c | |
parent | 84e1790beb1c28f762fa991f99d4a41ede2c3935 (diff) |
Transfers: Make Asterisk set ATTENDEDTRANSFER/BLINDTRANSFER more reliably
There were still a few cases in which ATTENDEDTRANSFER and BLINDTRANSFER
wouldn't be set on channels involved with blind and attended transfers.
This would happen with features that were initialized by channel driver
specific mechanisms in multiparty calls. This patch resolves those cases
while attempted to keep the behavior for setting those variables as
consistent as possible.
(closes issue AFS-24)
Review: https://reviewboard.asterisk.org/r/3040/
........
Merged revisions 403781 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403783 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/bridge_basic.c')
-rw-r--r-- | main/bridge_basic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/main/bridge_basic.c b/main/bridge_basic.c index 76dfb2893..eaec68995 100644 --- a/main/bridge_basic.c +++ b/main/bridge_basic.c @@ -2929,8 +2929,7 @@ static struct ast_channel *dial_transfer(struct ast_channel *caller, const char /* Who is transferring the call. */ pbx_builtin_setvar_helper(chan, "TRANSFERERNAME", ast_channel_name(caller)); - /* To work as an analog to BLINDTRANSFER */ - pbx_builtin_setvar_helper(chan, "ATTENDEDTRANSFER", ast_channel_name(caller)); + ast_bridge_set_transfer_variables(chan, ast_channel_name(caller), 1); /* Before we actually dial out let's inherit appropriate information. */ copy_caller_data(chan, caller); |