elastix
Information
Community
Developers
What We Sell
Forums
Addons
Download
Information
Community
Social Networks
For Developers
Manufacturer Support
Appliances
Training & Certification

MOH - Streaming Internet Radio

General help forum

MOH - Streaming Internet Radio

Postby Bob » Thu Mar 27, 2008 7:08 am

Just remember someone asking a few weeks ago about whats needed for MOH Streaming Internet Radio.

Below is what I have running on one of my systems. For the record it is implemented on 0.9.2, but would expect no issues on 1.0.

cd /usr/src
wget http://dag.wieers.com/rpm/packages/libm ... f.i386.rpm
wget http://dag.wieers.com/rpm/packages/libi ... f.i386.rpm
wget http://zak.googlecode.com/files/madplay ... 5.i386.rpm
rpm -ivh libmad*.*
rpm -ivh libid3tag*.*
rpm -ivh madplay*.*

cd /var/lib/asterisk/mohmp3/
mkdir stream

cd stream
touch stream.mp3

add the following to /etc/asterisk/musiconhold_custom.conf (if other lines are in this file, just add these afterwards)

============================

[easylistening]
mode=custom
application = /usr/bin/madplay -q -s --mono -A 3 --attenuate=-3 -r 8000 -f 8192 -b 0 http://128.177.3.80:4064/

[classical]
mode=custom
application = /usr/bin/madplay -q -s --mono -A 3 --attenuate=-3 -r 8000 -f 8192 -b 0 http://216.126.84.50:8000/

[Country]
mode=custom
application = /usr/bin/madplay -q -s --mono -A 3 --attenuate=-3 -r 8000 -f 8192 -b 0 http://64.236.34.106:80/stream/1075/

[Dance]
mode=custom
application = /usr/bin/madplay -q -s --mono -A 3 --attenuate=-3 -r 8000 -f 8192 -b 0 http://193.138.205.194:8014/

=============================


The above are just examples, you can add more, or change the ones above. You may want to find some low bandwidth streams that are closer to your Country to eliminate any dropouts etc.

Just in case formatting is incorrect, between the start of the word "Application" and the end of the HTTP address is all on one line. The same with the WGET.

Reboot your system afterwards (I prefer it over reloads and amportal restarts)

Then go into your trunks and extensions in freepbx and choose the MOH Stream you want for on hold music.

Madplay?? Just offers a little more control, especially in volume/attenuation.

Thanks to BenS for the stream addresses. I have not tested all of them, so may be dead, but the top one is definitely tested and working.

Hope it helps someone...

Regards
Bob
http://www.Elastixconnection.com - Website back online - new fresh format
Application guides for Elastix - Fault finding Guides
News and Elastix Links - Security Guides
User avatar
Bob
Administrator
Administrator
 
Posts: 2158
Joined: Sun Nov 04, 2007 1:04 am
Location: Canberra, Australia
Karma: 269

Re:MOH - Streaming Internet Radio

Postby jjidea » Thu Mar 27, 2008 10:17 pm

hello bob,
thanks a lot for your help, i will test your solution.
jjidea
Fresh Boarder
Fresh Boarder
 
Posts: 21
Joined: Mon Jan 07, 2008 2:29 pm
Karma: 0

Re:MOH - Streaming Internet Radio

Postby ramoncio » Thu May 29, 2008 12:33 pm

This does not work at all.
The parameters are wrong, and I think madplay has to play using a pipe, can't find the files in http://

Anyone got this working??
User avatar
ramoncio
Gold Boarder
Gold Boarder
 
Posts: 1673
Joined: Wed May 12, 2010 4:28 pm
Karma: 105

Re:MOH - Streaming Internet Radio

Postby Bob » Fri May 30, 2008 11:47 pm

For the record, I did mention 0.92 was version checked against and solid records were kept at the time of implementation. Thorough testing was done at the time.

Will look at the issues with 1.0 and report any changes

Regards

Bob
http://www.Elastixconnection.com - Website back online - new fresh format
Application guides for Elastix - Fault finding Guides
News and Elastix Links - Security Guides
User avatar
Bob
Administrator
Administrator
 
Posts: 2158
Joined: Sun Nov 04, 2007 1:04 am
Location: Canberra, Australia
Karma: 269

Re:MOH - Streaming Internet Radio

Postby ramoncio » Sat May 31, 2008 1:35 am

Thank for the answer Bob,
But does this depend on Elastix version?

If I run madplay using those parameters in my console I get this error:

[root@elastix ~]# madplay -q -s --mono -A 3 --attenuate=-3 -r 8000 -f 8192 -b 0 http://128.177.3.80:4064/
madplay: invalid start time specification "--mono"


This looks more like madplay, not Elastix version...

Anyway I got it working using mpg123, adding this to my musiconhold_custom.conf:

[skyfm]
mode=custom
application=/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://scfire-dll-aa05.stream.aol.com:80/stream/1010

I have noticed though, that all the streams from scifire-dll-aa05.stream.aol.com work ok with this method, but many other streams just don't work.
User avatar
ramoncio
Gold Boarder
Gold Boarder
 
Posts: 1673
Joined: Wed May 12, 2010 4:28 pm
Karma: 105

Re:MOH - Streaming Internet Radio

Postby Bob » Sun Dec 14, 2008 4:18 pm

Ramoncio,

The Streaming On Hold Tutorial has been completely rewritten and re-released.

It covers Freepbx 2.4 and 2.5 and about 20 hours of testing, rechecking, re-testing has been done.

Any problems with it just let us know....

http://www.elastixconnection.com

Regards
Bob
http://www.Elastixconnection.com - Website back online - new fresh format
Application guides for Elastix - Fault finding Guides
News and Elastix Links - Security Guides
User avatar
Bob
Administrator
Administrator
 
Posts: 2158
Joined: Sun Nov 04, 2007 1:04 am
Location: Canberra, Australia
Karma: 269

Re:MOH - Streaming Internet Radio

Postby rafael » Mon Dec 15, 2008 10:07 am

Nice Bob, thanks a lot.

regards,

Rafael
User avatar
rafael
Gold Boarder
Gold Boarder
 
Posts: 1456
Joined: Mon May 14, 2007 12:33 pm
Location: Ecuador
Karma: 41

Re:MOH - Streaming Internet Radio

Postby DjBac » Fri Sep 03, 2010 8:11 am

I've once setup streaming MOH according to the tutorial and it worked fine, but now I cannot get it to work!!

Elastix 1.6 freepbx 2.8

Does anyone have a stream url that actual works for testing purposes?
DjBac
Senior Boarder
Senior Boarder
 
Posts: 137
Joined: Wed May 20, 2009 12:00 pm
Karma: 0

Re:MOH - Streaming Internet Radio

Postby Terry » Wed Sep 15, 2010 5:09 am

Dear Sir,
Is it working for Elastix 2.0.2 ?
with this link http://www.elastixconnection.com/index. ... &Itemid=87
thanks
Terry
Terry
Senior Boarder
Senior Boarder
 
Posts: 176
Joined: Fri May 25, 2007 5:37 pm
Karma: 0

Re:MOH - Streaming Internet Radio

Postby Terry » Wed Sep 15, 2010 10:39 pm

Dear All,
Elastix 2.0.2 version

i am delet the old link on Hold Music
and creat new add Streaming Category But it show
Cannot write to file () ,after my click Submit change

and I check musiconhold_additional.config

[default]
mode=files
directory=/var/lib/asterisk/mohmp3/acc_1/
[uptemposmoothjazz]
mode=files
directory=/uptemposmoothjazz/
[none]
mode=files
directory=/.nomusic_reserved

Nothing is update or delet ?///

How to do now ??/
Terry
Senior Boarder
Senior Boarder
 
Posts: 176
Joined: Fri May 25, 2007 5:37 pm
Karma: 0

Re:MOH - Streaming Internet Radio

Postby tataghost » Thu Mar 24, 2011 4:41 am

plz i have elastix 2.00 36 i want to use this but in my elastix version how to do it ?
tataghost
Fresh Boarder
Fresh Boarder
 
Posts: 46
Joined: Thu Apr 01, 2010 12:56 am
Karma: 0

Re:MOH - Streaming Internet Radio

Postby fmvillares » Thu Mar 24, 2011 9:34 am

reading...search in google about streaming radio +asterisk
fmvillares
Gold Boarder
Gold Boarder
 
Posts: 1785
Joined: Sat Sep 08, 2007 3:20 pm
Location: Rosario
Karma: 117

Re:MOH - Streaming Internet Radio

Postby mostafa33 » Fri Mar 25, 2011 2:13 am

i have tried the steps in:
http://www.elastixconnection.com/index. ... Itemid=109

then used the MOH on a queue but no sound i can hear in the waiting of this queue,
i tried to execute the command :

/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://188.165.12.67:8018


but i face the follwoing error:


Error: unknown mpeg MIME type audio/aacp - is it perhaps a playlist (use -@)?
Error: If you know the stream is mpeg1/2 audio, then please report this as mpg123 bug



any idea??
mostafa33
Senior Boarder
Senior Boarder
 
Posts: 110
Joined: Tue May 25, 2010 1:43 pm
Karma: 0

Re: Re:MOH - Streaming Internet Radio

Postby fmvillares » Fri Mar 25, 2011 9:19 am

do u have compiled mpg123?
fmvillares
Gold Boarder
Gold Boarder
 
Posts: 1785
Joined: Sat Sep 08, 2007 3:20 pm
Location: Rosario
Karma: 117

Re: Re:MOH - Streaming Internet Radio

Postby mostafa33 » Sat Mar 26, 2011 7:56 am

[quote="fmvillares"]do u have compiled mpg123?


the problem solved by using MP3 channel stream, but how can i use a varity of streams??
mostafa33
Senior Boarder
Senior Boarder
 
Posts: 110
Joined: Tue May 25, 2010 1:43 pm
Karma: 0

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest