Hi i’m Mariano from italy,
i would to configure asterisk to play asf streaming like music on hold.
It’s possible with asterisk 1.2.X?
I used a script by voip.info.org (following code lines):
File: mohstream.sh
#!/bin/bash
if [ -n “ls /tmp/asterisk-moh-pipe.*
” ]; then
rm /tmp/asterisk-moh-pipe.*
fi
PIPE="/tmp/asterisk-moh-pipe.$$"
mknod $PIPE p
mplayer -really-quiet -nowaveheader -quiet -shuffle -ao pcm -format 8192 -channels 1 -af resample=8000 -aofile $PIPE “$@” 2>/dev/null | cat $PIPE 2>/dev/null
rm $PIPE
but i don’t listen nothing or corrupted audio… can you help me?
Thank