<div>hi,all</div>
<div> </div>
<div>when i send a call to other server use SIP trunk,</div>
<div> </div>
<div>i got this below,</div>
<div> </div>
<div>&lt;--- SIP read from <a href="http://222.46.18.52:5060">222.46.18.52:5060</a> ---&gt;<br>SIP/2.0 403 Forbidden</div>
<div> </div>
<div>what&#39;s rong with is?</div>
<div> </div>
<div> </div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>Asterisk 1.4.21.2, Copyright (C) 1999 - 2008 Digium, Inc. and others.<br>Created by Mark Spencer &lt;<a href="mailto:markster@digium.com">markster@digium.com</a>&gt;<br>Asterisk comes with ABSOLUTELY NO WARRANTY; type &#39;core show warranty&#39; for details.<br>
This is free software, with components licensed under the GNU General Public<br>License version 2 and other licenses; you are welcome to redistribute it under<br>certain conditions. Type &#39;core show license&#39; for details.<br>
=========================================================================<br>  == Parsing &#39;/etc/asterisk/asterisk.conf&#39;: Found<br>Connected to Asterisk 1.4.21.2 currently running on gd-branch (pid = 3145)<br>Verbosity is at least 3<br>
    -- Executing [015921256331@from-internal:1] Set(&quot;SIP/75002-b7705298&quot;, &quot;MOHCLASS=none&quot;) in new stack<br>    -- Executing [015921256331@from-internal:2] Macro(&quot;SIP/75002-b7705298&quot;, &quot;user-callerid|SKIPTTL|&quot;) in new stack<br>
    -- Executing [s@macro-user-callerid:1] Set(&quot;SIP/75002-b7705298&quot;, &quot;AMPUSER=75002&quot;) in new stack<br>    -- Executing [s@macro-user-callerid:2] GotoIf(&quot;SIP/75002-b7705298&quot;, &quot;0?report&quot;) in new stack<br>
    -- Executing [s@macro-user-callerid:3] ExecIf(&quot;SIP/75002-b7705298&quot;, &quot;1|Set|REALCALLERIDNUM=75002&quot;) in new stack<br>    -- Executing [s@macro-user-callerid:4] Set(&quot;SIP/75002-b7705298&quot;, &quot;AMPUSER=75002&quot;) in new stack<br>
    -- Executing [s@macro-user-callerid:5] Set(&quot;SIP/75002-b7705298&quot;, &quot;AMPUSERCIDNAME=75002&quot;) in new stack<br>    -- Executing [s@macro-user-callerid:6] GotoIf(&quot;SIP/75002-b7705298&quot;, &quot;0?report&quot;) in new stack<br>
    -- Executing [s@macro-user-callerid:7] Set(&quot;SIP/75002-b7705298&quot;, &quot;AMPUSERCID=75002&quot;) in new stack<br>    -- Executing [s@macro-user-callerid:8] Set(&quot;SIP/75002-b7705298&quot;, &quot;CALLERID(all)=&quot;75002&quot; &lt;75002&gt;&quot;) in new stack<br>
    -- Executing [s@macro-user-callerid:9] ExecIf(&quot;SIP/75002-b7705298&quot;, &quot;0|Set|CHANNEL(language)=&quot;) in new stack<br>    -- Executing [s@macro-user-callerid:10] GotoIf(&quot;SIP/75002-b7705298&quot;, &quot;1?continue&quot;) in new stack<br>
    -- Goto (macro-user-callerid,s,19)<br>    -- Executing [s@macro-user-callerid:19] NoOp(&quot;SIP/75002-b7705298&quot;, &quot;Using CallerID &quot;75002&quot; &lt;75002&gt;&quot;) in new stack<br>    -- Executing [015921256331@from-internal:3] Set(&quot;SIP/75002-b7705298&quot;, &quot;_NODEST=&quot;) in new stack<br>
    -- Executing [015921256331@from-internal:4] Macro(&quot;SIP/75002-b7705298&quot;, &quot;record-enable|75002|OUT|&quot;) in new stack<br>    -- Executing [s@macro-record-enable:1] GotoIf(&quot;SIP/75002-b7705298&quot;, &quot;1?check&quot;) in new stack<br>
    -- Goto (macro-record-enable,s,4)<br>    -- Executing [s@macro-record-enable:4] AGI(&quot;SIP/75002-b7705298&quot;, &quot;recordingcheck|20100326-141638|1269584198.62&quot;) in new stack<br>    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck<br>
  recordingcheck|20100326-141638|1269584198.62: Outbound recording enabled.<br>  recordingcheck|20100326-141638|1269584198.62: CALLFILENAME=OUT75002-20100326-141638-1269584198.62<br>    -- AGI Script recordingcheck completed, returning 0<br>
    -- Executing [s@macro-record-enable:999] MixMonitor(&quot;SIP/75002-b7705298&quot;, &quot;/var/spool/asterisk/monitor/gd-branch/gdbranchOUT75002-20100326-141638-1269584198.62.wav||&quot;) in new stack<br>    -- Executing [s@macro-record-enable:1000] Set(&quot;SIP/75002-b7705298&quot;, &quot;RecordingFileName=/var/spool/asterisk/monitor/gd-branch/gdbranchOUT75002-20100326-141638-1269584198.62.wav&quot;) in new stack<br>
    -- Executing [s@macro-record-enable:1001] NoOp(&quot;SIP/75002-b7705298&quot;, &quot;/var/spool/asterisk/monitor/gd-branch/gdbranchOUT75002-20100326-141638-1269584198.62.wav&quot;) in new stack<br>    -- Executing [s@macro-record-enable:1002] Set(&quot;SIP/75002-b7705298&quot;, &quot;CDR(userfield)=/var/spool/asterisk/monitor/gd-branch/gdbranchOUT75002-20100326-141638-1269584198.62.wav&quot;) in new stack<br>
    -- Executing [015921256331@from-internal:5] Macro(&quot;SIP/75002-b7705298&quot;, &quot;dialout-trunk|7|015921256331||&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:1] Set(&quot;SIP/75002-b7705298&quot;, &quot;DIAL_TRUNK=7&quot;) in new stack<br>
    -- Executing [s@macro-dialout-trunk:2] GosubIf(&quot;SIP/75002-b7705298&quot;, &quot;0?sub-pincheck|s|1&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:3] GotoIf(&quot;SIP/75002-b7705298&quot;, &quot;0?disabletrunk|1&quot;) in new stack<br>
    -- Executing [s@macro-dialout-trunk:4] Set(&quot;SIP/75002-b7705298&quot;, &quot;DIAL_NUMBER=015921256331&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:5] Set(&quot;SIP/75002-b7705298&quot;, &quot;DIAL_TRUNK_OPTIONS=Ttr&quot;) in new stack<br>
    -- Executing [s@macro-dialout-trunk:6] Set(&quot;SIP/75002-b7705298&quot;, &quot;OUTBOUND_GROUP=OUT_7&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:7] GotoIf(&quot;SIP/75002-b7705298&quot;, &quot;1?nomax&quot;) in new stack<br>
    -- Goto (macro-dialout-trunk,s,9)<br>    -- Executing [s@macro-dialout-trunk:9] GotoIf(&quot;SIP/75002-b7705298&quot;, &quot;0?skipoutcid&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:10] Set(&quot;SIP/75002-b7705298&quot;, &quot;DIAL_TRUNK_OPTIONS=Tt&quot;) in new stack<br>
  == Begin MixMonitor Recording SIP/75002-b7705298<br>    -- Executing [s@macro-dialout-trunk:11] Macro(&quot;SIP/75002-b7705298&quot;, &quot;outbound-callerid|7&quot;) in new stack<br>    -- Executing [s@macro-outbound-callerid:1] ExecIf(&quot;SIP/75002-b7705298&quot;, &quot;0|SetCallerPres|&quot;) in new stack<br>
    -- Executing [s@macro-outbound-callerid:2] ExecIf(&quot;SIP/75002-b7705298&quot;, &quot;0|Set|REALCALLERIDNUM=75002&quot;) in new stack<br>    -- Executing [s@macro-outbound-callerid:3] GotoIf(&quot;SIP/75002-b7705298&quot;, &quot;1?normcid&quot;) in new stack<br>
    -- Goto (macro-outbound-callerid,s,6)<br>    -- Executing [s@macro-outbound-callerid:6] Set(&quot;SIP/75002-b7705298&quot;, &quot;USEROUTCID=&quot;) in new stack<br>    -- Executing [s@macro-outbound-callerid:7] Set(&quot;SIP/75002-b7705298&quot;, &quot;EMERGENCYCID=&quot;) in new stack<br>
    -- Executing [s@macro-outbound-callerid:8] Set(&quot;SIP/75002-b7705298&quot;, &quot;TRUNKOUTCID=s2&quot;) in new stack<br>    -- Executing [s@macro-outbound-callerid:9] GotoIf(&quot;SIP/75002-b7705298&quot;, &quot;1?trunkcid&quot;) in new stack<br>
    -- Goto (macro-outbound-callerid,s,12)<br>    -- Executing [s@macro-outbound-callerid:12] ExecIf(&quot;SIP/75002-b7705298&quot;, &quot;1|Set|CALLERID(all)=s2&quot;) in new stack<br>    -- Executing [s@macro-outbound-callerid:13] ExecIf(&quot;SIP/75002-b7705298&quot;, &quot;0|Set|CALLERID(all)=&quot;) in new stack<br>
    -- Executing [s@macro-outbound-callerid:14] ExecIf(&quot;SIP/75002-b7705298&quot;, &quot;0|SetCallerPres|prohib_passed_screen&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:12] ExecIf(&quot;SIP/75002-b7705298&quot;, &quot;0|AGI|fixlocalprefix&quot;) in new stack<br>
    -- Executing [s@macro-dialout-trunk:13] Set(&quot;SIP/75002-b7705298&quot;, &quot;OUTNUM=015921256331&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:14] Set(&quot;SIP/75002-b7705298&quot;, &quot;custom=SIP/s2&quot;) in new stack<br>
    -- Executing [s@macro-dialout-trunk:15] ExecIf(&quot;SIP/75002-b7705298&quot;, &quot;1|Set|DIAL_TRUNK_OPTIONS=M(setmusic^none)Tt&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:16] Macro(&quot;SIP/75002-b7705298&quot;, &quot;dialout-trunk-predial-hook|&quot;) in new stack<br>
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(&quot;SIP/75002-b7705298&quot;, &quot;&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:17] GotoIf(&quot;SIP/75002-b7705298&quot;, &quot;0?bypass|1&quot;) in new stack<br>
    -- Executing [s@macro-dialout-trunk:18] GotoIf(&quot;SIP/75002-b7705298&quot;, &quot;0?customtrunk&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:19] Dial(&quot;SIP/75002-b7705298&quot;, &quot;SIP/s2/015921256331|300|M(setmusic^none)Tt&quot;) in new stack<br>
Audio is at 219.235.234.238 port 17136<br>Adding codec 0x4 (ulaw) to SDP<br>Adding non-codec 0x1 (telephone-event) to SDP<br>Reliably Transmitting (NAT) to <a href="http://222.46.18.52:5060">222.46.18.52:5060</a>:<br>INVITE <a href="mailto:sip%3A015921256331@222.46.18.52">sip:015921256331@222.46.18.52</a> SIP/2.0<br>
Via: SIP/2.0/UDP 219.235.234.238:5060;branch=z9hG4bK368b5ad8;rport<br>From: &quot;s2&quot; &lt;<a href="mailto:sip%3AUnknown@222.46.18.52">sip:Unknown@222.46.18.52</a>&gt;;tag=as75543a2d<br>To: &lt;<a href="mailto:sip%3A015921256331@222.46.18.52">sip:015921256331@222.46.18.52</a>&gt;<br>
Contact: &lt;<a href="mailto:sip%3AUnknown@219.235.234.238">sip:Unknown@219.235.234.238</a>&gt;<br>Call-ID: <a href="mailto:5cf71e106209cf65344e24031354fbda@222.46.18.52">5cf71e106209cf65344e24031354fbda@222.46.18.52</a><br>
CSeq: 102 INVITE<br>User-Agent: Asterisk PBX<br>Max-Forwards: 70<br>Date: Fri, 26 Mar 2010 06:16:38 GMT<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<br>Supported: replaces<br>Content-Type: application/sdp<br>
Content-Length: 244</div>
<p>v=0<br>o=root 3145 3145 IN IP4 219.235.234.238<br>s=session<br>c=IN IP4 219.235.234.238<br>t=0 0<br>m=audio 17136 RTP/AVP 0 101<br>a=rtpmap:0 PCMU/8000<br>a=rtpmap:101 telephone-event/8000<br>a=fmtp:101 0-16<br>a=silenceSupp:off - - - -<br>
a=ptime:20<br>a=sendrecv</p>
<p>---<br>    -- Called s2/015921256331<br>gd-branch*CLI&gt; <br>&lt;--- SIP read from <a href="http://222.46.18.52:5060">222.46.18.52:5060</a> ---&gt;<br>SIP/2.0 403 Forbidden<br>Via: SIP/2.0/UDP 219.235.234.238:5060;branch=z9hG4bK368b5ad8;received=58.247.12.18;rport=11028<br>
From: &quot;s2&quot; &lt;<a href="mailto:sip%3AUnknown@222.46.18.52">sip:Unknown@222.46.18.52</a>&gt;;tag=as75543a2d<br>To: &lt;<a href="mailto:sip%3A015921256331@222.46.18.52">sip:015921256331@222.46.18.52</a>&gt;<br>Contact: &lt;<a href="http://sip:015921256331@222.46.18.52:5060">sip:015921256331@222.46.18.52:5060</a>&gt;<br>
Call-ID: <a href="mailto:5cf71e106209cf65344e24031354fbda@222.46.18.52">5cf71e106209cf65344e24031354fbda@222.46.18.52</a><br>CSeq: 102 INVITE<br>Max-Forwards: 70<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<br>
Supported: timer<br>Server: VOS2009 V2.1.1.8</p>
<p><br>&lt;-------------&gt;<br>--- (11 headers 0 lines) ---<br>Transmitting (NAT) to <a href="http://222.46.18.52:5060">222.46.18.52:5060</a>:<br>ACK <a href="mailto:sip%3A015921256331@222.46.18.52">sip:015921256331@222.46.18.52</a> SIP/2.0<br>
Via: SIP/2.0/UDP 219.235.234.238:5060;branch=z9hG4bK368b5ad8;rport<br>From: &quot;s2&quot; &lt;<a href="mailto:sip%3AUnknown@222.46.18.52">sip:Unknown@222.46.18.52</a>&gt;;tag=as75543a2d<br>To: &lt;<a href="mailto:sip%3A015921256331@222.46.18.52">sip:015921256331@222.46.18.52</a>&gt;<br>
Contact: &lt;<a href="mailto:sip%3AUnknown@219.235.234.238">sip:Unknown@219.235.234.238</a>&gt;<br>Call-ID: <a href="mailto:5cf71e106209cf65344e24031354fbda@222.46.18.52">5cf71e106209cf65344e24031354fbda@222.46.18.52</a><br>
CSeq: 102 ACK<br>User-Agent: Asterisk PBX<br>Max-Forwards: 70<br>Content-Length: 0</p>
<p><br>---<br>    -- SIP/s2-088f72e8 is circuit-busy<br>  == Everyone is busy/congested at this time (1:0/1/0)<br>    -- Executing [s@macro-dialout-trunk:20] Goto(&quot;SIP/75002-b7705298&quot;, &quot;s-CONGESTION|1&quot;) in new stack<br>
    -- Goto (macro-dialout-trunk,s-CONGESTION,1)<br>    -- Executing [s-CONGESTION@macro-dialout-trunk:1] GotoIf(&quot;SIP/75002-b7705298&quot;, &quot;1?noreport&quot;) in new stack<br>    -- Goto (macro-dialout-trunk,s-CONGESTION,3)<br>
    -- Executing [s-CONGESTION@macro-dialout-trunk:3] NoOp(&quot;SIP/75002-b7705298&quot;, &quot;TRUNK Dial failed due to CONGESTION - failing through to other trunks&quot;) in new stack<br>    -- Executing [015921256331@from-internal:6] Macro(&quot;SIP/75002-b7705298&quot;, &quot;outisbusy|&quot;) in new stack<br>
    -- Executing [s@macro-outisbusy:1] Playback(&quot;SIP/75002-b7705298&quot;, &quot;all-circuits-busy-now|noanswer&quot;) in new stack<br>    -- &lt;SIP/75002-b7705298&gt; Playing &#39;all-circuits-busy-now&#39; (language &#39;en&#39;)<br>
Really destroying SIP dialog <a href="mailto:&#39;5cf71e106209cf65344e24031354fbda@222.46.18.52&#39;">&#39;5cf71e106209cf65344e24031354fbda@222.46.18.52&#39;</a> Method: INVITE<br>    -- Executing [s@macro-outisbusy:2] Playback(&quot;SIP/75002-b7705298&quot;, &quot;pls-try-call-later|noanswer&quot;) in new stack<br>
    -- &lt;SIP/75002-b7705298&gt; Playing &#39;pls-try-call-later&#39; (language &#39;en&#39;)<br>    -- Executing [s@macro-outisbusy:3] Macro(&quot;SIP/75002-b7705298&quot;, &quot;hangupcall&quot;) in new stack<br>    -- Executing [s@macro-hangupcall:1] GotoIf(&quot;SIP/75002-b7705298&quot;, &quot;1?skiprg&quot;) in new stack<br>
    -- Goto (macro-hangupcall,s,4)<br>    -- Executing [s@macro-hangupcall:4] GotoIf(&quot;SIP/75002-b7705298&quot;, &quot;1?skipblkvm&quot;) in new stack<br>    -- Goto (macro-hangupcall,s,7)<br>    -- Executing [s@macro-hangupcall:7] GotoIf(&quot;SIP/75002-b7705298&quot;, &quot;1?theend&quot;) in new stack<br>
    -- Goto (macro-hangupcall,s,9)<br>    -- Executing [s@macro-hangupcall:9] Hangup(&quot;SIP/75002-b7705298&quot;, &quot;&quot;) in new stack<br>  == Spawn extension (macro-hangupcall, s, 9) exited non-zero on &#39;SIP/75002-b7705298&#39; in macro &#39;hangupcall&#39;<br>
  == Spawn extension (macro-hangupcall, s, 9) exited non-zero on &#39;SIP/75002-b7705298&#39; in macro &#39;outisbusy&#39;<br>  == Spawn extension (macro-hangupcall, s, 9) exited non-zero on &#39;SIP/75002-b7705298&#39;<br>
  == End MixMonitor Recording SIP/75002-b7705298</p></blockquote>
<div><br clear="all"><br>-- <br>Best Regards!</div>
<div><br>Aaron Chen <br></div>