[Asterisk-Users] Music On Hold pain - suggestions?

Mason Loring Bliss mason at blisses.org
Fri Jul 29 10:07:09 MST 2005


Hi, all.

I'm running the Asterisk 1.0.7 package that comes with Debian Sarge. I'm
new to Asterisk, but so far almost everything is going well. However, I'm
having a Hell of a time with Music On Hold.

I've got an extension set up to test Music On Hold, as follows:

exten => 3000,1,WaitMusicOnHold(300)


I've tried the following in musiconhold.conf:

default => quietmp3:/usr/share/asterisk/mohmp3

 and

default => custom:/var/lib/asterisk/mohmp3,/usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s


When I try that extension, the console confirms what's happening:

    -- Executing WaitMusicOnHold("SIP/telco1-0c4b", "300") in new stack
    -- Started music on hold, class 'default', on SIP/telco1-0c4b

However, what I actually get on the phone sounds like ectoplasmic
utterances from the souls of the damned. It's sort of this high-pitched
fuzzy static, with something perhaps akin to underwater collision noises
occuring sporadically.

I thought at first that whatever was playing my mp3s was just getting the
playback rate very wrong, but replacing /usr/bin/mpg123 with a shell script
that touches a file indicates that mpg123 is never being called at all. I
don't know what is generating the sound I'm hearing.

I'm digging through documentation as thoroughly as possible, but I'm not
finding anything useful. If someone here could give me pointers, I would
be grateful. My next step, lacking input from more experienced folks, will
be an attempt at a source code reading to see what's going on, but I can
envision that becoming a tricky maze in short order.

Thanks in advance for your help!

-- 
Mason Loring Bliss      mason at blisses.org        Oderint dum metuant!
http://blisses.org/     awake ? sleep : random() & 2 ? dream : sleep;



More information about the asterisk-users mailing list