aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_features.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_features.c')
-rw-r--r--res/res_features.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_features.c b/res/res_features.c
index 42ddfa4b5..c74c87236 100644
--- a/res/res_features.c
+++ b/res/res_features.c
@@ -591,7 +591,8 @@ static int masq_park_call(struct ast_channel *rchan, struct ast_channel *peer, i
}
if (!play_announcement || !orig_chan_name) {
- orig_chan_name = ast_strdupa(chan->name);
+ /* chan is the channel being parked, peer is the effective park-er */
+ orig_chan_name = ast_strdupa(peer->name);
}
park_status = park_call_full(chan, peer, timeout, extout, orig_chan_name, pu);