I have made a patch that uses sox instead of mpg123 to playback music on
hold.  Sox, when compiled correctly will support mpg, ogg, wav, gsm and
numerous other formats.  Attached is a diff file that will make change
asterisk's behavior to use sox via the perl wrapper I made.

To use this patch, you require sox.  If you want to be able to play mp3's
you will have to use a newer version than that distributed with redhat
(12.17.4+), as well as  -- you can download the versions I compiled at:

http://www.bingner.com/asterisk/sox-12.17.4-1.i686.rpm
http://www.bingner.com/asterisk/lame-3.93.1-1.i686.rpm

And the following I installed, but didn't need to compile myself:
http://dag.wieers.com/packages/libmad/libmad-0.14.2b-2.dag.rh90.i386.rpm

If you install all 3 of those I know you can play MP3 files.

Additionally, the wrapper watches for asterisk, and if it no longer sees
asterisk running it will die.  This simplifies life for asterisk.

Mark, if you think this patch is stable feel free to apply it... You have
my waiver already.

Sam

Attachment: moh_sox.diff
Description: Binary data

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to