From: Steve Murphy Date: Tue, 23 Jan 2007 20:32:54 +0000 (+0000) Subject: this mod from 8593 (dstchannel in cdr is empty when transfer call). X-Git-Tag: 1.4.1~226 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be0c0cd6dda6351a2c978b2f46a5f0a5fc1f6555;p=thirdparty%2Fasterisk.git this mod from 8593 (dstchannel in cdr is empty when transfer call). git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@51716 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_features.c b/res/res_features.c index 61102de22c..3b07213eef 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -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);