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”
Okay after spending some more time on this and fixing the empty .WAV file, it turns out the issue is the empty class value. the ext 2 ext works just fine and shows the ‘Default’ class.
Anyone know why in statement the “Started music on hold, class ‘none’, on channel” the class is “none”???
and just an FYI - i have deleted the existing MOH files and category to recreate them.
TRACE:
33732 [2021-05-15 13:50:50] VERBOSE[12130][C-00000017] res_musiconhold.c: Started music on hold, class ‘none’, on channel ‘SIP/eknu_fwdintellect-outbound_copy_3-0000002b’
33733 [2021-05-15 13:50:55] VERBOSE[12130][C-00000017] res_musiconhold.c: Stopped music on hold on SIP/eknu_fwdintellect-outbound_copy_3-0000002b
I attempted to remove the NONE class just to see if I could get a different error, but after removing it from the the CONF file - it still showed up in the list…