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

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”

Does anyone have any idea how this is resolved - really a problem with more than one instance now???

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.

thanks !!

Whats the output of

asterisk -x"moh show classes"

and

asterisk -x"moh show files"

Also, please post a call trace via pastebin. Se instructions: https://wiki.freepbx.org/display/SUP/Providing+Great+Debug#ProvidingGreatDebug-AsteriskLogs-PartII

Class: default
Mode: files
Directory: /var/lib/asterisk/moh
Class: home
Mode: files
Directory: /var/lib/asterisk/moh/home
Class: BIGNOISE
Mode: files
Directory: /var/lib/asterisk/moh/BIGNOISE
Class: none
Mode: files
Directory: /var/lib/asterisk/moh/.nomusic_reserved
Class: crs-moh
Mode: files
Directory: /var/lib/asterisk/moh/crs-moh
Class: forwardintellect
Mode: files
Directory: /var/lib/asterisk/moh/forwardintellect
Class: avma
Mode: files
Directory: /var/lib/asterisk/moh/avma

[[email protected] /]# asterisk -x"moh show files"
Class: default
File: /var/lib/asterisk/moh/02_Im_still_here
File: /var/lib/asterisk/moh/02_MACROFORM_CANASTER
File: /var/lib/asterisk/moh/03_MACROFORM_CRAZY_FOR_YOUR_LOV
File: /var/lib/asterisk/moh/09-tom_adelstein-dance_with_a_stranger
File: /var/lib/asterisk/moh/1
File: /var/lib/asterisk/moh/Frosk
File: /var/lib/asterisk/moh/macroform-cold_day
File: /var/lib/asterisk/moh/macroform-robot_dity
File: /var/lib/asterisk/moh/macroform-the_simplicity
File: /var/lib/asterisk/moh/Mannen
File: /var/lib/asterisk/moh/manolo_camp-morning_coffee
File: /var/lib/asterisk/moh/Mix3
File: /var/lib/asterisk/moh/Ready_to_Go_Up_Higher
File: /var/lib/asterisk/moh/reno_project-system
File: /var/lib/asterisk/moh/Turning_Back
File: /var/lib/asterisk/moh/while_you_were_out
Class: home
File: /var/lib/asterisk/moh/home/01—but-anyway
File: /var/lib/asterisk/moh/home/01-california-girls
File: /var/lib/asterisk/moh/home/01-keeping-the-faith
File: /var/lib/asterisk/moh/home/01-piano-man
File: /var/lib/asterisk/moh/home/04-it-s-still-rock—roll-to-me
File: /var/lib/asterisk/moh/home/moh_this_month
Class: BIGNOISE
File: /var/lib/asterisk/moh/BIGNOISE/01-california-girls
Class: none
File: /var/lib/asterisk/moh/.nomusic_reserved/silence
Class: crs-moh
File: /var/lib/asterisk/moh/crs-moh/smooth_jazz_moh_1016
Class: forwardintellect
File: /var/lib/asterisk/moh/forwardintellect/moh_April_2010_ver4
Class: avma
File: /var/lib/asterisk/moh/avma/1-January
File: /var/lib/asterisk/moh/avma/10-October
File: /var/lib/asterisk/moh/avma/11-November
File: /var/lib/asterisk/moh/avma/12-December
File: /var/lib/asterisk/moh/avma/2-February
File: /var/lib/asterisk/moh/avma/3-March
File: /var/lib/asterisk/moh/avma/4-April
File: /var/lib/asterisk/moh/avma/5-May
File: /var/lib/asterisk/moh/avma/6-June
File: /var/lib/asterisk/moh/avma/7-July
File: /var/lib/asterisk/moh/avma/8-August
File: /var/lib/asterisk/moh/avma/9-September

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 just added the BIGNOISE to test with

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…

asterisk -x"moh show classes"
Class: default
Mode: files
Directory: /var/lib/asterisk/moh
Class: home
Mode: files
Directory: /var/lib/asterisk/moh/home
Class: BIGNOISE
Mode: files
Directory: /var/lib/asterisk/moh/BIGNOISE
Class: none
Mode: files
Directory: /var/lib/asterisk/moh/.nomusic_reserved

Class: crs-moh
Mode: files
Directory: /var/lib/asterisk/moh/crs-moh
Class: forwardintellect
Mode: files
Directory: /var/lib/asterisk/moh/forwardintellect
Class: avma
Mode: files
Directory: /var/lib/asterisk/moh/avma

I did reload and then restarted asterisk.

As mentioned, please post a full call trace via pastebin.

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