aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-21 16:45:03 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-21 16:45:03 +0000
commit11f9122a85cda12c8acf3c0bc6b260e08e265349 (patch)
tree6148dc187cac98abe34ffda6db61a76577f888ca /res
parent9d8959000b1ae7c85d00e7203f8693bd40742b06 (diff)
Send parking lot announcement to the channel which parked the call, not the park-ee.
(closes issue #16234) Reported by: yeshuawatso Patches: 20091210__issue16234.diff.txt uploaded by tilghman (license 14) 20091221__issue16234__1.4.diff.txt uploaded by tilghman (license 14) Tested by: yeshuawatso git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@235821 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-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);