bar top left
bar top right
left curve
right curve
Welcome, Guest

MOH - Streaming Internet Radio
(1 viewing) (1) Guest
Go to bottom
Post Reply
Post New Topic
Page: 12345
TOPIC: MOH - Streaming Internet Radio
*
#5670
MOH - Streaming Internet Radio 5 Years, 1 Month ago Karma: 246
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 dag.wieers.com/rpm/packages/libmad/libma...1b-4.el5.rf.i386.rpm
wget dag.wieers.com/rpm/packages/libid3tag/li...1b-3.el5.rf.i386.rpm
wget zak.googlecode.com/files/madplay-0.15.2b-1.el5.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 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 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 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 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
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Bob
http://twitter.com/elastixbob
Moderator
Posts: 1940
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Elastix Application Notes bobfryer@gmail.com Location: Canberra, Australia Birthday: 05/03
Good Etiquette : if someones helps with a solution - update their Karma - its only a simple click.

Upgrading Elastix? Read this FAQ Now!!
elx.ec/upgfaq

Elastix Docs :
elx.ec/elastixtutorials
www.elastixconnection.com

Elastix Fault Finding Guide
elx.ec/faultfind
Reply Quote
 
#5683
Re:MOH - Streaming Internet Radio 5 Years, 1 Month ago Karma: 0
hello bob,
thanks a lot for your help, i will test your solution.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
jjidea
Fresh Boarder
Posts: 21
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#7204
Re:MOH - Streaming Internet Radio 4 Years, 11 Months ago Karma: 105
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??
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
ramoncio
Gold Boarder
Posts: 1674
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#7222
Re:MOH - Streaming Internet Radio 4 Years, 11 Months ago Karma: 246
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
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Bob
http://twitter.com/elastixbob
Moderator
Posts: 1940
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Elastix Application Notes bobfryer@gmail.com Location: Canberra, Australia Birthday: 05/03
Good Etiquette : if someones helps with a solution - update their Karma - its only a simple click.

Upgrading Elastix? Read this FAQ Now!!
elx.ec/upgfaq

Elastix Docs :
elx.ec/elastixtutorials
www.elastixconnection.com

Elastix Fault Finding Guide
elx.ec/faultfind
Reply Quote
 
#7224
Re:MOH - Streaming Internet Radio 4 Years, 11 Months ago Karma: 105
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 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 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.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
ramoncio
Gold Boarder
Posts: 1674
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#14097
Re:MOH - Streaming Internet Radio 4 Years, 5 Months ago Karma: 246
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....

www.elastixconnection.com

Regards
Bob
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Bob
http://twitter.com/elastixbob
Moderator
Posts: 1940
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Elastix Application Notes bobfryer@gmail.com Location: Canberra, Australia Birthday: 05/03
Good Etiquette : if someones helps with a solution - update their Karma - its only a simple click.

Upgrading Elastix? Read this FAQ Now!!
elx.ec/upgfaq

Elastix Docs :
elx.ec/elastixtutorials
www.elastixconnection.com

Elastix Fault Finding Guide
elx.ec/faultfind
Reply Quote
 
#14105
Re:MOH - Streaming Internet Radio 4 Years, 5 Months ago Karma: 41
Nice Bob, thanks a lot.

regards,

Rafael
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
rafael
Free Software is all about freedom
Developer
Posts: 1458
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Elastix Location: Ecuador Birthday: 10/11
Reply Quote
 
#59206
Re:MOH - Streaming Internet Radio 2 Years, 8 Months ago Karma: 0
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?
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
DjBac
Senior Boarder
Posts: 137
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#60091
Re:MOH - Streaming Internet Radio 2 Years, 8 Months ago Karma: 0
Dear Sir,
Is it working for Elastix 2.0.2 ?
with this link www.elastixconnection.com/index.php?opti...;id=19&Itemid=87
thanks
Terry
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Terry
Senior Boarder
Posts: 176
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#60160
Re:MOH - Streaming Internet Radio 2 Years, 8 Months ago Karma: 0
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 ??/
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Terry
Senior Boarder
Posts: 176
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
Go to top
Post Reply
Post New Topic
Page: 12345
Moderators: Bob, jgutierrez

elastix

Protected by Spam Fighter