Re: [Asterisk-Users] mpg123 alternative?
- Original Message - From: Doug Lytle [EMAIL PROTECTED] To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Thursday, February 23, 2006 9:33 PM Subject: Re: [Asterisk-Users] mpg123 alternative? Matt Roth wrote: We were using the rawplayer method on our server, but it ended up spawning hundreds of zombie processes. I talked to Kevin Fleming about it, and he recommended switching to native MOH. Scalability is a big concern of mine, so I asked him about the I've had issues with Native MOH when using IAX trunking and Placing a caller into a parking slot. Sound is awful. So, for parking I use mpg123 and everything else I'm using Native MOH. Have you placed a bug report about this? Chris ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] mpg123 alternative?
Chris Stenton wrote: I've had issues with Native MOH when using IAX trunking and Placing a caller into a parking slot. Sound is awful. So, for parking I use mpg123 and everything else I'm using Native MOH. Have you placed a bug report about this? No, I can't always reproduce it. Seems to happen randomly. But, happens enough that I get complaints. Doug ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] mpg123 alternative?
Is there any particular reason for the native file format stuff to be in asterisk-addons as opposed to that code being merged into trunk? It isn't. You are mis-interpreting the information in this thread (it's been unclearly stated anyway). The only portion that is in asterisk-addons is format_mp3, which allows Asterisk to natively open MP3 files. However, that is of little use, when you can use sox to convert those files into slinear/ulaw/alaw/gsm/etc. so that no transcoding is needed when the audio is played to a caller. Right on... I did mis-interpret it without a doubt. Part of that was oriented around the thought that I was going to have to convert all files (not just mp3's), and that obviously would be a very high maintenance item over time. I read stuff into it that I shouldn't have, and jumped to the wrong conclusion. More coffee, please! ;) One of the reasons for wanting to address mp3's (natively) is that some of our bank customers subscribe to an annual service from another firm to provide them with professional message on hold services. If those messages where provided to the bank in mp3 format, I was looking for a relatively simply way for non-technical * users to copy the file and play it without the need for external players, conversion steps, etc. Scripting the copy process and doing the sox conversion will accomplish the same goal. Thanks ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] mpg123 alternative?
Thank you Lee, Dave, Rich, Joel and of course also Kevin. Between your various messages I finally understand what's happening and how it works, and have actually converted everything to alaw, ulaw, slin and gsm and am not actually using the mp3 side of things at all anymore. The difference is very noticeable in terms of MOH quality except when using g729 on the link between Asterisk and the phone - the sound quality seems worse there. I have two related questions though which I'm hoping someone can help with: We use alaw, ulaw, gsm and g729 between phones and asterisk. Sox can convert files to ulaw, alaw and gsm (not to mention slin) but what about g729? Is there such a thing as a format that won't need transcoding when using g729 links, or is this not something that is possible? And what is the signed linear (slin) format used for? Thanks, Faris. Lee Archer wrote: Check out the musiconhold.conf.sample in the asterisksource/configs folder. Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Faris Raouf Sent: 23 February 2006 18:36 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] mpg123 alternative? Ah! Now this is actually something I've not been able to get my head around: Note: As of Asterisk 1.2.0, Mpg123 is no longer used by Asterisk, which has its own MP3 player. Can anybody tell me where this built-in MP3 player is in 1.2.x/how do I use it ? I still seem to have the usual two mpg123 processes running with 1.2.4, with whatever music on hold is set in musiconhold.conf I'm sure it is very obvious, but I can't for the life of me figure out what I'm supposed to do to use the built-in MP3 player facilities. I just have the following in my musiconhold.conf: [default] mode=mp3 directory=/var/lib/asterisk/mohmp3 random=yes Faris. ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] mpg123 alternative?
Just to through another hat in the ring... I use madplay for mp3s... [default] mode=custom directory=/var/lib/asterisk/mohmp3 application=/usr/bin/madplay -Q -o raw:- --mono -R 8000 -a -12 On Thu, 2006-02-23 at 15:23 -0600, Aaron Daniel wrote: I'd suggest using the format_mp3 program that's included in asterisk-addons. We switched to that after mpg123 wouldn't compile on our newer 64bit machines, and it works like a charm, and you don't have to change anything. Aaron Rich Adamson wrote: Been using mpg123 for moh for the last two years or so. However, when I have * config errors, often times get a endless stream of console messages and need to kill the two mpg123 processes. Is there an alternative to mpg123 that eliminates that issue? I see references in musiconhold.conf relative to madplay, native file format, asterisk-addons, etc. Not sure why the asterisk-addon approach hasn't been moved into trunk, or if madplay is a better choice on this fc3 trunk box. Any suggestions? ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] mpg123 alternative?
Hi Rich, Been using mpg123 for moh for the last two years or so. However, when I have * config errors, often times get a endless stream of console messages and need to kill the two mpg123 processes. Is there an alternative to mpg123 that eliminates that issue? I see references in musiconhold.conf relative to madplay, native file format, asterisk-addons, etc. Not sure why the asterisk-addon approach hasn't been moved into trunk, or if madplay is a better choice on this fc3 trunk box. Any suggestions? I've switched to native moh and never had to worry again about dead or unresponsive mpg123 processes. -- Nicolás Gudiño Buenos Aires - Argentina ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] mpg123 alternative?
I used madplay with * 1.0 and moved to native for playing mp3's with 1.2 with no problems. Depends what you want to play, doesn't native stop when there is no one to play to then restart when there is someone to play to? Might be a problem if you want to plays ads and don't have many callers, like in my environment, to play the MOH to. Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nicolás Gudiño Sent: 23 February 2006 13:38 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] mpg123 alternative? Hi Rich, Been using mpg123 for moh for the last two years or so. However, when I have * config errors, often times get a endless stream of console messages and need to kill the two mpg123 processes. Is there an alternative to mpg123 that eliminates that issue? I see references in musiconhold.conf relative to madplay, native file format, asterisk-addons, etc. Not sure why the asterisk-addon approach hasn't been moved into trunk, or if madplay is a better choice on this fc3 trunk box. Any suggestions? I've switched to native moh and never had to worry again about dead or unresponsive mpg123 processes. -- Nicolás Gudiño Buenos Aires - Argentina ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] mpg123 alternative?
On 02/23/06 21:15 Rich Adamson said the following: I see references in musiconhold.conf relative to madplay, native file format, asterisk-addons, etc. Not sure why the asterisk-addon approach hasn't been moved into trunk, or if madplay is a better choice on this i think it would be better off if folk used the native file formats and did away with mpg123 altogether. -- Regards, /\_/\ All dogs go to heaven. [EMAIL PROTECTED](0 0)http://www.alphaque.com/ +==oOO--(_)--OOo==+ | for a in past present future; do| | for b in clients employers associates relatives neighbours pets; do | | echo The opinions here in no way reflect the opinions of my $a $b. | | done; done | +=+ ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] mpg123 alternative?
I vote for the raw file format, due to the reasons listed here: http://www.orderlyq.com/asteriskqueues.html Also there is a note on the same page as follows: Note: As of Asterisk 1.2.0, Mpg123 is no longer used by Asterisk, which has its own MP3 player. However, it's still a good idea to play raw files for performance reasons, and so Asterisk 1.2.0 supports a new files mode for playing raw files. Of course you need to convert all mp3 moh files to raw format manually, but it's easy as described there. - Original Message - From: Dinesh Nair [EMAIL PROTECTED] To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Thursday, February 23, 2006 4:43 PM Subject: Re: [Asterisk-Users] mpg123 alternative? On 02/23/06 21:15 Rich Adamson said the following: I see references in musiconhold.conf relative to madplay, native file format, asterisk-addons, etc. Not sure why the asterisk-addon approach hasn't been moved into trunk, or if madplay is a better choice on this i think it would be better off if folk used the native file formats and did away with mpg123 altogether. -- Regards, /\_/\ All dogs go to heaven. [EMAIL PROTECTED](0 0)http://www.alphaque.com/ +==oOO--(_)--OOo==+ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo The opinions here in no way reflect the opinions of my $a $b. | | done; done | +=+ ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] mpg123 alternative?
On 02/23/06 21:15 Rich Adamson said the following: I see references in musiconhold.conf relative to madplay, native file format, asterisk-addons, etc. Not sure why the asterisk-addon approach hasn't been moved into trunk, or if madplay is a better choice on this i think it would be better off if folk used the native file formats and did away with mpg123 altogether. Is there any particular reason for the native file format stuff to be in asterisk-addons as opposed to that code being merged into trunk? ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] mpg123 alternative?
Soner Tari wrote: I vote for the raw file format, due to the reasons listed here: http://www.orderlyq.com/asteriskqueues.html Of course you need to convert all mp3 moh files to raw format manually, but it's easy as described there. We were using the rawplayer method on our server, but it ended up spawning hundreds of zombie processes. I talked to Kevin Fleming about it, and he recommended switching to native MOH. Scalability is a big concern of mine, so I asked him about the impact it would have on CPU, memory, and disk utilization. His response was, not much, more memory usage though. I could spare the memory, so I gave it a shot. So far, I'm very impressed. It eliminated the zombie processes completely and the quality of the playback is *much* better. Matthew Roth InterMedia Marketing Solutions Software Engineer and Systems Developer ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] mpg123 alternative?
Hi, I still seem to have the usual two mpg123 processes running with 1.2.4, with whatever music on hold is set in musiconhold.conf I'm sure it is very obvious, but I can't for the life of me figure out what I'm supposed to do to use the built-in MP3 player facilities. [default] mode=mp3 directory=/var/lib/asterisk/mohmp3 random=yes Change mode=mp3 to mode=files then do a moh reload on CLI -- Joel Vandal ScopServ Inc. http://www.scopserv.com/ ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] mpg123 alternative?
Ah! Now this is actually something I've not been able to get my head around: Note: As of Asterisk 1.2.0, Mpg123 is no longer used by Asterisk, which has its own MP3 player. Can anybody tell me where this built-in MP3 player is in 1.2.x/how do I use it ? I still seem to have the usual two mpg123 processes running with 1.2.4, with whatever music on hold is set in musiconhold.conf I'm sure it is very obvious, but I can't for the life of me figure out what I'm supposed to do to use the built-in MP3 player facilities. I just have the following in my musiconhold.conf: [default] mode=mp3 directory=/var/lib/asterisk/mohmp3 random=yes Since I just went through at least a part of the above, I think the following might be an approach to consider. Download 'asterisk-addons' (if you don't already have it). cd /usr/src/asterisk-addons/format_mp3 and read the README file. The 'make clean install' Then, in /etc/asterisk/musiconhold.conf, [default] ; mode=quietmp3 mode=files directory=/var/lib/asterisk/mohmp3 Stop and restart asterisk. mpg123 is no longer in use. The above works just fine with the asterisk-provided musiconhold files located in the above mohmp3 directory. If you add other mp3 files into that directory, you might have to convert them per the README. ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] mpg123 alternative?
I'd suggest using the format_mp3 program that's included in asterisk-addons. We switched to that after mpg123 wouldn't compile on our newer 64bit machines, and it works like a charm, and you don't have to change anything. Aaron Rich Adamson wrote: Been using mpg123 for moh for the last two years or so. However, when I have * config errors, often times get a endless stream of console messages and need to kill the two mpg123 processes. Is there an alternative to mpg123 that eliminates that issue? I see references in musiconhold.conf relative to madplay, native file format, asterisk-addons, etc. Not sure why the asterisk-addon approach hasn't been moved into trunk, or if madplay is a better choice on this fc3 trunk box. Any suggestions? ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] mpg123 alternative?
Matt Roth wrote: We were using the rawplayer method on our server, but it ended up spawning hundreds of zombie processes. I talked to Kevin Fleming about it, and he recommended switching to native MOH. Scalability is a big concern of mine, so I asked him about the I've had issues with Native MOH when using IAX trunking and Placing a caller into a parking slot. Sound is awful. So, for parking I use mpg123 and everything else I'm using Native MOH. Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety. ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] mpg123 alternative?
From my understanding of your question, you are looking for the format_mp3 module that is in the Asterisk Add-ons tarball. This is classed as the native way of playing mp3 AFAIK Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Faris Raouf Sent: Friday, 24 February 2006 5:36 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] mpg123 alternative? Ah! Now this is actually something I've not been able to get my head around: Note: As of Asterisk 1.2.0, Mpg123 is no longer used by Asterisk, which has its own MP3 player. Can anybody tell me where this built-in MP3 player is in 1.2.x/how do I use it ? I still seem to have the usual two mpg123 processes running with 1.2.4, with whatever music on hold is set in musiconhold.conf I'm sure it is very obvious, but I can't for the life of me figure out what I'm supposed to do to use the built-in MP3 player facilities. I just have the following in my musiconhold.conf: [default] mode=mp3 directory=/var/lib/asterisk/mohmp3 random=yes Faris. ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] mpg123 alternative?
Thanks for the info Matt. I had the zombie issue too. Based on my observations I decided those processes were due to safe_asterisk not killing rawplayer (it does mpg123 processes). So I modified safe_asterisk to do that, and zombie processes were gone. But you may be right, native players may be better. Kevin should know better anyway. (However, on my slooow test machine, native mp3 player speeds up and down sometimes, so I need every processor cycle. Not a recommended configuration on production systems of course.) - Original Message - From: Matt Roth [EMAIL PROTECTED] Soner Tari wrote: I vote for the raw file format, due to the reasons listed here: http://www.orderlyq.com/asteriskqueues.html Of course you need to convert all mp3 moh files to raw format manually, but it's easy as described there. We were using the rawplayer method on our server, but it ended up spawning hundreds of zombie processes. I talked to Kevin Fleming about it, and he recommended switching to native MOH. Scalability is a big concern of mine, so I asked him about the impact it would have on CPU, memory, and disk utilization. His response was, not much, more memory usage though. I could spare the memory, so I gave it a shot. So far, I'm very impressed. It eliminated the zombie processes completely and the quality of the playback is *much* better. Matthew Roth InterMedia Marketing Solutions Software Engineer and Systems Developer ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] mpg123 alternative?
Rich Adamson wrote: Is there any particular reason for the native file format stuff to be in asterisk-addons as opposed to that code being merged into trunk? It isn't. You are mis-interpreting the information in this thread (it's been unclearly stated anyway). The only portion that is in asterisk-addons is format_mp3, which allows Asterisk to natively open MP3 files. However, that is of little use, when you can use sox to convert those files into slinear/ulaw/alaw/gsm/etc. so that no transcoding is needed when the audio is played to a caller. ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] mpg123 alternative?
We switched to that after mpg123 wouldn't compile on our newer 64bit machines You might have successfully compiled with make linux-devel perhaps. I did. ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] mpg123 alternative?
Check out the musiconhold.conf.sample in the asterisksource/configs folder. Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Faris Raouf Sent: 23 February 2006 18:36 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] mpg123 alternative? Ah! Now this is actually something I've not been able to get my head around: Note: As of Asterisk 1.2.0, Mpg123 is no longer used by Asterisk, which has its own MP3 player. Can anybody tell me where this built-in MP3 player is in 1.2.x/how do I use it ? I still seem to have the usual two mpg123 processes running with 1.2.4, with whatever music on hold is set in musiconhold.conf I'm sure it is very obvious, but I can't for the life of me figure out what I'm supposed to do to use the built-in MP3 player facilities. I just have the following in my musiconhold.conf: [default] mode=mp3 directory=/var/lib/asterisk/mohmp3 random=yes Faris. ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users