]> git.ipfire.org Git - thirdparty/asterisk.git/commit
channel.c: MOH is not working for transferee after attended transfer
authorKevin Harwell <kharwell@digium.com>
Fri, 21 Feb 2014 15:24:27 +0000 (15:24 +0000)
committerKevin Harwell <kharwell@digium.com>
Fri, 21 Feb 2014 15:24:27 +0000 (15:24 +0000)
commit2197b1d1149dd03ec3a06fe753f6c1f42e251f94
tree96ce84d0447190ed9e47d6400c9b6e117f8fc0fa
parent44af8d9f46cbdfc403b4efa06be418f43d6a27ec
channel.c: MOH is not working for transferee after attended transfer

Updated the code to check to see if MOH is playing on the transferor and if
so then start it on the channel that replaces it during a masquerade.

Example scenario of the problem:
Alice calls Bob and then Bob begins the attended transfer process into a queue.
Upon going on hold Alice hears music and so does Bob once he is in the queue.
Bob then transfers Alice into the queue and then music for Alice stops even
though she should be hearing it since has now replaced Bob in the queue.

The problem that was occurring is that once the channel was masqueraded the app
(queues, confbridge, etc...) had no way of knowing that the channel had just
been swapped out thus it did not start music for the present channel.

Credit to Olle Johansson for pointing me in the right direction on this issue.

(closes issue ASTERISK-19499)
Reported by: Timo Teräs
Review: https://reviewboard.asterisk.org/r/3226/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@408642 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c
main/channel.c