[Edit by Rusty - Amended description]
An AMI bridge of two channels, where one is currently on hold and both are configured with direct_media=no results in MOH generally sticking around and very robotic audio on the channel previously on hold. Enabling direct_media results in expected working behavior.
[Edit by Rusty - Original description]
There is an issue with MOH not stopping when bridging channels.
Lets assume PJSIP/205 is me. Steps to reproduce:
PJSIP/205 Answers inbound call
PJSIP/205 dials PJSIP/200 -> inbound call is placed on hold
The SIP/carrier channel still has hold music playing. I have tried this with PJSIP/PJSIP and SIP/PJSIP combinations and the issue happens both ways. I was thinking for a while it may have been due to mixing the technologies. One thing I have noticed is every so often the bridge will work. I cant find out what causes it.. It seems to be when I have the call held for an extended period of time before bridging. Also, if I set tone to "Both" the MOH will stop after the beep but you cannot hear the other party. There is a similar issue that was closed earlier this year reporting the same thing. I am not sure if this is a regression or if it was just assumed fixed.