Hi:
   I have a mgcp.conf and a mgcp_additional.conf which records the special
information about the extensions. And i found if i use ulaw in the general
context in mgcp.conf,then all the registered extensions can make both
outbound and inbound calls,the mgcp.conf is following:

[general]
port = 2727
bindaddr = 0.0.0.0
disallow=all
allow=ulaw
allow=alaw    ; can be disable and do no effect
#include mgcp_additional.conf

But if i disable ulaw and the mgcp.conf is following:
[general]
port = 2727
bindaddr = 0.0.0.0
disallow=all
;allow=ulaw   ; be disable and all the extensions can not be called
allow=alaw    ; can be disable and do no effect
#include mgcp_additional.conf

then all the registered extensions can make outbound calls but can not be
called by sip phone.The output of asterisk is following:

asterisk1*CLI>
   -- Executing NoOp("SIP/1000-084d94b8", "here") in new stack
   -- Executing Dial("SIP/1000-084d94b8", "MGCP/[EMAIL PROTECTED]|45") in new 
stack
 == Everyone is busy/congested at this time (1:0/0/1)
   -- Executing Hangup("SIP/1000-084d94b8", "") in new stack
 == Spawn extension (from-internal, 6000, 3) exited non-zero on
'SIP/1000-084d94b8'
   -- Executing Macro("SIP/1000-084d94b8", "hangupcall") in new stack
   -- Executing ResetCDR("SIP/1000-084d94b8", "w") in new stack
   -- Executing NoCDR("SIP/1000-084d94b8", "") in new stack
   -- Executing GotoIf("SIP/1000-084d94b8", "1?skiprg") in new stack
   -- Goto (macro-hangupcall,s,6)
   -- Executing GotoIf("SIP/1000-084d94b8", "1?theend") in new stack
   -- Goto (macro-hangupcall,s,9)
   -- Executing Wait("SIP/1000-084d94b8", "5") in new stack
   -- Executing Hangup("SIP/1000-084d94b8", "") in new stack
 == Spawn extension (macro-hangupcall, s, 10) exited non-zero on
'SIP/1000-084d94b8' in macro 'hangupcall'
 == Spawn extension (macro-hangupcall, s, 10) exited non-zero on
'SIP/1000-084d94b8'

the file mgcp_additional.conf is following:
[6000]
accountcode = 6000
context = [ext-local]
callerid = 6000 <6000>
host = dynamic
disallow = all
allow = g723.1
allow = alaw
allow = g729
allow = ulaw
dtmfmode = rfc2833
nat = no
line = 6000

the file extensions_additional.conf is following:
[ext-local]
exten => 6000,1,NoOp(here)
exten => 6000,2,Dial(MGCP/[EMAIL PROTECTED],45)
exten => 6000,3,Hangup
exten => 6000,hint,MGCP/6000

Thanks in advance.............
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to