<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><--- SIP read from <a href="http://222.46.18.52:5060">222.46.18.52:5060</a> ---><br>SIP/2.0 403 Forbidden</div>
<div> </div>
<div>what'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 <<a href="mailto:markster@digium.com">markster@digium.com</a>><br>Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' 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 'core show license' for details.<br>
=========================================================================<br> == Parsing '/etc/asterisk/asterisk.conf': 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("SIP/75002-b7705298", "MOHCLASS=none") in new stack<br> -- Executing [015921256331@from-internal:2] Macro("SIP/75002-b7705298", "user-callerid|SKIPTTL|") in new stack<br>
-- Executing [s@macro-user-callerid:1] Set("SIP/75002-b7705298", "AMPUSER=75002") in new stack<br> -- Executing [s@macro-user-callerid:2] GotoIf("SIP/75002-b7705298", "0?report") in new stack<br>
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/75002-b7705298", "1|Set|REALCALLERIDNUM=75002") in new stack<br> -- Executing [s@macro-user-callerid:4] Set("SIP/75002-b7705298", "AMPUSER=75002") in new stack<br>
-- Executing [s@macro-user-callerid:5] Set("SIP/75002-b7705298", "AMPUSERCIDNAME=75002") in new stack<br> -- Executing [s@macro-user-callerid:6] GotoIf("SIP/75002-b7705298", "0?report") in new stack<br>
-- Executing [s@macro-user-callerid:7] Set("SIP/75002-b7705298", "AMPUSERCID=75002") in new stack<br> -- Executing [s@macro-user-callerid:8] Set("SIP/75002-b7705298", "CALLERID(all)="75002" <75002>") in new stack<br>
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/75002-b7705298", "0|Set|CHANNEL(language)=") in new stack<br> -- Executing [s@macro-user-callerid:10] GotoIf("SIP/75002-b7705298", "1?continue") in new stack<br>
-- Goto (macro-user-callerid,s,19)<br> -- Executing [s@macro-user-callerid:19] NoOp("SIP/75002-b7705298", "Using CallerID "75002" <75002>") in new stack<br> -- Executing [015921256331@from-internal:3] Set("SIP/75002-b7705298", "_NODEST=") in new stack<br>
-- Executing [015921256331@from-internal:4] Macro("SIP/75002-b7705298", "record-enable|75002|OUT|") in new stack<br> -- Executing [s@macro-record-enable:1] GotoIf("SIP/75002-b7705298", "1?check") in new stack<br>
-- Goto (macro-record-enable,s,4)<br> -- Executing [s@macro-record-enable:4] AGI("SIP/75002-b7705298", "recordingcheck|20100326-141638|1269584198.62") 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("SIP/75002-b7705298", "/var/spool/asterisk/monitor/gd-branch/gdbranchOUT75002-20100326-141638-1269584198.62.wav||") in new stack<br> -- Executing [s@macro-record-enable:1000] Set("SIP/75002-b7705298", "RecordingFileName=/var/spool/asterisk/monitor/gd-branch/gdbranchOUT75002-20100326-141638-1269584198.62.wav") in new stack<br>
-- Executing [s@macro-record-enable:1001] NoOp("SIP/75002-b7705298", "/var/spool/asterisk/monitor/gd-branch/gdbranchOUT75002-20100326-141638-1269584198.62.wav") in new stack<br> -- Executing [s@macro-record-enable:1002] Set("SIP/75002-b7705298", "CDR(userfield)=/var/spool/asterisk/monitor/gd-branch/gdbranchOUT75002-20100326-141638-1269584198.62.wav") in new stack<br>
-- Executing [015921256331@from-internal:5] Macro("SIP/75002-b7705298", "dialout-trunk|7|015921256331||") in new stack<br> -- Executing [s@macro-dialout-trunk:1] Set("SIP/75002-b7705298", "DIAL_TRUNK=7") in new stack<br>
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/75002-b7705298", "0?sub-pincheck|s|1") in new stack<br> -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/75002-b7705298", "0?disabletrunk|1") in new stack<br>
-- Executing [s@macro-dialout-trunk:4] Set("SIP/75002-b7705298", "DIAL_NUMBER=015921256331") in new stack<br> -- Executing [s@macro-dialout-trunk:5] Set("SIP/75002-b7705298", "DIAL_TRUNK_OPTIONS=Ttr") in new stack<br>
-- Executing [s@macro-dialout-trunk:6] Set("SIP/75002-b7705298", "OUTBOUND_GROUP=OUT_7") in new stack<br> -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/75002-b7705298", "1?nomax") in new stack<br>
-- Goto (macro-dialout-trunk,s,9)<br> -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/75002-b7705298", "0?skipoutcid") in new stack<br> -- Executing [s@macro-dialout-trunk:10] Set("SIP/75002-b7705298", "DIAL_TRUNK_OPTIONS=Tt") in new stack<br>
== Begin MixMonitor Recording SIP/75002-b7705298<br> -- Executing [s@macro-dialout-trunk:11] Macro("SIP/75002-b7705298", "outbound-callerid|7") in new stack<br> -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/75002-b7705298", "0|SetCallerPres|") in new stack<br>
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/75002-b7705298", "0|Set|REALCALLERIDNUM=75002") in new stack<br> -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/75002-b7705298", "1?normcid") in new stack<br>
-- Goto (macro-outbound-callerid,s,6)<br> -- Executing [s@macro-outbound-callerid:6] Set("SIP/75002-b7705298", "USEROUTCID=") in new stack<br> -- Executing [s@macro-outbound-callerid:7] Set("SIP/75002-b7705298", "EMERGENCYCID=") in new stack<br>
-- Executing [s@macro-outbound-callerid:8] Set("SIP/75002-b7705298", "TRUNKOUTCID=s2") in new stack<br> -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/75002-b7705298", "1?trunkcid") in new stack<br>
-- Goto (macro-outbound-callerid,s,12)<br> -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/75002-b7705298", "1|Set|CALLERID(all)=s2") in new stack<br> -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/75002-b7705298", "0|Set|CALLERID(all)=") in new stack<br>
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/75002-b7705298", "0|SetCallerPres|prohib_passed_screen") in new stack<br> -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/75002-b7705298", "0|AGI|fixlocalprefix") in new stack<br>
-- Executing [s@macro-dialout-trunk:13] Set("SIP/75002-b7705298", "OUTNUM=015921256331") in new stack<br> -- Executing [s@macro-dialout-trunk:14] Set("SIP/75002-b7705298", "custom=SIP/s2") in new stack<br>
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/75002-b7705298", "1|Set|DIAL_TRUNK_OPTIONS=M(setmusic^none)Tt") in new stack<br> -- Executing [s@macro-dialout-trunk:16] Macro("SIP/75002-b7705298", "dialout-trunk-predial-hook|") in new stack<br>
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/75002-b7705298", "") in new stack<br> -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/75002-b7705298", "0?bypass|1") in new stack<br>
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/75002-b7705298", "0?customtrunk") in new stack<br> -- Executing [s@macro-dialout-trunk:19] Dial("SIP/75002-b7705298", "SIP/s2/015921256331|300|M(setmusic^none)Tt") 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: "s2" <<a href="mailto:sip%3AUnknown@222.46.18.52">sip:Unknown@222.46.18.52</a>>;tag=as75543a2d<br>To: <<a href="mailto:sip%3A015921256331@222.46.18.52">sip:015921256331@222.46.18.52</a>><br>
Contact: <<a href="mailto:sip%3AUnknown@219.235.234.238">sip:Unknown@219.235.234.238</a>><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> <br><--- SIP read from <a href="http://222.46.18.52:5060">222.46.18.52:5060</a> ---><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: "s2" <<a href="mailto:sip%3AUnknown@222.46.18.52">sip:Unknown@222.46.18.52</a>>;tag=as75543a2d<br>To: <<a href="mailto:sip%3A015921256331@222.46.18.52">sip:015921256331@222.46.18.52</a>><br>Contact: <<a href="http://sip:015921256331@222.46.18.52:5060">sip:015921256331@222.46.18.52:5060</a>><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><-------------><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: "s2" <<a href="mailto:sip%3AUnknown@222.46.18.52">sip:Unknown@222.46.18.52</a>>;tag=as75543a2d<br>To: <<a href="mailto:sip%3A015921256331@222.46.18.52">sip:015921256331@222.46.18.52</a>><br>
Contact: <<a href="mailto:sip%3AUnknown@219.235.234.238">sip:Unknown@219.235.234.238</a>><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("SIP/75002-b7705298", "s-CONGESTION|1") in new stack<br>
-- Goto (macro-dialout-trunk,s-CONGESTION,1)<br> -- Executing [s-CONGESTION@macro-dialout-trunk:1] GotoIf("SIP/75002-b7705298", "1?noreport") in new stack<br> -- Goto (macro-dialout-trunk,s-CONGESTION,3)<br>
-- Executing [s-CONGESTION@macro-dialout-trunk:3] NoOp("SIP/75002-b7705298", "TRUNK Dial failed due to CONGESTION - failing through to other trunks") in new stack<br> -- Executing [015921256331@from-internal:6] Macro("SIP/75002-b7705298", "outisbusy|") in new stack<br>
-- Executing [s@macro-outisbusy:1] Playback("SIP/75002-b7705298", "all-circuits-busy-now|noanswer") in new stack<br> -- <SIP/75002-b7705298> Playing 'all-circuits-busy-now' (language 'en')<br>
Really destroying SIP dialog <a href="mailto:'5cf71e106209cf65344e24031354fbda@222.46.18.52'">'5cf71e106209cf65344e24031354fbda@222.46.18.52'</a> Method: INVITE<br> -- Executing [s@macro-outisbusy:2] Playback("SIP/75002-b7705298", "pls-try-call-later|noanswer") in new stack<br>
-- <SIP/75002-b7705298> Playing 'pls-try-call-later' (language 'en')<br> -- Executing [s@macro-outisbusy:3] Macro("SIP/75002-b7705298", "hangupcall") in new stack<br> -- Executing [s@macro-hangupcall:1] GotoIf("SIP/75002-b7705298", "1?skiprg") in new stack<br>
-- Goto (macro-hangupcall,s,4)<br> -- Executing [s@macro-hangupcall:4] GotoIf("SIP/75002-b7705298", "1?skipblkvm") in new stack<br> -- Goto (macro-hangupcall,s,7)<br> -- Executing [s@macro-hangupcall:7] GotoIf("SIP/75002-b7705298", "1?theend") in new stack<br>
-- Goto (macro-hangupcall,s,9)<br> -- Executing [s@macro-hangupcall:9] Hangup("SIP/75002-b7705298", "") in new stack<br> == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/75002-b7705298' in macro 'hangupcall'<br>
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/75002-b7705298' in macro 'outisbusy'<br> == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/75002-b7705298'<br>
== End MixMonitor Recording SIP/75002-b7705298</p></blockquote>
<div><br clear="all"><br>-- <br>Best Regards!</div>
<div><br>Aaron Chen <br></div>