Frank Tarczynski
2006-Sep-29 05:54 UTC
[asterisk-users] Replacing mpg123 with madplay under Solaris?
I'm running Asterisk 1.2.12.1 on a Solaris 10 box. I've built mpg123 but it doesn't want to play well under Solaris so I want to replace it madplay. I've edited app/app_mp3.c and res/res_musiconhold.c to change the calls for mpg123 to madplay with the appropriate options. The madplay executable works find on this box from the command line but is giving a segmentation fault when called from Asterisk. Has anyone already done this switch? Can they share some pointers? Frank
Matthias Fechner
2006-Sep-29 06:13 UTC
[asterisk-users] Replacing mpg123 with madplay under Solaris?
Hi Frank, Frank Tarczynski schrieb:> The madplay executable works find on this box from the command line but > is giving a segmentation fault when called from Asterisk. > > Has anyone already done this switch? Can they share some pointers?I run here Asterisk on FreeBSD with the buildin MOH from asterisk. It plays here mp3s perfectly, why not use it too? Best regards, Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook
Ken Godee
2006-Sep-29 08:23 UTC
[asterisk-users] Replacing mpg123 with madplay under Solaris?
> I'm running Asterisk 1.2.12.1 on a Solaris 10 box. I've built mpg123 > but it doesn't want to play well under Solaris so I want to replace it > madplay. > > I've edited app/app_mp3.c and res/res_musiconhold.c to change the calls > for mpg123 to madplay with the appropriate options. >I'm using a little older version of asterisk with Madplay, but is it not still configured the same way, through the...... "musiconhold.conf" ; ; Music on hold class definitions ; [classes] default => custom:/var/lib/asterisk/mohmp3/,/usr/local/bin/madplay -Q --attenuate=-5 --mono -R 8000 --output=RAW:- iron2 => custom:/var/lib/asterisk/iron2/,/usr/local/bin/madplay -Q -z --attenuate=-25 --fade-in --mono -R 8000 --output=RAW:-
Tzafrir Cohen
2006-Sep-29 12:27 UTC
[asterisk-users] Replacing mpg123 with madplay under Solaris?
On Fri, Sep 29, 2006 at 08:47:27AM -0400, Frank Tarczynski wrote:> I'm running Asterisk 1.2.12.1 on a Solaris 10 box. I've built mpg123 > but it doesn't want to play well under Solaris so I want to replace it > madplay.Just stating the obvious: the only please where you'd need mpg123 is for streaming mp3 from a remote site. And even then, there is a performance penalty. If you have control of the streaming source, streaming raw sinear, or gsm, can save much on the performance side. -- Tzafrir Cohen sip:tzafrir@local.xorcom.com icq#16849755 iax:tzafrir@local.xorcom.com +972-50-7952406 jabber:tzafrir@jabber.org tzafrir.cohen@xorcom.com http://www.xorcom.com