Upgrade 3CX to v18 and get it hosted free!

Using Slimserver for Music on Hold

Author image

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

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.