[Asterisk-Users] Streaming Music On Hold
Douglas Garstang
dgarstang at oneeighty.com
Wed Feb 22 14:17:45 MST 2006
Thanks. I got it working. Yay.
Now, it seems that Asterisk is very fussy with the streams. A lot don't work, especially when the URL ends in something.pls. Anyone know if that's true? Is Asterisk's support of this still pretty limited?
Doug.
-----Original Message-----
From: Jonathan Augenstine [mailto:jaugenstine at stoneeyes.com]
Sent: Wednesday, February 22, 2006 10:03 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Streaming Music On Hold
Try this:
musiconhold.conf:
[stream2]
mode=mp3
directory=http://pubint.ic.llnwd.net/stream/pubint_wnpr
extensions.conf:
exten => 1234,1,Answer
exten => 1234,2,MusicOnHold(stream2)
exten => 1234,3,Hangup
On Wed, 2006-02-22 at 09:28 -0700, Douglas Garstang wrote:
> 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.
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list