Streaming MOH: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
New page: = What is MOH = Music on hold (MOH) refers to the business practice of playing pre-recorded music to fill the silence that would be heard by telephone callers that have been placed on hold...
 
No edit summary
Line 3: Line 3:


= Streaming MOH with Asterisk =
= Streaming MOH with Asterisk =
[http://sourceforge.net/project/showfiles.php?group_id=135704 mpg123] is the appliction to be used to stream internet radio into Asterisk.
[http://sourceforge.net/project/showfiles.php?group_id=135704 mpg123] is the application to be used to stream internet radio into Asterisk.


== Installing mpg123 ==
== Installing mpg123 ==
The first thing we need to do is to download the application mpg123.  Go to the sourceforge site for the latest version.
The first thing we need to do is to download the application mpg123.  Go to the source forge site for the latest version.
<pre>
<pre>
http://sourceforge.net/project/showfiles.php?group_id=135704
http://sourceforge.net/project/showfiles.php?group_id=135704
Line 33: Line 33:


== Restart Asterisk ==
== Restart Asterisk ==
From the cli resatrt Asterisk
From the cli restart Asterisk
<pre>
<pre>
restart when convenient
restart when convenient
</pre>
</pre>
[[Category : Asterisk]]
[[Category : Asterisk]]

Revision as of 06:11, 3 May 2008

What is MOH

Music on hold (MOH) refers to the business practice of playing pre-recorded music to fill the silence that would be heard by telephone callers that have been placed on hold. It is especially common in situations involving customer service.

Streaming MOH with Asterisk

mpg123 is the application to be used to stream internet radio into Asterisk.

Installing mpg123

The first thing we need to do is to download the application mpg123. Go to the source forge site for the latest version.

http://sourceforge.net/project/showfiles.php?group_id=135704

I'll use mpg123 Version 1.4.2 as an example.

cd /tmp
wget http://optusnet.dl.sourceforge.net/sourceforge/mpg123/mpg123-1.4.2.tar.gz
tar xvzf mpg123-1.4.2.tar.gz
cd mpg123-1.4.2
./configure
make
make install

Configuring Asterisk

Edit the file musiconhold.conf and use the following as an example.
/etc/asterisk/musiconhold.conf

[SkyFM-80s]
mode=custom
application=/usr/local/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s http://shoutcast01.edpnet.net:8766/

Restart Asterisk

From the cli restart Asterisk

restart when convenient