BK [address only for mailing lists]
2003-Jul-11 20:09 UTC
[Asterisk-Users] Weird experience with MOH
Hi I thought I share this one, just in case this is an indication of some bug ... When I was trying to use music on hold at first, I didn't bother to copy any music into /var/lib/asterisk/mohmp3 since there was a sample- hold.mp3 in there which played just fine in a standalone MP3 player. But after uncommenting one of the lines in musiconhold.conf and doing reload on the console, there was only silence when putting a caller on hold. Somebody told me I may have the wrong mp3 app (321 vs 123) while I was getting busy with something else and so I put this aside. Although I found that I did have mpg123 installed. Yesterday, I copied some music files into /var/lib/asterisk/mohmp3 in anticipation that I would get this to work eventually and to my surprise, putting a caller on hold now plays the music. I have no idea why it didn't work at first, but it would seem that for some unknown reason, Asterisk didn't like the sole sample-hold.mp3 file. rgds bk
If you're on a RedHat system, mpg321 is installed by default, and is symlinked to as mpg123... So, it can easily look like you have mpg123, but you really have mpg321... Sorry if you checked for that, and I've offended, but just thought I'd offer. Matt Hardeman PaperSoft ----- Original Message ----- From: "BK [address only for mailing lists]" <bk_mailinglists@yahoo.co.uk> To: "Asterisk List" <asterisk-users@lists.digium.com> Sent: Friday, July 11, 2003 10:09 PM Subject: [Asterisk-Users] Weird experience with MOH> Hi > > I thought I share this one, just in case this is an indication of some > bug ... > > When I was trying to use music on hold at first, I didn't bother to copy > any music into /var/lib/asterisk/mohmp3 since there was a sample- > hold.mp3 in there which played just fine in a standalone MP3 player. > > But after uncommenting one of the lines in musiconhold.conf and doing > reload on the console, there was only silence when putting a caller on > hold. Somebody told me I may have the wrong mp3 app (321 vs 123) while I > was getting busy with something else and so I put this aside. Although I > found that I did have mpg123 installed. > > Yesterday, I copied some music files into /var/lib/asterisk/mohmp3 in > anticipation that I would get this to work eventually and to my > surprise, putting a caller on hold now plays the music. I have no idea > why it didn't work at first, but it would seem that for some unknown > reason, Asterisk didn't like the sole sample-hold.mp3 file. > > rgds > bk > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >
I found that after enabling moh I needed to restart * completely not just "reload".. Maybe you retsrted in the last day or so which is why moh is now working..> Hi > > I thought I share this one, just in case this is an indication of some > bug ... > > When I was trying to use music on hold at first, I didn't bother to copy > any music into /var/lib/asterisk/mohmp3 since there was a sample- > hold.mp3 in there which played just fine in a standalone MP3 player. > > But after uncommenting one of the lines in musiconhold.conf and doing > reload on the console, there was only silence when putting a caller on > hold. Somebody told me I may have the wrong mp3 app (321 vs 123) while I > was getting busy with something else and so I put this aside. Although I > found that I did have mpg123 installed. > > Yesterday, I copied some music files into /var/lib/asterisk/mohmp3 in > anticipation that I would get this to work eventually and to my > surprise, putting a caller on hold now plays the music. I have no idea > why it didn't work at first, but it would seem that for some unknown > reason, Asterisk didn't like the sole sample-hold.mp3 file. > > rgds > bk > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users-- ______________________________________________ http://www.linuxmail.org/ Now with e-mail forwarding for only US$5.95/yr Powered by Outblaze