[asterisk-users] Shoutcast music-on-hold

Jon Schøpzinsky jos at detele.dk
Mon Mar 12 05:32:46 MST 2007


Hello List

 

I am currently testing, using a shoutcast server as source for MOH.

 

Here is the command im using:

/usr/bin/wget -q -O - http://listen.coolfm.dk:80/ | /usr/local/bin/madplay -d -Q -z -o raw:- --mono -R 44100 - | sox -r 44100 -w -s -t raw - -r 8000 -c 1 -t raw - resample vol 0.10

 

I know that the normal examples, only shows using madplay without sox, but the quality is soooo bad when I do this, compared to using SoX to do the samplerate conversion.

 

My problem is, that everytime somebody hangs up, and nobody is using the MOH, it seems as though it stops reading data from the shoutcast server. This results in the music re-buffering from the shoutcast server, which skips the music, and in this scenario results in a re-connect to the shoutcast server.

 

Anybody know of a solution for this?

 

Jon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070312/803cc902/attachment.htm


More information about the asterisk-users mailing list