diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-23 20:32:54 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-23 20:32:54 +0000 |
commit | afeb32c1c7448c4f8e502a2deee0e69fdd69f7de (patch) | |
tree | ff678f02d699d8a50faffa0f6912cdad65095517 /res/res_features.c | |
parent | 2b7ce5206d2c39e3110b8d20bd9841c319ce65bc (diff) |
this mod from 8593 (dstchannel in cdr is empty when transfer call).
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@51716 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_features.c')
-rw-r--r-- | res/res_features.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/res/res_features.c b/res/res_features.c index 61102de22..3b07213ee 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); |