MOH Started music on hold, class 'none', on channel

bug
Tags: #<Tag:0x00007f702c3f5810>

(Ed) #1

MOH was working just fine until I applied the latest update about a week ago.

FreePBX 15.0.17.34

Now I have no MOH regardless of inbound or outbound call (internal or external)

What I saw is the following, which seems to be the issue reported a while ago:

  1. FreePBX
  2. FREEPBX-4074

res_musiconhold.c: Unable to open file ‘/var/lib/asterisk/mohmp3/.nomusic_reserved/silence’: No such file or directory

4373 [2021-04-28 19:35:15] VERBOSE[7619][C-00000001] res_musiconhold.c: Started music on hold, class ‘none’, on channel ‘SIP/personal-outbound-00000001’
4374 [2021-04-28 19:35:15] WARNING[7619][C-00000001] format_wav.c: Read failed (type)
4375 [2021-04-28 19:35:15] WARNING[7619][C-00000001] file.c: Unable to open format wav
4376 [2021-04-28 19:35:15] WARNING[7619][C-00000001] res_musiconhold.c: Unable to open file res_musiconhold.c: Unable to open file ‘/var/lib/asterisk/moh/.nomusic_reserved/silence’: No such file or directory
nomusic_reserved/silence’: No such file or directory

So after taking a look, there is a silence.wav file which is zero bytes in the mentioned folder

after replacing the the file with a proper wav formatted file, the error goes away and you end up with:

res_musiconhold.c: Started music on hold, class ‘none’, on channel ‘SIP/personal-outbound-00000012’
res_musiconhold.c: Stopped music on hold on SIP/personal-outbound-00000012

I have tried to remove the MOH category and recreate it, but no difference. I even tried placing a wav file that had sound in place of the silience.wav file, but still just nothing.

I have removed the MOH module and tried updating it from “Module Admin”
image