]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Send parking lot announcement to the channel which parked the call, not the park-ee.
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 21 Dec 2009 16:45:03 +0000 (16:45 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 21 Dec 2009 16:45:03 +0000 (16:45 +0000)
(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: https://origsvn.digium.com/svn/asterisk/branches/1.4@235821 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_features.c

index 42ddfa4b530764be602ecf9473ad3c0ad96d70a3..c74c87236c834adf9bea34b9c0201c76a0383e43 100644 (file)
@@ -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);