Merged revisions 51716 via svnmerge from
[asterisk/asterisk.git] / res / res_features.c
index aa110fd..085b998 100644 (file)
@@ -1835,6 +1835,9 @@ static int park_exec(struct ast_channel *chan, void *data)
                }
                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);