Stream your shoutcast for on hold music
HERES How you do it(BETTER WAY)
1) apt-get install madplay
2) nano /etc/asterisk/mohstream.sh
paste
#!/bin/bash
#this is all one line its broken up here just make #it one line
/usr/bin/wget -q -O - http://160.79.128.242:8000 | /usr/bin/madplay -Q -z -o raw:- --mono -R 8000 -a -12 -
chmod +x /etc/asterisk/mohstream.sh
3) nano /etc/asterisk/musiconhold.conf (paste)
[zraycustom]
mode=custom
dir=/etc/asterisk/companies/zray_technologies.d/music.d/stream
application=/etc/asterisk/mohstream.sh
-----------------------------------------------
Heres a less good way, I had problems with keeping my streams playing and the process kept dieing all the time.
1) install the newest mpg123 from: http://sourceforge.net/project/showfiles.php?group_id=135704
2) create a directory like /asteriskmoh
3) touch /asteriskmoh/stream.mp3
4) nano musiconhold.conf (add this)
stream => mp3:/asteriskmoh,http://24.38.34.98:8100/listen
5) in the asterisk console type "moh reload"
6) make sure you dont get any error messages when you do this.
7) exit and check ps ax | grep mpg123... you should see your stream as one of the processes. if not, killall -9 mpg123 and try to reload it..
8) your music should begin playing after a shot time. sometimes i had to wait up to 10 minutes of the buffering to happen for some reason, untill then i would just hear nothing.
9) if you want to get a source from shoutcast you must type wget http://filename.pls then open the file with a text editor like nano and use the link inside the file as your path. do not use the path that you would see if you were clicking on your browser.
10) if the buffer runs out, it seems like it just stops the music on hold.. if you then call right back, it will start and the stop right away. If you wait a minute and let the buffer fill back up it will work for a short time.!

Recent comments
2 years 13 weeks ago
2 years 23 weeks ago
2 years 23 weeks ago
2 years 29 weeks ago
2 years 35 weeks ago
2 years 37 weeks ago
2 years 49 weeks ago
2 years 50 weeks ago
2 years 50 weeks ago
3 years 13 weeks ago