With the release of FreePBX 2.5, Music On Hold comes with the new feature "Add Streaming Catagory." This addition to the Music On Hold module allows the Integrator to offer MOH streamed from the Internet or via the Line IN port on a sound card as a catagory.
In this example a Police Scanner is connected to a Line In port on a FreePBX 2.5.0 / Asterisk 1.4.21.2 system. The directions used to get Audio in and available are located here - http://www.sthomas.net/go/blog/view/38 NOTE: Skip editing musiconhold_X.conf. Use the GUI.
This example uses a scirpt created in /usr/sbin/ called "ast-playlinein" and it is used to control the parameters of "arecord" which is the program doing the heavy lifting here. Pointing at the script was all that was needed.
Streaming from the Internet is not that different. A good link to get started is http://www.voip-info.org/wiki-Asterisk+config+musiconhold.conf
Related Content
- Printer-friendly version
- Login or register to post comments



kinda blows that the
kinda blows that the screenshots are broken.
How can we use the GUI to
How can we use the GUI to stream internet music to our MOH?
Working in FreePBX 2.5
I've used
/usr/bin/mpg123 -q -s --mono -r 8000 -f 800 -b 0 http://voxsc1.somafm.com:8502
successfully for streaming music on hold. Note: Notice that it's -f 800 and not -f 8192, this will lower the volume that you hear for the streaming music.
The problem is that it immediately starts streaming the music for every trunk as soon as you implement it. If I've got MOH on 6 trunks, it immediately starts 6 streams.
Ideally it should:
a) only start when a call is in progress, ready and waiting if needed
b) stop when the call is over
c) only use one stream per MOH. So if 3 trunks are using the same MOH source there should only be 1 stream servicing all three trunks.
open port for Streaming MOH
putting /usr/bin/mpg123 -q -s --mono -r 8000 -f 800 -b 0 http://voxsc1.somafm.com:8502
in the Application field for Streaming Category on MOH and opening up TCP 8502 outbound on my CSF works great. Now I just have to find some better stations. THis is like I Dream of Genie music. Thanks for all your help.