Streaming url

Hi,
i have asterisk 1.6.2 installed with no hardware card
i want stream audio using mpg123 and musiconhold using SIP phone

i have REHL 6 64 bit

my musiconhold looks like

[rath]
mode=custom
application=/usr/local/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s sound17.mp3pk.com/indian/bhaagmilkhabhaag/[Songs.PK]%20Bhaag%20Milkha%20Bhaag%20-%2003%20-%20Mera%20Yaar.mp3
format=ulaw

and extensions.conf lokks like

[moh_reload]
exten => _X.,1,answer()
exten => _X.,n,wait(1)
exten => _X.,n,playback(hello-world)
exten => _X.,n,SetMusicOnHold(rath)
exten => _X.,n,Set(CHANNEL(musicclass)=rath)
exten => _X.,n,wait(10)
exten => _X.,n,Set(CHANNEL(musicclass)=radio)
exten => _X.,n,wait(10)
exten => _X.,n,hangup()

but when i dial to this context call get hangup with no error message

please help whats wrong???

You haven’t done anything that would start music on hold.

Although I consider using MP3 for MOH to be a waste of processing power, so am not too familiar with streaming, I would epect the format parameter to have to match the output format from the command, which is very unlikely to be mu-law.

david please tell what i need to do ???

Use the Musiconhold, Dial (with m opton) or Queue applications, or set up a call and initiate a hold from the phone of the other party.

Read the documentation carefully.

thanks david its working fine :smile: :smile:

A post was split to a new topic: Streaming URL help