I spent a days or two on this and in the end did Musiconhold.conf
[livestream1] mode=custom application=/usr/local/bin/mpg123 -s --mono -y -f 8192 -r 8000 -@ /etc/asterisk/stream.playlist Then in stream.playlist I just put the links from Shoutcast I wanted to use http://64.236.34.67:80/stream/1040 http://64.236.34.196:80/stream/1040 Regards Lee -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Garstang Sent: 22 February 2006 21:18 To: [EMAIL PROTECTED]; Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] Streaming Music On Hold 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:[EMAIL PROTECTED] 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 _______________________________________________ --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