Streamplayer with asterisk 1.6


I have asterisk 1.6 and centos 5.5

I am trying to figure out is there anything that i can stream 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 888

can anybody help me out???

thanks in advance


I am trying all sort of thing available for music on hold … terisk-16/ … 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


;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

;application=/opt/asterisk/sbin/streamplayer 7600


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 :

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

  1. wget

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

4…/configure then make and make install

  1. edit musiconhold.conf

like this:
application=/usr/local/bin/mpg123 -q -r 8000 -f 8192 -s -m$:7600

then check the online radio is working on your asterisk
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


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


Sorry for the late can check this link for your mms streaming… … nhold.conf

Hope it will help.let me know what happen.


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