Thanks to this thread, we got it working too... but have a question... Once this is setup... does it stream forever, or does the stream only start when someone goes on hold/into a queue/etc? If it streams forever, at 24k... it looks like over 7GB/month in bandwidth... so we're not going to want to do that if a) it streams constantly and b) my math is correct. Thanks, Doug> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Douglas Garstang > Sent: Wednesday, February 22, 2006 4:18 PM > To: jaugenstine@stoneeyes.com; 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 lotdon't> work, especially when the URL ends in something.pls. Anyone know ifthat's> true? Is Asterisk's support of this still pretty limited? > > Doug. > > -----Original Message----- > From: Jonathan Augenstine [mailto:jaugenstine@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, Itried 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") innew> stack > > -- Executing WaitMusicOnHold("SIP/3250072-ed28", "60") in newstack> > -- 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), Iget> 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. Whatam 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
Douglas Garstang
2006-Feb-23 12:42 UTC
[Asterisk-Users] Streaming Music On Hold - Reality Check
Yes, it streams forever. If you start Asterisk, run an ngrep command or other monitoring tool. You will see that as soon as you start Asterisk, it starts to receive a stream. If it didn't do this, then when someone went on hold, it would have to connect, which may take a number of seconds. -----Original Message----- From: Doug Geary [mailto:doug.geary@gearytech.com] Sent: Thursday, February 23, 2006 11:04 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] Streaming Music On Hold - Reality Check Thanks to this thread, we got it working too... but have a question... Once this is setup... does it stream forever, or does the stream only start when someone goes on hold/into a queue/etc? If it streams forever, at 24k... it looks like over 7GB/month in bandwidth... so we're not going to want to do that if a) it streams constantly and b) my math is correct. Thanks, Doug> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Douglas Garstang > Sent: Wednesday, February 22, 2006 4:18 PM > To: jaugenstine@stoneeyes.com; 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 lotdon't> work, especially when the URL ends in something.pls. Anyone know ifthat's> true? Is Asterisk's support of this still pretty limited? > > Doug. > > -----Original Message----- > From: Jonathan Augenstine [mailto:jaugenstine@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, Itried 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") innew> stack > > -- Executing WaitMusicOnHold("SIP/3250072-ed28", "60") in newstack> > -- 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), Iget> 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. Whatam 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