]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
this mod from 8593 (dstchannel in cdr is empty when transfer call).
authorSteve Murphy <murf@digium.com>
Tue, 23 Jan 2007 20:32:54 +0000 (20:32 +0000)
committerSteve Murphy <murf@digium.com>
Tue, 23 Jan 2007 20:32:54 +0000 (20:32 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@51716 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_features.c

index 61102de22cff56c483c3153d9a60b9001505440c..3b07213eefc3e5e6d4bf6ff93b3761c56c429c58 100644 (file)
@@ -1822,6 +1822,9 @@ static int park_exec(struct ast_channel *chan, void *data)
                ast_set_flag(&(config.features_caller), AST_FEATURE_REDIRECT);
                res = ast_bridge_call(chan, peer, &config);
 
+               pbx_builtin_setvar_helper(chan, "PARKEDCHANNEL", peer->name);
+               ast_cdr_setdestchan(chan->cdr, peer->name);
+
                /* Simulate the PBX hanging up */
                if (res != AST_PBX_NO_HANGUP_PEER)
                        ast_hangup(peer);