Using Slimserver for Music on Hold
MOH Slimserver
Use the slimserver to stream to your Music on Hold:Download and install the slimserver from http://www.slimdevices.com/su_downloads.html
Create a dummy mp3 directory with an empty mp3 file:
mkdir /var/lib/asterisk/mohmp3-dummy
touch /var/lib/asterisk/mohmp3-dummy/dummy.mp3
musiconhold.conf:
slimp3 => custom:/var/lib/asterisk/mohmp3-dummy,/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://localhost:9000/stream.mp3
Start the slimserver web interface at http://yourserverip:9000 , create and start your playlist
Test it (extensions.conf):
exten => 64,1,Answer
exten => 64,2,MusicOnHold(slimp3)
exten => 64,3,Hangup
You can install the slimserver on a remote server.
Have fun!
There "ought" to be a way to do this with madplay too. Anyone know what the arguments would look like for that?
answer: "madplay doesn't read streams"
See also
Go back to Asterisk tips and tricks
Comments
333
answer: "madplay doesn't read streams"
/usr/bin/wget -q -O - http://radiator.nci.de:8000/live | /usr/local/bin/madplay -Q -o raw:- --mono -R 8000 --attenuate=-6 -
Dont forget the - at the end, its not a typo, its needed to pipe the http stream back into madplay.
333Changing songs
333workaround
333Re: no sound
333got it
333Re: no sound
333no sound
Any ideas?