Streamplayer with asterisk 1.6

hi,

I have asterisk 1.6 and centos 5.5

I am trying to figure out is there anything that i can stream radio2fun.com/ live as my music on hold.

I already check the all tutorial.but it seems i am missing something

How I can use stream player to stream the above online radio???

what does the Ip address mean in musiconhold.conf
application=/usr/bin/streamplayer 192.168.100.52 888

can anybody help me out???

thanks in advance

hey

I am trying all sort of thing available for music on hold

pbxinaflash.com/forum/showthread.php?t=2666

mark.hulber.com/voip/configurati … terisk-16/

voip-info.org/wiki/view/Aste … nhold.conf

I can play mp3 song with the application Mp3Player but when I try to stream from any online radio i cant hear any sound.
OS=Centos 5.5
asterisk 1.6

here is my musiconhold.conf

;[default]
;mode=files
;directory=/dev/null

;[regular]
;mode=custom
;dir=/opt/asterisk/var/lib/asterisk/mohmp3-empty
;application=/usr/local/bin/mpg123 -q -r 8000 -f 8192 -s .mono 69.28.128$
;application=/usr/local/bin/mpg123 -q -r 8000 -f 8192 -s .mono 69.28.128$
;application=/usr/local/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s
radio2fun.com:80/

[radio2fun]
'mode=custom
;application=/opt/asterisk/sbin/streamplayer 67.228.101.162 7600

[default]
mode=custom
dir=/opt/asterisk/var/lib/asterisk/mohmp3-empty
application=/opt/asterisk/etc/asterisk/mohstream.sh

and simple extensions.conf

exten => 234,1,Answer()
exten => 234,n,Musiconhold(default)

i already installed mplayer,mpg123

what should do now???

can anyone help me with step step setup with MOH ?

thanks in advance

hey guys,i already solve my problem.

Dont use yum to install mpg123.Download the tarball compile it then …

It was wrong version of mpg123.i use yum to install it.but that not gonna work.

here link : mpg123.orgis.org/download/mpg123-0.60.tar.gz

here is the step by step work to get your musiconhold work.

  1. wget mpg123.orgis.org/download/mpg123-0.60.tar.gz

2.tar -zxvf mpg123-0.60.tar.gz

3.cd mpg123-0.60

4…/configure then make and make install

  1. edit musiconhold.conf

like this:
[regular]
mode=custom
application=/usr/local/bin/mpg123 -q -r 8000 -f 8192 -s -m 67.228.101.16$:7600

then check the online radio is working on your asterisk
[radio]
exten => 234,1,Answer()
exten => 234,n,Musiconhold(regular)
exten => 234,n,hangup()

Now you can enjoy your online radio on your asterisk.

hope it will be helpful

Thanks

mpg123 is not suitable for mms streams, could anyone help me to get another player?

hi,

Sorry for the late response.you can check this link for your mms streaming…

voip-info.org/wiki/view/Aste … nhold.conf

Hope it will help.let me know what happen.

Thanks

I have the same problem currently, on Ubuntu server.
If you read this, can you please answer if the problem is the same as mine:

  1. MP3Player() plays the local MP3
  2. MP3Player() does not play a streaming MP3 - in the following manner:
    • It sais it is playing it for about 10 seconds, the it hangs up.
    • Wireshark tells me, that the music IS beeing downladed.
    • mpg123 plays the stream without in a shell normally.

No error messages or anything.

Dear Cegu,

May be you can try by following my step I describe.I did not have same problem but it seems somehow mpg player is fail to play your streaming mp3.So try the particular version of mpg123.

Hope it will help.Please let me know what is result.

Thanks in advance