[asterisk-users] Streaming musiconhold via mpg123
Stephen Brown
stephen.brown75 at gmail.com
Tue Feb 21 17:34:25 CST 2012
On 2/21/2012 3:38 PM, isrlgb at gmail.com wrote:
> There is a bug in up to version 1.8.9 with external moh sources and dahdi timers
Do you have a link to the bug report? I was unable to find anything but
it's possible I'm not looking hard enough ;)
> Share with us your musiconhold.conf configuration please.
Here it is... please excuse the mess, it's been a wild ride so my
formatting/commenting has been left in-tact:
;
; Music on hold class definitions
; This is using the new 1.2 config file format, and will not work with 1.0
; based Asterisk systems
;
; #include musiconhold_custom.conf
; #include musiconhold_additional.conf
;[default]
;mode=custom
;application=/usr/src/mpg123/mpg123-1.13.4/src/mpg123 -q -s --mono -r
8000 -f 8192 -b 0 http://scfire-ntc-aa03.stream.aol.com:80/stream/1074
;application=/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0
http://scfire-ntc-aa03.stream.aol.com:80/stream/1074
[test]
mode=custom
;application=/usr/src/mpg123/mpg123-1.13.4/src/mpg123 -q -s --mono -r
8000 -f 8192 -b 0 http://scfire-ntc-aa03.stream.aol.com:80/stream/1074
;application=/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0
http://scfire-ntc-aa03.stream.aol.com:80/stream/1074
application=/usr/bin/mpg123 -q -s -f 8192 --mono -r 8000
/var/lib/asterisk/sounds/music/Rolling In The Deep.mp3
I setup a simple 2 digit extension to call the test context and my MP3
file nor my stream will play, and here's something else interesting: If
use the MP3Player application to play an MP3, mpg123 spawns and plays
it. I came to this conclusion by running ps aux | grep mpg while the
song was playing.
More information about the asterisk-users
mailing list