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]
mode=custom
application=/var/lib/asterisk/mohmp3/­ stream,http://207.200.96.227:80/st­ream028
[AOL-80s]
mode=custom
application=/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://scfire-mtc-aa04.stream.aol.com:80/stream/1040
[SexyHouse]
mode=files
directory=/var/lib/asterisk//mohmp3/SexyHouse/
[WelcomeOperator]
mode=files
directory=/var/lib/asterisk//mohmp3/WelcomeOperator/
[default]
mode=files
directory=/var/lib/asterisk//mohmp3/
[none]
mode=files
directory=/var/lib/asterisk//mohmp3/.nomusic_reserved

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 1.6.2.6
  • Asterisk Source Version : 1.6.2.6
  • Dahdi Source Version : 2.2.1+2.2.1
  • Libpri Source Version : 1.4.10.2
  • Addons Source Version : 1.6.2.0
  • FreePBX Version : 2.7.0.2

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
#wget ftp://ftp.sunet.se/pub/os/Linux/RPMForge/dag/redhat/el3/en/i386/RPMS.dag/mpg123-1.6.3-1.el3.rf.i386.rpm
#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 http://scfire-mtc-aa04.stream.aol.com:80/stream/1040

Then Check musiconhold_additional.config

[AOL-80s]
mode=custom
application=/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://scfire-mtc-aa04.stream.aol.com:80/stream/1040

[default]
mode=files
directory=/var/lib/asterisk/moh/

[none]
mode=files
directory=/var/lib/asterisk/moh/.nomusic_reserved

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
#ls
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
macroform-cold_day.gsm

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

Thanks
Terry

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

Terry