I am trying this with Asterisk 13.7 :
"Re: Streaming asx files with music on hold
Postby sizhutou » Tue Jun 30, 2015 7:16 am
(1) create a script file, say /var/lib/asterisk/moh/bbn.sh, make sure it’s executable by asterisk
#if [ -n “
ls /tmp/asterisk-moh-pipe.*” ]; then
#rm -f /tmp/asterisk-moh-pipe.*
mknod $PIPE p
mplayer -nocache -playlist http://www.bbnradio.org/WindowsMediaDot … nglish.asx -really-quiet -quiet
-ao pcm:fast -channels 1 -af resample=8000,channels=1,format=mulaw -ao pcm:file=$PIPE | cat $PIPE
(2) add a section in /etc/asterisk/musiconhold.conf
In asterisk 13, you may enable wideband audio by assigning resample=16000, format=s16le in bbn.sh and appending a line “format=slin16” to musiconhold.conf
Joined: Tue Jun 30, 2015 6:58 am"
i cannot play stream correct “to slow”, with resample=16000, format=s16le and also i think that the “format=slin16” in musiconhold.conf must be “format=sln16”.
I can play the stream with normal speed, with resample=8000,channels=1,format=mulaw.
Also in files mode everything works as expected.