MOH Apostrophe Bug

I recently added a Streaming Music Category name “AOL-80’s”. The problem is the apostrophe in “80’s” interprets to “AOL-80& #039;s” (for this post I am adding a space between the “&” and “#039;s”, otherwise it would just be interpreted to an apostrophe by browsers) in my musiconhold_additional.conf (i.e. [AOL-80& #039;s]) which breaks the rest of my music on hold classes under it because of the semicolon in the string.

When I delete the class manually from the musiconhold_additional.conf and press submit on anything other then a change to Music on Hold, for instance a change to the extensions and “Apply Configuration Changes” the offending class is excluded from the reload and all is well. But when I add another Music on Hold Class through the Web GUI, the offending class is reintroduced and all MOH classes break.

I have tried to delete the “AOL-80’s” class using the GUI but that does not work.

My question is, how can I manually delete a Music on Hold Class completely from the system? I have looked at the Asterisk Database tables and can not find anything regarding Musiconhold. Please help!

Here is an example of my musiconhold_additional.conf

(again I have intentionally added a space between the & and # so that this example will not simply show an apostrophe to thos of you reading this)…

[AOL-80& #039;s]
application=/var/lib/asterisk/mohmp3/­ stream,­ream028
application=/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0

Please note that the Class [AOL-80s] works perfectly once the first class [AOL-80& #039;s] is removed.

Which version of FreePBX do you use?

  • Running Asterisk Version : Asterisk
  • Asterisk Source Version :
  • Dahdi Source Version : 2.2.1+2.2.1
  • Libpri Source Version :
  • Addons Source Version :
  • FreePBX Version :

Check the directory /var/lib/asterisk/moh for the offending directory, remove it and you will be OK.

Cool, thanks. For me it was /var/lib/asterisk/mohmp3

For this build, I used PBX In a Flash if that’s any indication. I removed the offending directory and now it doesn’t show in the GUI. Again thank you.

Dear Sir,
this is my step by step install process
#cd /usr/src
#rpm -ivh mpg123-1.6.3-1.el3.rf.i386.rpm

On Hold Music —Add Streaming Category
Category name ;AOL-80,
Application ; /usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0

Then Check musiconhold_additional.config

application=/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0



TEST ===two sip extension 88168 call 88368

Called 88368
– SIP/88368-00000006 is ringing
– SIP/88368-00000006 answered SIP/88168-00000005
– Started music on hold, class ‘default’, on SIP/88168-00000005
– Stopped music on hold on SIP/88168-00000005

i can get MOH , But this is default music

#cd /var/lib/asterisk/moh
AOL-80s macroform-robot_dity.gsm
CHANGES-asterisk-moh-opsound-gsm macroform-the_simplicity.gsm
CREDITS-asterisk-moh-opsound-gsm manolo_camp-morning_coffee.gsm
LICENSE-asterisk-moh-opsound-gsm reno_project-system.gsm

i think , i am get default music , not streaming MOH
How can I get streaming MOH ??//


Dearv All,
I understand it …
I can use streaming MOH , thanks