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
<[EMAIL PROTECTED]>
=========================================================================
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