[Asterisk-Users] Music On Hold

Bud Bach bud at bachcg.com
Fri Dec 16 09:58:18 MST 2005


Help!  No Music on Hold.  Probably a novice mistake but I can't figure it
out.  Here are the details:

 

CentOS 4.2

Asterisk 1.2.1 (Do I need to do something to get MOH to build?)

Ztdummy loaded (conference works fine)

 

musiconhold.conf:

 

[default]

mode=quietmp3

directory=/var/lib/asterisk/mohmp3

 

Sip device (x-lite - also tried with an ATA) with canreinvite=no:

 

sip.conf:

 

[7211]

username=7211

secret=****

host=dynamic

type=friend

context=standardphone

disallow=all

allow=gsm

allow=ulaw

allow=alaw

allow=g723.1

allow=g729

canreinvite=no

 

Extensions.conf:

 

exten => 8702,1,Answer()

exten => 8702,n,MusicOnHold(default)

exten => 8702,n,Hangup()

 

 

# asterisk -r

Asterisk 1.2.1, Copyright (C) 1999 - 2005 Digium.

Written by Mark Spencer <markster at digium.com>

=========================================================================

Connected to Asterisk 1.2.1 currently running on ccsip (pid = 4782)

Verbosity is at least 3

  == Spawn extension (standardphone, 8702, 2) exited non-zero on
'SIP/7211-be01'

    -- Executing Answer("SIP/7211-cedb", "") in new stack

    -- Executing MusicOnHold("SIP/7211-cedb", "default") in new stack

    -- Started music on hold, class 'default', on channel 'SIP/7211-cedb'

    -- Stopped music on hold on SIP/7211-cedb

  == Spawn extension (standardphone, 8702, 2) exited non-zero on
'SIP/7211-cedb'

 

The "Stopped music on hold" happens immediately like it can't find
something.  Should I give up and use madplay?

 

-- Bud

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051216/967722dd/attachment.htm


More information about the asterisk-users mailing list