RE: [Asterisk-Users] Streaming Music On Hold
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
RE: [Asterisk-Users] Streaming Music On Hold
On Thu, 2006-02-23 at 08:09 +, Lee Archer wrote: 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 That is useful to know, however that isnt the 'pls' play list files, they contain extra info over and above the url. however if one were to do something as simple as: grep ^File *.pls | cut -d= -f2- stream.playlist then they could use your information with pls files :) -- Trixter http://www.0xdecafbad.com Bret McDanel UK +44 870 340 4605 Germany +49 801 777 555 3402 US +1 360 207 0479 or +1 516 687 5200 FreeWorldDialup: 635378 http://www.sacaug.org/ Sacramento Asterisk Users Group signature.asc Description: This is a digitally signed message part ___ --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
RE: [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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] [mailto:asterisk-users- [EMAIL PROTECTED] On Behalf Of Douglas Garstang Sent: Wednesday, February 22, 2006 4:18 PM 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 ___ --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
[Asterisk-Users] Streaming Music On Hold
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
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
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
Re: [Asterisk-Users] Streaming Music On Hold
On 22/02/06, Douglas Garstang [EMAIL PROTECTED] wrote: 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? something.pls isn't a stream, it's a playlist which (probably) lists streams within it. Peter -- Peter Bowyer Email: [EMAIL PROTECTED] Tel: +44 1296 768003 VoIP: sip:[EMAIL PROTECTED] VoIP: [EMAIL PROTECTED] FWD: **275*5048707000 VoipTalk: **473*5048707000 ___ --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