[Asterisk-Users] Streaming Music On Hold

Douglas Garstang dgarstang at oneeighty.com
Wed Feb 22 09:28:05 MST 2006


Ok, I'm tearing my hair out trying to get Asterisk moh streaming to work. After several hours jerking around with icecast and muse, I tried to point my asterisk system directly at two streams I know work.

This is what extensions.conf has:

[default]
mode=quietmp3
directory=/var/lib/asterisk/mohmp3

[stream2]
mode=custom
directory=/var/lib/asterisk/mohmp3-empty
application=http://pubint.ic.llnwd.net/stream/pubint_wnpr

and this is how I am testing it:
exten => 1234,1,Answer
exten => 1234,2,SetMusiconHold(stream2)
exten => 1234,3,WaitmusiconHold(60)
exten => 1234,4,Hangup

and this is the console output I get when I dial 1234:

Asterisk Ready.
*CLI>     -- Executing Answer("SIP/3250072-ed28", "") in new stack
    -- Executing SetMusicOnHold("SIP/3250072-ed28", "stream2") in new stack
    -- Executing WaitMusicOnHold("SIP/3250072-ed28", "60") in new stack
    -- Started music on hold, class 'stream2', on channel 'SIP/3250072-ed28'
    -- Stopped music on hold on SIP/3250072-ed28

If I replace SetMusiconHold(stream2) with SetMusiconHold(default), I get the default music on hold. Running ngrep on port 80 shows me that the Asterisk system is not sending or receiving ANY data on port 80. What am I doing wrong? Yes, it has network and DNS connectivity.	

Can't believe it's this hard! 

Doug.



More information about the asterisk-users mailing list