firedude@shorelinuxsolutions.com
2003-Jul-25 16:23 UTC
[Asterisk-Users] can't get musiconhold to work
I can't seem to get musiconhold to work. I'm running asterisk on a RH9 box, I have the mpg123 package installed. In my zapata.conf file I have the line MusicOnHold=default . In my musiconhold.conf file, in the classes section I uncommented default and loud. In my extensions.conf file I have a set musiconhold line. However if I get a call and I either put it on hold or hit flash I get no music. The sample mp3 file is in the mohmp3 directory. Does anyone know what I might be doing wrong or how I might be able to correct it? Also I have tried assigning a extension with the MusicOnHold application and it still doesn't seem to work. AJ
Hi, Check if mpg123 executable is copied in the directory /usr/bin It is not there by default. BR, Dan ----- Original Message ----- From: <firedude@shorelinuxsolutions.com> To: <asterisk-users@lists.digium.com> Sent: Saturday, July 26, 2003 2:23 AM Subject: [Asterisk-Users] can't get musiconhold to work> I can't seem to get musiconhold to work. I'm running asterisk on a RH9 > box, I have the mpg123 package installed. In my zapata.conf file I have > the line MusicOnHold=default . In my musiconhold.conf file, in the > classes section I uncommented default and loud. In my extensions.conf > file I have a set musiconhold line. However if I get a call and I either > put it on hold or hit flash I get no music. The sample mp3 file is in the > mohmp3 directory. Does anyone know what I might be doing wrong or how I > might be able to correct it? > > Also I have tried assigning a extension with the MusicOnHold application > and it still doesn't seem to work. > AJ > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > >
IIRC I had the same problem becasue the package will install the mpg123 binary to /usr/local/bin and * seems to look in /usr/bin so just copy the mpg123 executable to /usr/bin and it should work.. Later..> I can't seem to get musiconhold to work. I'm running asterisk on a RH9 > box, I have the mpg123 package installed. In my zapata.conf file I have > the line MusicOnHold=default . In my musiconhold.conf file, in the > classes section I uncommented default and loud. In my extensions.conf > file I have a set musiconhold line. However if I get a call and I either > put it on hold or hit flash I get no music. The sample mp3 file is in the > mohmp3 directory. Does anyone know what I might be doing wrong or how I > might be able to correct it? > > Also I have tried assigning a extension with the MusicOnHold application > and it still doesn't seem to work. > AJ > > _______________________________________________ > 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
Hey AJ, On Fri, Jul 25, 2003 at 19:23:50 -0400, firedude@shorelinuxsolutions.com wrote:> I can't seem to get musiconhold to work. I'm running asterisk on a RH9 > box, I have the mpg123 package installed. In my zapata.conf file I have > the line MusicOnHold=default . In my musiconhold.conf file, in the > classes section I uncommented default and loud. In my extensions.conf > file I have a set musiconhold line. However if I get a call and I either > put it on hold or hit flash I get no music. The sample mp3 file is in the > mohmp3 directory. Does anyone know what I might be doing wrong or how I > might be able to correct it? > > Also I have tried assigning a extension with the MusicOnHold application > and it still doesn't seem to work.I'm running RH9 here as well and came across the same problem. RH9 seems to use mpg321 by default and, when you run `up2date' or a similar tool, that will supercede mpg123 and replace it with mpg321. To add to the confusion, RH9's mpg321-package also symlinks mpg321 to mpg123. I solved it by putting the real mpg123 in "/usr/local/bin/" and changing the path accordingly in "apps/app_mp3.c" and "res/res_musiconhold.c". Grtz, Oliver
Sorry I though you had compiled from source... When * is running do "ps-aux | grep mpg123" and make sure it is actually running.. Later..> Wipeout > I'm using the exact mpg123 binary that you sent me. When I execute a > "whereis mpg123" it returns /usr/bin. To take it a step further I've done > "whereis mpg321" and "rpm -q mpg321" just to make sure mpg321 is not on > the system. The one thing that's confusing the heck out of me is the fact > that the rpm that I installed seems to have installed in /usr/bin whereas > everybody else's installed in /usr/local/bin. Any other ideas? I'm > growing very frustrated. > AJ > > > > On Sat, 26 Jul 2003, WipeOut . wrote: > > > IIRC I had the same problem becasue the package will install the mpg123 binary to /usr/local/bin and * seems to look in /usr/bin so just copy the mpg123 executable to /usr/bin and it should work.. > > > > Later.. > > > > > I can't seem to get musiconhold to work. I'm running asterisk on a RH9 > > > box, I have the mpg123 package installed. In my zapata.conf file I have > > > the line MusicOnHold=default . In my musiconhold.conf file, in the > > > classes section I uncommented default and loud. In my extensions.conf > > > file I have a set musiconhold line. However if I get a call and I either > > > put it on hold or hit flash I get no music. The sample mp3 file is in the > > > mohmp3 directory. Does anyone know what I might be doing wrong or how I > > > might be able to correct it? > > > > > > Also I have tried assigning a extension with the MusicOnHold application > > > and it still doesn't seem to work. > > > AJ > > > > > > _______________________________________________ > > > Asterisk-Users mailing list > > > Asterisk-Users@lists.digium.com > > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > > _______________________________________________ > 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
Only things I can suggest is.. 1. Execute it from a command line and make sure it runs.. If not you may hevr to compile it from source.. 2. Make sure you have a new line at the end of your .conf file cos * often freaks out about that.. Other than that I don't know why its not working for you..> No instances of it running when I look at processes. > AJ > > > > > On Sat, 26 Jul 2003, WipeOut . wrote: > > > Sorry I though you had compiled from source... > > > > When * is running do "ps-aux | grep mpg123" and make sure it is actually running.. > > > > Later.. > > > > > Wipeout > > > I'm using the exact mpg123 binary that you sent me. When I execute a > > > "whereis mpg123" it returns /usr/bin. To take it a step further I've done > > > "whereis mpg321" and "rpm -q mpg321" just to make sure mpg321 is not on > > > the system. The one thing that's confusing the heck out of me is the fact > > > that the rpm that I installed seems to have installed in /usr/bin whereas > > > everybody else's installed in /usr/local/bin. Any other ideas? I'm > > > growing very frustrated. > > > AJ > > > > > > > > > > > > On Sat, 26 Jul 2003, WipeOut . wrote: > > > > > > > IIRC I had the same problem becasue the package will install the mpg123 binary to /usr/local/bin and * seems to look in /usr/bin so just copy the mpg123 executable to /usr/bin and it should work.. > > > > > > > > Later.. > > > > > > > > > I can't seem to get musiconhold to work. I'm running asterisk on a RH9 > > > > > box, I have the mpg123 package installed. In my zapata.conf file I have > > > > > the line MusicOnHold=default . In my musiconhold.conf file, in the > > > > > classes section I uncommented default and loud. In my extensions.conf > > > > > file I have a set musiconhold line. However if I get a call and I either > > > > > put it on hold or hit flash I get no music. The sample mp3 file is in the > > > > > mohmp3 directory. Does anyone know what I might be doing wrong or how I > > > > > might be able to correct it? > > > > > > > > > > Also I have tried assigning a extension with the MusicOnHold application > > > > > and it still doesn't seem to work. > > > > > AJ > > > > > > > > > > _______________________________________________ > > > > > Asterisk-Users mailing list > > > > > Asterisk-Users@lists.digium.com > > > > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > > > > > > > > > > _______________________________________________ > > > Asterisk-Users mailing list > > > Asterisk-Users@lists.digium.com > > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > > _______________________________________________ > 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
wipeout@linuxmail.org
2003-Jul-27 11:07 UTC
[Asterisk-Users] can't get musiconhold to work
Yes always end your conf files with blank lines otherwise you may get weird results from asterisk.. as for the sond card requirement I don't know all my systems have onboard sound..> So you mean a just simple blank line at the end of the musiconhold.conf > file or the extensions.conf file? > Second question, though it might seem a bit stupid, do I perhaps need a > sound card on the box that asterisk is running on? I don't think this > should be the case but I'm just wondering. > Is there anything I can do to manually make it run with asterisk? I guess > what I'm trying to say here is in ps aux I see no example of mpg123 > running that tells me it has not been executed. What is the process that > asterisk uses to execute it? Is it executed each time a caller is put on > hold or are instances started in the background when asterisk begins > (listen state)? > AJ > > > > On Sat, 26 Jul 2003, WipeOut . wrote: > > > Only things I can suggest is.. > > > > 1. Execute it from a command line and make sure it runs.. If not you may hevr to compile it from source.. > > > > 2. Make sure you have a new line at the end of your .conf file cos * often freaks out about that.. > > > > Other than that I don't know why its not working for you.. > > > > > > > No instances of it running when I look at processes. > > > AJ > > > > > > > > > > > > > > > On Sat, 26 Jul 2003, WipeOut . wrote: > > > > > > > Sorry I though you had compiled from source... > > > > > > > > When * is running do "ps-aux | grep mpg123" and make sure it is actually running.. > > > > > > > > Later.. > > > > > > > > > Wipeout > > > > > I'm using the exact mpg123 binary that you sent me. When I execute a > > > > > "whereis mpg123" it returns /usr/bin. To take it a step further I've done > > > > > "whereis mpg321" and "rpm -q mpg321" just to make sure mpg321 is not on > > > > > the system. The one thing that's confusing the heck out of me is the fact > > > > > that the rpm that I installed seems to have installed in /usr/bin whereas > > > > > everybody else's installed in /usr/local/bin. Any other ideas? I'm > > > > > growing very frustrated. > > > > > AJ > > > > > > > > > > > > > > > > > > > > On Sat, 26 Jul 2003, WipeOut . wrote: > > > > > > > > > > > IIRC I had the same problem becasue the package will install the mpg123 binary to /usr/local/bin and * seems to look in /usr/bin so just copy the mpg123 executable to /usr/bin and it should work.. > > > > > > > > > > > > Later.. > > > > > > > > > > > > > I can't seem to get musiconhold to work. I'm running asterisk on a RH9 > > > > > > > box, I have the mpg123 package installed. In my zapata.conf file I have > > > > > > > the line MusicOnHold=default . In my musiconhold.conf file, in the > > > > > > > classes section I uncommented default and loud. In my extensions.conf > > > > > > > file I have a set musiconhold line. However if I get a call and I either > > > > > > > put it on hold or hit flash I get no music. The sample mp3 file is in the > > > > > > > mohmp3 directory. Does anyone know what I might be doing wrong or how I > > > > > > > might be able to correct it? > > > > > > > > > > > > > > Also I have tried assigning a extension with the MusicOnHold application > > > > > > > and it still doesn't seem to work. > > > > > > > AJ > > > > > > > > > > > > > > _______________________________________________ > > > > > > > Asterisk-Users mailing list > > > > > > > Asterisk-Users@lists.digium.com > > > > > > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > Asterisk-Users mailing list > > > > > Asterisk-Users@lists.digium.com > > > > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > > > > > > > > > > _______________________________________________ > > > Asterisk-Users mailing list > > > Asterisk-Users@lists.digium.com > > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > > _______________________________________________ > 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
I've not got a sound card in my RH9 * box and music on hold works great as long as you have mpg123 in /usr/bin> -----Original Message----- > From: wipeout@linuxmail.org [mailto:wipeout@linuxmail.org] > Sent: 27 July 2003 20:08 > To: asterisk-users@lists.digium.com > Subject: Re: [Asterisk-Users] can't get musiconhold to work > > > Yes always end your conf files with blank lines otherwise you > may get weird results from asterisk.. > > as for the sond card requirement I don't know all my systems > have onboard sound.. > > > > So you mean a just simple blank line at the end of the > musiconhold.conf > > file or the extensions.conf file? > > Second question, though it might seem a bit stupid, do I > perhaps need a > > sound card on the box that asterisk is running on? I don't > think this > > should be the case but I'm just wondering. > > Is there anything I can do to manually make it run with > asterisk? I guess > > what I'm trying to say here is in ps aux I see no example of mpg123 > > running that tells me it has not been executed. What is > the process that > > asterisk uses to execute it? Is it executed each time a > caller is put on > > hold or are instances started in the background when > asterisk begins > > (listen state)? > > AJ > > > > > > > > On Sat, 26 Jul 2003, WipeOut . wrote: > > > > > Only things I can suggest is.. > > > > > > 1. Execute it from a command line and make sure it runs.. > If not you may hevr to compile it from source.. > > > > > > 2. Make sure you have a new line at the end of your .conf > file cos * often freaks out about that.. > > > > > > Other than that I don't know why its not working for you.. > > > > > > > > > > No instances of it running when I look at processes. > > > > AJ > > > > > > > > > > > > > > > > > > > > On Sat, 26 Jul 2003, WipeOut . wrote: > > > > > > > > > Sorry I though you had compiled from source... > > > > > > > > > > When * is running do "ps-aux | grep mpg123" and make > sure it is actually running.. > > > > > > > > > > Later.. > > > > > > > > > > > Wipeout > > > > > > I'm using the exact mpg123 binary that you sent me. > When I execute a > > > > > > "whereis mpg123" it returns /usr/bin. To take it a > step further I've done > > > > > > "whereis mpg321" and "rpm -q mpg321" just to make > sure mpg321 is not on > > > > > > the system. The one thing that's confusing the > heck out of me is the fact > > > > > > that the rpm that I installed seems to have > installed in /usr/bin whereas > > > > > > everybody else's installed in /usr/local/bin. Any > other ideas? I'm > > > > > > growing very frustrated. > > > > > > AJ > > > > > > > > > > > > > > > > > > > > > > > > On Sat, 26 Jul 2003, WipeOut . wrote: > > > > > > > > > > > > > IIRC I had the same problem becasue the package > will install the mpg123 binary to /usr/local/bin and * seems > to look in /usr/bin so just copy the mpg123 executable to > /usr/bin and it should work.. > > > > > > > > > > > > > > Later.. > > > > > > > > > > > > > > > I can't seem to get musiconhold to work. I'm > running asterisk on a RH9 > > > > > > > > box, I have the mpg123 package installed. In > my zapata.conf file I have > > > > > > > > the line MusicOnHold=default . In my > musiconhold.conf file, in the > > > > > > > > classes section I uncommented default and loud. > In my extensions.conf > > > > > > > > file I have a set musiconhold line. However if > I get a call and I either > > > > > > > > put it on hold or hit flash I get no music. > The sample mp3 file is in the > > > > > > > > mohmp3 directory. Does anyone know what I > might be doing wrong or how I > > > > > > > > might be able to correct it? > > > > > > > > > > > > > > > > Also I have tried assigning a extension with > the MusicOnHold application > > > > > > > > and it still doesn't seem to work. > > > > > > > > AJ > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > Asterisk-Users mailing list > > > > > > > > Asterisk-Users@lists.digium.com > > > > > > > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > Asterisk-Users mailing list > > > > > > Asterisk-Users@lists.digium.com > > > > > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > Asterisk-Users mailing list > > > > Asterisk-Users@lists.digium.com > > > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > > > > > > _______________________________________________ > > 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 > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >********* DISCLAIMER ********* This message and any attachment are confidential and may be privileged or otherwise protected from disclosure and may include proprietary information. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person