[asterisk-users] mgcp codec problem about ulaw

tm徐 xutom2006 at gmail.com
Tue Feb 27 03:16:14 MST 2007


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/6000 at 6000|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/6000 at 6000,45)
exten => 6000,3,Hangup
exten => 6000,hint,MGCP/6000

Thanks in advance.............
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070227/998bb871/attachment.htm


More information about the asterisk-users mailing list