Re: [asterisk-users] Streaming musiconhold via mpg123
On 02/21/2012 11:30 PM, Jason Parker wrote: On 02/21/2012 05:34 PM, Stephen Brown wrote: application=/usr/bin/mpg123 -q -s -f 8192 --mono -r 8000 /var/lib/asterisk/sounds/music/Rolling In The Deep.mp3 Probably unrelated to your issue, but you're going to want to quote that filename. And while I am not a lawyer, nor do I play one on TV, you should be aware that using copyrighted music as music-on-hold can constitute 'broadcast' of that music, and might result in you being obligated to pay royalties to the copyright holders and their license managers. You need to investigate the situation in the place you plan to do this. I'll also state that while I very much enjoy that song, I do not want to *ever* hear it in 8kHz mono :-) -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies Jabber: kflem...@digium.com | SIP: kpflem...@digium.com | Skype: kpfleming 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at www.digium.com www.asterisk.org -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Streaming musiconhold via mpg123
At my wits end with this, and can't proceed any further so I'm hoping someone has seen this and can assist. I can not get streaming musiconhold to work with Asterisk. My Asterisk version is 1.8.8.0 and the mpg123 version is 1.9.1, OS is CentOS 5.7. When I call the musiconhold class (default for example) I get nothing but silence. I've exhausted my troubleshooting capabilities at this point, I've tried everything I can think of to include: - a newer version of mpg123, I went with the latest version - verified I could play an MP3 file by itself in Asterisk by using the MP3Player application What does not work, is if I use the mpg123 application for musiconhold to play a standalone file or a streaming source. I seem to be missing something and I just can't quite put a finger on it. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Streaming musiconhold via mpg123
There is a bug in up to version 1.8.9 with external moh sources and dahdi timers -Original Message- From: Stephen Brown stephen.brow...@gmail.com Sender: asterisk-users-boun...@lists.digium.com Date: Tue, 21 Feb 2012 15:34:19 To: Asterisk Users Mailing List - Non-Commercial Discussionasterisk-users@lists.digium.com Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Subject: [asterisk-users] Streaming musiconhold via mpg123 At my wits end with this, and can't proceed any further so I'm hoping someone has seen this and can assist. I can not get streaming musiconhold to work with Asterisk. My Asterisk version is 1.8.8.0 and the mpg123 version is 1.9.1, OS is CentOS 5.7. When I call the musiconhold class (default for example) I get nothing but silence. I've exhausted my troubleshooting capabilities at this point, I've tried everything I can think of to include: - a newer version of mpg123, I went with the latest version - verified I could play an MP3 file by itself in Asterisk by using the MP3Player application What does not work, is if I use the mpg123 application for musiconhold to play a standalone file or a streaming source. I seem to be missing something and I just can't quite put a finger on it. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Streaming musiconhold via mpg123
On Tue, Feb 21, 2012 at 2:34 PM, Stephen Brown stephen.brow...@gmail.comwrote: At my wits end with this, and can't proceed any further so I'm hoping someone has seen this and can assist. I can not get streaming musiconhold to work with Asterisk. My Asterisk version is 1.8.8.0 and the mpg123 version is 1.9.1, OS is CentOS 5.7. When I call the musiconhold class (default for example) I get nothing but silence. I've exhausted my troubleshooting capabilities at this point, I've tried everything I can think of to include: - a newer version of mpg123, I went with the latest version - verified I could play an MP3 file by itself in Asterisk by using the MP3Player application What does not work, is if I use the mpg123 application for musiconhold to play a standalone file or a streaming source. I seem to be missing something and I just can't quite put a finger on it. Share with us your musiconhold.conf configuration please. -- Thanks, --Warren Selby, dCAP http://www.SelbyTech.com http://www.selbytech.com -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Streaming musiconhold via mpg123
On 2/21/2012 3:38 PM, isr...@gmail.com wrote: There is a bug in up to version 1.8.9 with external moh sources and dahdi timers Do you have a link to the bug report? I was unable to find anything but it's possible I'm not looking hard enough ;) Share with us your musiconhold.conf configuration please. Here it is... please excuse the mess, it's been a wild ride so my formatting/commenting has been left in-tact: ; ; Music on hold class definitions ; This is using the new 1.2 config file format, and will not work with 1.0 ; based Asterisk systems ; ; #include musiconhold_custom.conf ; #include musiconhold_additional.conf ;[default] ;mode=custom ;application=/usr/src/mpg123/mpg123-1.13.4/src/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://scfire-ntc-aa03.stream.aol.com:80/stream/1074 ;application=/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://scfire-ntc-aa03.stream.aol.com:80/stream/1074 [test] mode=custom ;application=/usr/src/mpg123/mpg123-1.13.4/src/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://scfire-ntc-aa03.stream.aol.com:80/stream/1074 ;application=/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://scfire-ntc-aa03.stream.aol.com:80/stream/1074 application=/usr/bin/mpg123 -q -s -f 8192 --mono -r 8000 /var/lib/asterisk/sounds/music/Rolling In The Deep.mp3 I setup a simple 2 digit extension to call the test context and my MP3 file nor my stream will play, and here's something else interesting: If use the MP3Player application to play an MP3, mpg123 spawns and plays it. I came to this conclusion by running ps aux | grep mpg while the song was playing. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Streaming musiconhold via mpg123
that bug is running since the start of 1.8 and has been fixed in 1.8.9 https://issues.asterisk.org/jira/browse/ASTERISK-17474 i know it says that after the first time asterisks starts it works but thats true only if the moh was loaded before the timing its a long story but the fix is finally in when typing timing test in the cli what timer to get if its dahdi then thats the probably problem On Wed, Feb 22, 2012 at 1:34 AM, Stephen Brown stephen.brow...@gmail.comwrote: On 2/21/2012 3:38 PM, isr...@gmail.com wrote: There is a bug in up to version 1.8.9 with external moh sources and dahdi timers Do you have a link to the bug report? I was unable to find anything but it's possible I'm not looking hard enough ;) Share with us your musiconhold.conf configuration please. Here it is... please excuse the mess, it's been a wild ride so my formatting/commenting has been left in-tact: ; ; Music on hold class definitions ; This is using the new 1.2 config file format, and will not work with 1.0 ; based Asterisk systems ; ; #include musiconhold_custom.conf ; #include musiconhold_additional.conf ;[default] ;mode=custom ;application=/usr/src/mpg123/mpg123-1.13.4/src/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://scfire-ntc-aa03.stream.aol.com:80/stream/1074 ;application=/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://scfire-ntc-aa03.stream.aol.com:80/stream/1074 [test] mode=custom ;application=/usr/src/mpg123/mpg123-1.13.4/src/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://scfire-ntc-aa03.stream.aol.com:80/stream/1074 ;application=/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://scfire-ntc-aa03.stream.aol.com:80/stream/1074 application=/usr/bin/mpg123 -q -s -f 8192 --mono -r 8000 /var/lib/asterisk/sounds/music/Rolling In The Deep.mp3 I setup a simple 2 digit extension to call the test context and my MP3 file nor my stream will play, and here's something else interesting: If use the MP3Player application to play an MP3, mpg123 spawns and plays it. I came to this conclusion by running ps aux | grep mpg while the song was playing. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Streaming musiconhold via mpg123
DAHDI it is are there any known workarounds? I use the FreePBX distro and they are a bit behind, so no telling when they will update. On 2/21/2012 6:45 PM, Israel Gottlieb wrote: that bug is running since the start of 1.8 and has been fixed in 1.8.9 https://issues.asterisk.org/jira/browse/ASTERISK-17474 i know it says that after the first time asterisks starts it works but thats true only if the moh was loaded before the timing its a long story but the fix is finally in when typing timing test in the cli what timer to get if its dahdi then thats the probably problem On Wed, Feb 22, 2012 at 1:34 AM, Stephen Brown stephen.brow...@gmail.com mailto:stephen.brow...@gmail.com wrote: On 2/21/2012 3:38 PM, isr...@gmail.com mailto:isr...@gmail.com wrote: There is a bug in up to version 1.8.9 with external moh sources and dahdi timers Do you have a link to the bug report? I was unable to find anything but it's possible I'm not looking hard enough ;) Share with us your musiconhold.conf configuration please. Here it is... please excuse the mess, it's been a wild ride so my formatting/commenting has been left in-tact: ; ; Music on hold class definitions ; This is using the new 1.2 config file format, and will not work with 1.0 ; based Asterisk systems ; ; #include musiconhold_custom.conf ; #include musiconhold_additional.conf ;[default] ;mode=custom ;application=/usr/src/mpg123/mpg123-1.13.4/src/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://scfire-ntc-aa03.stream.aol.com:80/stream/1074 ;application=/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://scfire-ntc-aa03.stream.aol.com:80/stream/1074 [test] mode=custom ;application=/usr/src/mpg123/mpg123-1.13.4/src/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://scfire-ntc-aa03.stream.aol.com:80/stream/1074 ;application=/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://scfire-ntc-aa03.stream.aol.com:80/stream/1074 application=/usr/bin/mpg123 -q -s -f 8192 --mono -r 8000 /var/lib/asterisk/sounds/music/Rolling In The Deep.mp3 I setup a simple 2 digit extension to call the test context and my MP3 file nor my stream will play, and here's something else interesting: If use the MP3Player application to play an MP3, mpg123 spawns and plays it. I came to this conclusion by running ps aux | grep mpg while the song was playing. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Streaming musiconhold via mpg123
You could preload the res_moh (don't remember the full name) but that will only help until the next reload which is the next time you'll click the orange bar Or use a different timer which could get you into other problems Maybe some else has a other idea -Original Message- From: Stephen Brown stephen.brow...@gmail.com Sender: asterisk-users-boun...@lists.digium.com Date: Tue, 21 Feb 2012 20:04:29 To: asterisk-users@lists.digium.com Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Streaming musiconhold via mpg123 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Streaming musiconhold via mpg123
On 02/21/2012 05:34 PM, Stephen Brown wrote: application=/usr/bin/mpg123 -q -s -f 8192 --mono -r 8000 /var/lib/asterisk/sounds/music/Rolling In The Deep.mp3 Probably unrelated to your issue, but you're going to want to quote that filename. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Streaming musiconhold via mpg123
You do need to wait until FreePBX updates the Asterisk. Use yum to install the modules you need. -Vladimir On 2/21/2012 7:04 PM, Stephen Brown wrote: DAHDI it is are there any known workarounds? I use the FreePBX distro and they are a bit behind, so no telling when they will update. On 2/21/2012 6:45 PM, Israel Gottlieb wrote: that bug is running since the start of 1.8 and has been fixed in 1.8.9 https://issues.asterisk.org/jira/browse/ASTERISK-17474 i know it says that after the first time asterisks starts it works but thats true only if the moh was loaded before the timing its a long story but the fix is finally in when typing timing test in the cli what timer to get if its dahdi then thats the probably problem On Wed, Feb 22, 2012 at 1:34 AM, Stephen Brown stephen.brow...@gmail.com mailto:stephen.brow...@gmail.com wrote: On 2/21/2012 3:38 PM, isr...@gmail.com mailto:isr...@gmail.com wrote: There is a bug in up to version 1.8.9 with external moh sources and dahdi timers Do you have a link to the bug report? I was unable to find anything but it's possible I'm not looking hard enough ;) Share with us your musiconhold.conf configuration please. Here it is... please excuse the mess, it's been a wild ride so my formatting/commenting has been left in-tact: ; ; Music on hold class definitions ; This is using the new 1.2 config file format, and will not work with 1.0 ; based Asterisk systems ; ; #include musiconhold_custom.conf ; #include musiconhold_additional.conf ;[default] ;mode=custom ;application=/usr/src/mpg123/mpg123-1.13.4/src/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://scfire-ntc-aa03.stream.aol.com:80/stream/1074 ;application=/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://scfire-ntc-aa03.stream.aol.com:80/stream/1074 [test] mode=custom ;application=/usr/src/mpg123/mpg123-1.13.4/src/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://scfire-ntc-aa03.stream.aol.com:80/stream/1074 ;application=/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://scfire-ntc-aa03.stream.aol.com:80/stream/1074 application=/usr/bin/mpg123 -q -s -f 8192 --mono -r 8000 /var/lib/asterisk/sounds/music/Rolling In The Deep.mp3 I setup a simple 2 digit extension to call the test context and my MP3 file nor my stream will play, and here's something else interesting: If use the MP3Player application to play an MP3, mpg123 spawns and plays it. I came to this conclusion by running ps aux | grep mpg while the song was playing. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users