[asterisk-users] Problem w/ MoH

Mike Diehl mdiehl at diehlnet.com
Mon Feb 22 13:20:23 CST 2010


Hi all,

I'm trying to get moh working on * version 1.4.4.  I've setup a test 
extension that answers the call and runs the musiconhold command with 
the appropriate class name.

All I get on the phone is silence.  The console tells me that moh 
started and immediately stopped, but it complains that there is "No 
class: moh0"

*CLI> [Feb 22 12:17:36] WARNING[31142]: res_musiconhold.c:947 
local_ast_moh_start: No class: (moh0)

Here is the appropriate output of  moh show classes

Class: moh0
        Mode: custom
        Directory: /etc/asterisk/diehl/music/moh0/
        Application: /usr/bin/madplay -Q -z ---mono -R 8000 -o raw:- -r 
-a -12
        Format: slin

I have confirmed that madplay is in /usr/bin/.  I've also used the 
playback command to ensure that the .wav files in the moh0 directory can 
be played by Asterisk.

What am I missing?

TIA,
Mike.



More information about the asterisk-users mailing list