> is there a way to limit the number of spawned mpg123 processes. I have > 22 mpg123 in my tasklist, consuming 97% of CPU power. That seems a > little too much for me, considering, I have just 4 external lines...Seems to have been a common occurance on past * implementations. Just stop asterisk, then kill all mpg123 sessions that exist, and restart asterisk. Seems to me that I read something recently where coding changes were made to help resolve this; could be just my imagination though.
You could try to use the native mp3 support for MOH if you really want mp3 support. It is a lot better than using mpg123 IMHO. mpg123 kept doing nasty things to my system :) See http://www.voip-info.org/tiki-index.php?page=Asterisk%20config%20musicon hold.conf there is a section about the native support. Guillaume> -----Original Message----- > From: Stefan Gofferje [mailto:stefan@gofferje.homelinux.org] > Sent: Friday, February 04, 2005 1:43 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: [Asterisk-Users] Limit MOH processes > > Hi folks, > > is there a way to limit the number of spawned mpg123 processes. I have > 22 mpg123 in my tasklist, consuming 97% of CPU power. That > seems a little too much for me, considering, I have just 4 > external lines... > > Regards, > Stefan > > > -- > (o_ Stefan Gofferje | Linux Systems Specialist > //\ Reg'd Linux User #247167 | SuSE Certified Linux Trainer > V_/_ Linux is like a Wigwam - No gates, no windows, Apache inside > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
> > > - use one of the many patches for native MOH without mpg123 > > Well, doesn't that mean, I have to convert all the mp3s to > another bitrate/format? *sigh* >I'm using a whole bunch of my mp3s and I didn't have to convert any of them. It seems to be working fine. All I had to do is install the addon. Guills
> > Seems to have been a common occurance on past * implementations. Just > > stop asterisk, then kill all mpg123 sessions that exist, and restart > > asterisk. > > > > Seems to me that I read something recently where coding changes were > > made to help resolve this; could be just my imagination though. > > Looks like * doesn't kill the mpg123 procs on exit or restart, so on any > (re)start, there are some new mpg123s...If I recall correctly, the issue has something to do with some sort of error condition in * and is not generally associated with restarting asterisk. Might want to research that further as if that is happening to you, then I'd suggest there is something not configured correctly.> I put a killall -9 mpg123 into my /etc/init.d/asterisk script... That > should help for now...
Can I have multiple classes like with mpg123? yes.. slayer => mp3:/var/lib/asterisk/mohmp3/slayer,-z tool => mp3:/var/lib/asterisk/mohmp3/tool,-z On Sat, 2005-02-05 at 15:38, Stefan Gofferje wrote:> Chamberland-Larose, Guillaume schrieb: > >>>- use one of the many patches for native MOH without mpg123 > >> > >>Well, doesn't that mean, I have to convert all the mp3s to > >>another bitrate/format? *sigh* > >> > > > > > > I'm using a whole bunch of my mp3s and I didn't have to convert any of > > them. It seems to be working fine. All I had to do is install the addon. > > I have got latest asterisk-addons w/ format_mp3. Installed and > configured it exactly as said in the WiKi. > > ; > ; Music on hold class definitions > ; > [classes] > [moh_files] > default => /var/lib/asterisk/moh-native > > > Problem: > > Feb 6 00:35:26 WARNING[8815]: res_musiconhold.c:354 moh0_exec: Unable > to start music on hold (class '') on channel SIP/6004-7dae > > Do you have a hint on that? > Can I have multiple classes like with mpg123? > > Regards, > Stefan-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050205/dcf43dd3/attachment.pgp
Is it possible your MoH class isn't set properly for that call? It should say class 'default' not class ''. But then again, IANAME (I Am Not A Music-on-hold Expert) ;) Guills> -----Original Message----- > From: Stefan Gofferje [mailto:stefan@gofferje.homelinux.org] > Sent: Saturday, February 05, 2005 3:39 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] Limit MOH processes > > Chamberland-Larose, Guillaume schrieb: > >>>- use one of the many patches for native MOH without mpg123 > >> > >>Well, doesn't that mean, I have to convert all the mp3s to another > >>bitrate/format? *sigh* > >> > > > > > > I'm using a whole bunch of my mp3s and I didn't have to > convert any of > > them. It seems to be working fine. All I had to do is > install the addon. > > I have got latest asterisk-addons w/ format_mp3. Installed > and configured it exactly as said in the WiKi. > > ; > ; Music on hold class definitions > ; > [classes] > [moh_files] > default => /var/lib/asterisk/moh-native > > > Problem: > > Feb 6 00:35:26 WARNING[8815]: res_musiconhold.c:354 > moh0_exec: Unable to start music on hold (class '') on > channel SIP/6004-7dae > > Do you have a hint on that? > Can I have multiple classes like with mpg123? > > Regards, > Stefan > > -- > (o_ Stefan Gofferje | Linux Systems Specialist > //\ Reg'd Linux User #247167 | SuSE Certified Linux Trainer > V_/_ Linux is like a Wigwam - No gates, no windows, Apache inside > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Can Asterisk-oh323 generate the package BRQ? Thanks Megan Willigs
>> Can I have multiple classes like with mpg123? >> >> yes.. >> >> slayer => mp3:/var/lib/asterisk/mohmp3/slayer,-z >> tool => mp3:/var/lib/asterisk/mohmp3/tool,-z > > > Doesn't work: > > Feb 6 01:03:06 WARNING[8815]: res_musiconhold.c:354 moh0_exec: Unable > to start music on hold (class '') on channel SIP/6004-1416 >Someone posted just a couple of weeks ago that format_mp3 from the addons has not been ported to all versions of asterisk. I too was having problems with mpg123, tried to use format_mp3 on v1.0.3, compiles ok, but didn't work. So this last weekend installed "madplay" and using the "custom" setting bypassing mpg123 all together. So far, a couple of days in production and no problems. Still early, but so far happy with it. Was averaging about one runaway mpg123 process per week.