login | register
Sat 06 of Sep, 2008 [16:13 UTC]

voip-info.org

History

Using Slimserver for Music on Hold

Created by: dexter,Last modification on Fri 26 of Aug, 2005 [03:17 UTC] by smithnc

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

Comments Filter
222

333

by gmagill, Friday 15 of June, 2007 [16:56:20 UTC]
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"


/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.
222

333Changing songs

by glador, Friday 15 of April, 2005 [19:07:59 UTC]
Does anyone have problems changing songs?
222

333workaround

by , Wednesday 19 of January, 2005 [14:28:02 UTC]
Turns out if I add a SetMusicOnHold(slimp3) then called MusicOnHold() it works as an extension.
222

333Re: no sound

by , Wednesday 19 of January, 2005 [04:26:52 UTC]
I am experiencing the same problem..
222

333got it

by , Monday 11 of October, 2004 [06:25:58 UTC]
ok, I've changed the /etc/slimserver.conf first lines to 127.0.0.1. Somehow it picked up the ip of my workstation. It works now. Only internet radio streams behave a bit funny or not at all sometimes..
222

333Re: no sound

by , Sunday 10 of October, 2004 [05:51:21 UTC]
oh forgot, the webinterface says: no player found...?
222

333no sound

by , Sunday 10 of October, 2004 [05:39:23 UTC]
Hi, I followed all directions to the letter, but get no sound... CLI say it's playing the slimp3 class tho...

Any ideas?