<div><font size="2">Hi:</font></div>
<div><font size="2">    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:</font></div>
<div><font size="2"></font> </div>
<div><font size="2">[general]<br>port = 2727<br>bindaddr = <a href="http://0.0.0.0">0.0.0.0</a><br>disallow=all<br>allow=ulaw<br>allow=alaw    ; can be disable and do no effect<br>#include mgcp_additional.conf</font></div>
<div><font size="2"></font> </div>
<div><font size="2">But if i disable ulaw and the mgcp.conf is following:</font></div>
<div><font size="2">[general]<br>port = 2727<br>bindaddr = <a href="http://0.0.0.0">0.0.0.0</a><br>disallow=all<br>;allow=ulaw   ; be disable and all the extensions can not be called<br>allow=alaw    ; can be disable and do no effect
<br>#include mgcp_additional.conf</font></div>
<div><font size="2"></font> </div>
<div><font size="2">then all the registered extensions can make outbound calls but can not be called by sip phone.The output of asterisk is following:</font></div><font size="2">
<div><br>asterisk1*CLI> <br>    -- Executing NoOp("SIP/1000-084d94b8", "here") in new stack<br>    -- Executing Dial("SIP/1000-084d94b8", "<a href="mailto:MGCP/6000@6000|45">MGCP/6000@6000|45
</a>") in new stack<br>  == Everyone is busy/congested at this time (1:0/0/1)<br>    -- Executing Hangup("SIP/1000-084d94b8", "") in new stack<br>  == Spawn extension (from-internal, 6000, 3) exited non-zero on 'SIP/1000-084d94b8'
<br>    -- Executing Macro("SIP/1000-084d94b8", "hangupcall") in new stack<br>    -- Executing ResetCDR("SIP/1000-084d94b8", "w") in new stack<br>    -- Executing NoCDR("SIP/1000-084d94b8", "") in new stack
<br>    -- Executing GotoIf("SIP/1000-084d94b8", "1?skiprg") in new stack<br>    -- Goto (macro-hangupcall,s,6)<br>    -- Executing GotoIf("SIP/1000-084d94b8", "1?theend") in new stack
<br>    -- Goto (macro-hangupcall,s,9)<br>    -- Executing Wait("SIP/1000-084d94b8", "5") in new stack<br>    -- Executing Hangup("SIP/1000-084d94b8", "") in new stack<br>  == Spawn extension (macro-hangupcall, s, 10) exited non-zero on 'SIP/1000-084d94b8' in macro 'hangupcall'
<br>  == Spawn extension (macro-hangupcall, s, 10) exited non-zero on 'SIP/1000-084d94b8'</div>
<div> </div>
<div>the file mgcp_additional.conf is following:</div>
<div>[6000]<br>accountcode = 6000<br>context = [ext-local]<br>callerid = 6000 <6000><br>host = dynamic<br>disallow = all<br>allow = g723.1<br>allow = alaw<br>allow = g729<br>allow = ulaw<br>dtmfmode = rfc2833<br>nat = no
<br>line = 6000</div>
<div> </div>
<div>the file extensions_additional.conf is following:</div>
<div>[ext-local]</div>
<div>exten => 6000,1,NoOp(here)<br>exten => 6000,2,Dial(<a href="mailto:MGCP/6000@6000,45">MGCP/6000@6000,45</a>)<br>exten => 6000,3,Hangup<br>exten => 6000,hint,MGCP/6000</div>
<div> </div>
<div>Thanks in advance.............</div>
<div></div></font>