[Asterisk-Users] music on hold problem

ml_asterisk-users at rajnoch.sk ml_asterisk-users at rajnoch.sk
Fri Sep 24 08:12:15 MST 2004


Hi everybody again,

I try to use music on hold.
I have no idea how to put current call on hold, so I try
to use musiconhold by force.

I define these:

======== extensions.conf =========
exten => ${KLP_TEST2},1,Answer
exten => ${KLP_TEST2},2,SetMusicOnHold(default)
exten => ${KLP_TEST2},3,MusicOnHold

======== musiconhold.conf =========
[classes]
default => quietmp3:/var/lib/asterisk/mohmp3

I installed mpg123-0.59r.tar.gz as specified in www.voip-info.org
of cource the binary is in /usr/bin path.

I have some mp3s in /var/lib/asterisk/mohmp3/ path
mp3s are without any id3tag

I found all these conditions in this mailing list.

so

if I call extension ${KLP_TEST2} I see this:

Executing Answer("Zap/1-1", "") in new stack
    -- Accepting call from '0212345678' to '${KLP_TEST2}' on channel 0/1, span 1
    -- Executing SetMusicOnHold("Zap/1-1", "default") in new stack
    -- Executing MusicOnHold("Zap/1-1", "") in new stack
Sep 24 17:09:37 WARNING[1519766448]: res_musiconhold.c:334 moh0_exec: Unable to start music on hold (class '') on channel Zap/1-1
  == Spawn extension (isdnline, ${KLP_TEST2}, 3) exited non-zero on 'Zap/1-1'
    -- Hungup 'Zap/1-1'

ANY IDEA what may be wrong?
?


thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20040924/d301601f/attachment.pgp


More information about the asterisk-users mailing list