Trixbox v2.4 MP3 Support
From The Trixbox.org Forums
for any one like to stream a radio station on MOH, just this, it's work:
at your trixbox command line type:
[trixbox1.localdomain ~]# wget ftp://rpmfind.net/linux/dag/fedora/2/en/i386/dag/RPMS/mpg123-0.61-1.fc2.rf.i386.rpm
[trixbox1.localdomain ~]# rpm -ivh mpg*.rpm
[trixbox1.localdomain ~]# mpg123 -v ;(if you see some help imformaiton, it mean mpg123 installed)
[trixbox1.localdomain ~]# cd /var/lib/asterisk/mohmp3
[trixbox1.localdomain ~]# mkdir stream
[trixbox1.localdomain ~]# cd stream
[trixbox1.localdomain ~]# touch stream.mp3
* edit musiconhold_additional.conf and musiconhold_custom.conf :
[trixbox1.localdomain ~]# nano /etc/asterisk/musiconhold_additional.conf
[default]
;mode=files ;ram this line
;directory=/var/lib/asterisk/mohmp3/ ; ram this line
;random=yes ; ram this line
[none]
mode=files
directory=/dev/null
*save it.
[trixbox1.localdomain ~]# nano /etc/asterisk/musiconhold_custom.conf
add those line:
[classes]
default =>quietmp3:/var/lib/asterisk/mohmp3/stream,http://205.188.215.227:8004
*save it and reboot your trixbox.
you can change radio station you want at http://www.shoutcast.com/directory/index.phtml
found the http://xxx.xxx.xxx.xxx:xxxx link on property of your mp3 GUI player and replace the http://205.188.215.227:8004.
remeber: each time change the link, you need to restart your asterisk.
-------------------------------------------------------------------
Next to get "sox" to convert MP3's.
I read that you need to install "libmad". I tried to install it from sources (SRPM) and it said that I do not have a C compiler, so I tried the regular RPM. Still not working.
RonaldGibson@Gmail.com
©1997 - 2009 Ronald Gibson & Batteryman's Bookmarks.
This site is protected by copyright and trademark laws
under U.S. and international law.
All rights reserved