MOH only on transfer

I have a ring group for which I would like to add music on hold but only when transferring. When the ring group is called I only want “ring”. Is this possible or does the “Play Music On Hold” only work for both incoming and transferred calls?

My default MOH is set to play a custom internet stream.

Are you saying, when someone from the ringgroups answers the call, but needs to transfer it, you want the original caller to play hold music?

If the Ring Group option Play Music On Hold is set to Ring, callers will hear only ringing until the call is initially answered. If the call is then (attended) transferred, the caller will hear music while the transferor is ringing or talking privately with the transferred-to party. In a semi-attended transfer (transferor hangs up while the transferred-to phone is still ringing), the caller’s audio will switch to ringing when the transferor hangs up.

If you need different behavior, please provide details.

Yes that is what I’m looking to do.

OK, then post a log of a call where it doesn’t work properly, along with what the three parties heard at each stage.

Found this in my log file:

[2020-11-02 14:12:31] WARNING[25355][C-00000005] format_wav.c: Read failed (type)
[2020-11-02 14:12:31] WARNING[25355][C-00000005] file.c: Unable to open format wav
[2020-11-02 14:12:31] WARNING[25355][C-00000005] res_musiconhold.c: Unable to open file ‘/var/lib/asterisk/moh/.nomusic_reserved/silence’: No such file or directory
[2020-11-02 14:12:37] WARNING[25355][C-00000005] format_wav.c: Read failed (type)
[2020-11-02 14:12:37] WARNING[25355][C-00000005] file.c: Unable to open format wav
[2020-11-02 14:12:37] WARNING[25355][C-00000005] res_musiconhold.c: Unable to open file ‘/var/lib/asterisk/moh/.nomusic_reserved/silence’: No such file or directory

You saw this part, right?

Yes I did. Any ideas how to fix that?

This might help.
https://issues.freepbx.org/browse/FREEPBX-20587

Ok, but I’m not sure what to do now. I have created a directory /var/lib/asterisk/moh/.nomusic_reserved/silence and copied the files from /var/lib/asterisk/sounds/nl/silence/10.* to that directory, but I’m will getting the same error and no music on hold. I have found a file called “silence.wav” in /var/lib/asterisk/moh/.nomusic_reserved.

Guess this is a bug they’re still working on?

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.