Updated on August 5 2010 for new version of MPG123 and tested on PBXIAF 1775x)
I only recently got to start playing with PBXIAF 1.3 (getting ready to upgrade a few 1.0-1.2 versions), and found that most everything just sorta works the way its supposed to.
Tom, Ward, Joe - what can we all say but WOW.
There were just a couple things that seemed a little odd "out of the box" about music on hold, and streaming music on hold.
A. When we tried uploading our mp3 formatted audio files for MOH, we got the dreaded sh:mpg123 error, and no WAV versions were produced. The MP3 version were listed, and music on hold DID still work. But we prefer the old functionality of having the WAV versions on the list in FreePBX. (This step is STILL desireable on PBXIAF v 1775x - its not there by default.)
B. The new extra cool streaming music on hold category would not work - period.
It turns out the solution for both was to install mpg123. After searching around the forums, most of the instructions didn't work, or referenced really old versions of mpg123.
This procedure gets version 1.8.1-1 of mpg123 which is much newer than other version Ive seen referenced - but I decided to try it anyway.
Here is what we did to install it:
Step 1: First install a dependent file:
Step 2: Second, install mpg123
That fixed the MP3 to WAV MOH issue, as well as the streaming MOH. To test that, (using FreePBX 2.5.1) goto MOH, add streaming category. Use a line like this in the APPLICATION field:
We program a speed dial key on the telephones and label it 'RADIO', which dials ext 69 (change as you see fit), and plays the Streaming MOH - which we so creatively named stream.
I have been trying to get streaming to work for a long time. I hope that this may help someone in the same situation.
There is a good reason I didn't talk about using live streams for an actual "Music On Hold" purpose. These techniques should only be used for your personal listening enjoyment in a household setting. Any other use probably breaks laws. Expensive ones.
Note: I have updated these instructions to reference an even newer mpg123 - that for me suffers way fewer `stream stalls`. If you're doing this for the first time, just follow the directions above. If you are UPDATING from a previous version of mpg123, in step 2 above, instead of doing rpm -ivh mpg*.rpm- use:
(Thanks edisoninfo for posting that!)
The steps outlined in this article produce a very simple ability to listen to streaming music through your phones. See this article for a version that adds user Marv's menu ideas and add the ability to interrupt the menus, and better use of FreePBX extension registrations.
Good luck!
Tony
I only recently got to start playing with PBXIAF 1.3 (getting ready to upgrade a few 1.0-1.2 versions), and found that most everything just sorta works the way its supposed to.
Tom, Ward, Joe - what can we all say but WOW.
There were just a couple things that seemed a little odd "out of the box" about music on hold, and streaming music on hold.
A. When we tried uploading our mp3 formatted audio files for MOH, we got the dreaded sh:mpg123 error, and no WAV versions were produced. The MP3 version were listed, and music on hold DID still work. But we prefer the old functionality of having the WAV versions on the list in FreePBX. (This step is STILL desireable on PBXIAF v 1775x - its not there by default.)
B. The new extra cool streaming music on hold category would not work - period.
It turns out the solution for both was to install mpg123. After searching around the forums, most of the instructions didn't work, or referenced really old versions of mpg123.
This procedure gets version 1.8.1-1 of mpg123 which is much newer than other version Ive seen referenced - but I decided to try it anyway.
Here is what we did to install it:
Step 1: First install a dependent file:
Code:
yum install libesd.so.0 (This step isn't needed on PBXIAF v 1775x)
Code:
wget http://apt.sw.be/redhat/9/en/i386/RPMS.dag/mpg123-1.8.1-1.rh9.rf.i386.rpm
rpm -ivh mpg*.rpm
rm mpg123-1.8.1-1.rh9.rf.i386.rpm
amportal restart
Many users have asked for the ability to listen to streaming internet music on their telephone. To do that - we make the following additional dial plan to [from-internal-custom]:/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://160.79.128.61:7826
Code:
exten => 69,1,Answer
exten => 69,2,MusicOnHold(stream)
exten => 69,3,Hangup
I have been trying to get streaming to work for a long time. I hope that this may help someone in the same situation.
There is a good reason I didn't talk about using live streams for an actual "Music On Hold" purpose. These techniques should only be used for your personal listening enjoyment in a household setting. Any other use probably breaks laws. Expensive ones.
Note: I have updated these instructions to reference an even newer mpg123 - that for me suffers way fewer `stream stalls`. If you're doing this for the first time, just follow the directions above. If you are UPDATING from a previous version of mpg123, in step 2 above, instead of doing rpm -ivh mpg*.rpm- use:
Code:
rpm -Uvh mpg*.rpm
The steps outlined in this article produce a very simple ability to listen to streaming music through your phones. See this article for a version that adds user Marv's menu ideas and add the ability to interrupt the menus, and better use of FreePBX extension registrations.
Good luck!
Tony