<div class="gmail_quote">2010/4/30 Motiejus Jakštys <span dir="ltr"><<a href="mailto:desired.mta@gmail.com">desired.mta@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
please always add asterisk version to your query.<br></blockquote><div><br></div><div><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-size: 13px; border-collapse: collapse; ">I am using Asterisk 1.4.17~dfsg-2ubuntu1.1 on an Ubuntu 8.04.4 server.</span></div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I managed to run internet radio (that streams MP3) within asterisk.<br>
Minor change is nescesarry to make it work with random MP3s.<br>
<br>
My Dialplan:<br>
exten => _X.,n,Answer()<br>
exten => _X.,n,MP3Player(<a href="http://stream.m-1.fm/m1/mp3" target="_blank">http://stream.m-1.fm/m1/mp3</a>)<br>
<br>
$ cat /usr/bin/mpg123<br>
<br>
#!/bin/bash<br>
/usr/bin/wget -q -O - $1 | /usr/bin/madplay -Q -z -o raw:- --mono -R<br>
8000 -a -6 -<br>
<br>
You should change the WGET part to something that better suits your needs.<br>
<br>
Tested on asterisk 1.4.27<br></blockquote><div><br></div><div>Good.</div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">Is there a way to set random in "files" mode?</font></div>
<div><font face="'courier new', monospace"><br></font></div></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div><font class="Apple-style-span" face="'courier new', monospace"><br>
</font></div><div><span class="Apple-style-span" style="border-collapse: separate; font-size: small;"><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></span></div></span></div></div>