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