Have a quick look at this guide on NAT and SIP - <a href="http://www.aocomputing.net/?p=3">http://www.aocomputing.net/?p=3</a>.  This is the link given if you were to ask this same question in the IRC channel...<br><br>--wcs<br>
<br><br><div class="gmail_quote">On Wed, Oct 21, 2009 at 9:59 AM, Ott Rose <span dir="ltr">&lt;<a href="mailto:sixfourimpala@hotmail.com">sixfourimpala@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
<br>Here is what i think the is helpful from  wireshark <br><div class="im"><br><br><br>OPTIONS sip:216.82.224.202 SIP/2.0<br><br></div>Via: SIP/2.0/UDP mypublicip:5060;branch=z9hG4bK5aac5845;rport<br><br>From: &quot;Unknown&quot; &lt;sip:Unknown@mypublicip&gt;;tag=as7b5287b3<div class="im">
<br><br>To: &lt;sip:216.82.224.202&gt;<br><br></div>Contact: &lt;sip:Unknown@mypublicip&gt;<br><br>Call-ID: 311d57516ef9649b7dfab937203932fb@mypublicip<div class="im"><br><br>CSeq: 102 OPTIONS<br><br>User-Agent: Asterisk PBX<br>
<br>Max-Forwards: 70<br><br></div>Date: Wed, 21 Oct 2009 14:11:14 GMT<div class="im"><br><br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<br><br>Supported: replaces<br><br>Content-Length: 0<br><br><br>
<br></div><div class="im">SIP/2.0 200 OK<br><br></div>Via: SIP/2.0/UDP 10.1.0.8:5060;branch=z9hG4bK5aac5845;rport=5060<br><br>From: &quot;Unknown&quot; &lt;<a href="mailto:sip%3AUnknown@10.1.0.8" target="_blank">sip:Unknown@10.1.0.8</a>&gt;;tag=as7b5287b3<br>
<br>To: &lt;sip:216.82.224.202&gt;;tag=f5da119de3db22dcaa2abb8ea9fec0ce.e340<br><br>Call-ID: <a href="mailto:311d57516ef9649b7dfab937203932fb@10.1.0.8" target="_blank">311d57516ef9649b7dfab937203932fb@10.1.0.8</a><br><br>
CSeq: 102 OPTIONS<br><br>Server: Bandwidth.com TRM (bw7.gold.13)<br><br>Content-Length: 0<div class="im"><br><br><br><br>OPTIONS sip:216.82.224.202 SIP/2.0<br><br></div>Via: SIP/2.0/UDP mypublicip:5060;branch=z9hG4bK2e9c787f;rport<br>
<br>From: &quot;Unknown&quot; &lt;sip:Unknown@mypublicip&gt;;tag=as20c07cef<div class="im"><br><br>To: &lt;sip:216.82.224.202&gt;<br><br></div>Contact: &lt;sip:Unknown@mypublicip&gt;<br><br>Call-ID: 09003fa1042464842df21c73339a128a@mypublicip<div class="im">
<br><br>CSeq: 102 OPTIONS<br><br>User-Agent: Asterisk PBX<br><br>Max-Forwards: 70<br><br></div>Date: Wed, 21 Oct 2009 14:11:14 GMT<div class="im"><br><br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<br>
<br>Supported: replaces<br><br>Content-Length: 0<br><br><br><br></div><div class="im">SIP/2.0 200 OK<br><br></div>Via: SIP/2.0/UDP 10.1.0.8:5060;branch=z9hG4bK2e9c787f;rport=5060<br><br>From: &quot;Unknown&quot; &lt;<a href="mailto:sip%3AUnknown@10.1.0.8" target="_blank">sip:Unknown@10.1.0.8</a>&gt;;tag=as20c07cef<br>
<br>To: &lt;sip:216.82.224.202&gt;;tag=f5da119de3db22dcaa2abb8ea9fec0ce.f75e<br><br>Call-ID: <a href="mailto:09003fa1042464842df21c73339a128a@10.1.0.8" target="_blank">09003fa1042464842df21c73339a128a@10.1.0.8</a><br><br>
CSeq: 102 OPTIONS<br><br>Server: Bandwidth.com TRM (bw7.gold.13)<br><br>Content-Length: 0<div class="im"><br><br><br><br>OPTIONS sip:216.82.224.202 SIP/2.0<br><br></div>Via: SIP/2.0/UDP 64.191.130.78:5060;branch=z9hG4bK4d179421;rport<br>
<br>From: &quot;Unknown&quot; &lt;sip:Unknown@mypublicip&gt;;tag=as271c263c<div class="im"><br><br>To: &lt;sip:216.82.224.202&gt;<br><br></div>Contact: &lt;sip:Unknown@mypublicip&gt;<br><br>Call-ID: 30a25dbd0ed352e5159b0b6a767ea63b@mypublicip<div class="im">
<br><br>CSeq: 102 OPTIONS<br><br>User-Agent: Asterisk PBX<br><br>Max-Forwards: 70<br><br></div>Date: Wed, 21 Oct 2009 14:11:24 GMT<div class="im"><br><br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<br>
<br>Supported: replaces<br><br>Content-Length: 0<br><br><br><br></div><div class="im">SIP/2.0 200 OK<br><br></div>Via: SIP/2.0/UDP 10.1.0.8:5060;branch=z9hG4bK4d179421;rport=5060<br><br>From: &quot;Unknown&quot; &lt;<a href="mailto:sip%3AUnknown@10.1.0.8" target="_blank">sip:Unknown@10.1.0.8</a>&gt;;tag=as271c263c<br>
<br>To: &lt;sip:216.82.224.202&gt;;tag=f5da119de3db22dcaa2abb8ea9fec0ce.25d4<br><br>Call-ID: <a href="mailto:30a25dbd0ed352e5159b0b6a767ea63b@10.1.0.8" target="_blank">30a25dbd0ed352e5159b0b6a767ea63b@10.1.0.8</a><br><br>
CSeq: 102 OPTIONS<br><br>Server: Bandwidth.com TRM (bw7.gold.13)<br><br>Content-Length: 0<div class="im"><br><br><br><br>OPTIONS sip:216.82.224.202 SIP/2.0<br><br></div>Via: SIP/2.0/UDP mypublicip:5060;branch=z9hG4bK61a8b371;rport<br>
<br>From: &quot;Unknown&quot; &lt;sip:Unknown@mypublicip&gt;;tag=as3913f8ae<div class="im"><br><br>To: &lt;sip:216.82.224.202&gt;<br><br></div>Contact: &lt;sip:Unknown@mypublicip&gt;<br><br>Call-ID: 05e50acb725d34f01bc78666422f5acd@mypublicip<div class="im">
<br><br>CSeq: 102 OPTIONS<br><br>User-Agent: Asterisk PBX<br><br>Max-Forwards: 70<br><br></div>Date: Wed, 21 Oct 2009 14:11:25 GMT<div class="im"><br><br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<br>
<br>Supported: replaces<br><br>Content-Length: 0<br><br><br><br></div><div class="im">SIP/2.0 200 OK<br><br></div>Via: SIP/2.0/UDP 10.1.0.8:5060;branch=z9hG4bK61a8b371;rport=5060<br><br>From: &quot;Unknown&quot; &lt;<a href="mailto:sip%3AUnknown@10.1.0.8" target="_blank">sip:Unknown@10.1.0.8</a>&gt;;tag=as3913f8ae<br>
<br>To: &lt;sip:216.82.224.202&gt;;tag=f5da119de3db22dcaa2abb8ea9fec0ce.2790<br><br>Call-ID: <a href="mailto:05e50acb725d34f01bc78666422f5acd@10.1.0.8" target="_blank">05e50acb725d34f01bc78666422f5acd@10.1.0.8</a><br><br>
CSeq: 102 OPTIONS<br><br>Server: Bandwidth.com TRM (bw7.gold.13)<br><br>Content-Length: 0<br><br><br><br><br><hr>From: <a href="mailto:sixfourimpala@hotmail.com" target="_blank">sixfourimpala@hotmail.com</a><div class="im">
<br>To: <a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a><br></div>Date: Wed, 21 Oct 2009 14:00:20 +0000<div><div></div><div class="h5"><br>Subject: Re: [asterisk-users] troubleshooting NAT<br>
<br>






<br><br>&gt; Date: Tue, 20 Oct 2009 21:02:29 -0500<br>&gt; From: <a href="mailto:asterisklist@callthem.info" target="_blank">asterisklist@callthem.info</a><br>&gt; To: <a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a><br>
&gt; Subject: Re: [asterisk-users] troubleshooting NAT<br>&gt; <br>&gt; if you&#39;re using SIP then you look at SIP headers ... SDP part<br>&gt; from INVITE&#39;s and 200 OK to INVITE. You check what IP/port is used for RTP<br>
<br><br>Here is the SIP header that you see when you run the asterisk -r command.<br><br>Reliably Transmitting (NAT) to <a href="http://216.82.224.202:5060" target="_blank">216.82.224.202:5060</a>:<br>OPTIONS sip:216.82.224.202 SIP/2.0<br>
Via: SIP/2.0/UDP ourpublicip:5060;branch=z9hG4bK42ef5901;rport<br>From: &quot;Unknown&quot; &lt;sip:Unknown@ourpublicip&gt;;tag=as0186791c<br>To: &lt;sip:216.82.224.202&gt;<br>Contact: &lt;sip:Unknown@ourpublicip&gt;<br>Call-ID: 52019c8970f8727a04fd79f0083cce21@ourpublicip<br>
CSeq: 102 OPTIONS<br>User-Agent: Asterisk PBX<br>Max-Forwards: 70<br>Date: Wed, 21 Oct 2009 13:33:36 GMT<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<br>Supported: replaces<br>Content-Length: 0<br>
<br><br>Here is a debug from one of our phones calling an external number<br><br>SIP/2.0 200 OK<br>Via: SIP/2.0/UDP 10.1.0.46:5060;branch=z9hG4bKb033ebc8ff0de35dc.650da238f5237c4a1;received=10.0.0.46<br>From: &quot;me&quot; &lt;<a href="mailto:sip%3A117@10.1.0.8" target="_blank">sip:117@10.1.0.8</a>&gt;;tag=aa5daa3277<br>
To: &quot;95457878&quot; &lt;<a href="mailto:sip%3A95457878@10.1.0.8" target="_blank">sip:95457878@10.1.0.8</a>&gt;;tag=as0b5e19fc<br>Call-ID: 2edce254de2a77ab<br>CSeq: 32330 CANCEL<br>User-Agent: Asterisk PBX<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<br>
Supported: replaces<br>Contact: &lt;<a href="mailto:sip%3A95457878@10.1.0.8" target="_blank">sip:95457878@10.1.0.8</a>&gt;<br>Content-Length: 0<br><br><br>&lt;------------&gt;<br>  == Spawn extension (from-internal, 95457878, 4) exited non-zero on &#39;SIP/117-09c4fc20&#39;<br>
    -- Executing [h@from-internal:1] Macro(&quot;SIP/117-09c4fc20&quot;, &quot;hangupcall&quot;) in new stack<br>    -- Executing [s@macro-hangupcall:1] GotoIf(&quot;SIP/117-09c4fc20&quot;, &quot;1?skiprg&quot;) in new stack<br>
    -- Goto (macro-hangupcall,s,4)<br>    -- Executing [s@macro-hangupcall:4] GotoIf(&quot;SIP/117-09c4fc20&quot;, &quot;1?skipblkvm&quot;) in new stack<br>    -- Goto (macro-hangupcall,s,7)<br>    -- Executing [s@macro-hangupcall:7] GotoIf(&quot;SIP/117-09c4fc20&quot;, &quot;1?theend&quot;) in new stack<br>
    -- Goto (macro-hangupcall,s,9)<br>    -- Executing [s@macro-hangupcall:9] Hangup(&quot;SIP/117-09c4fc20&quot;, &quot;&quot;) in new stack<br>  == Spawn extension (macro-hangupcall, s, 9) exited non-zero on &#39;SIP/117-09c4fc20&#39; in macro &#39;hangupcall&#39;<br>
  == Spawn extension (from-internal, h, 1) exited non-zero on &#39;SIP/117-09c4fc20&#39;<br><br>&gt; and then you can try to get some packet dump with tcpdump/wireshark<br><br>if am ssh into the server and run  tcpdump not port 22. i get normal LAN traffic until i make a call. then i get a ton of  this. .8 is the phoneserver and .46 is one of the phones. i haven&#39;t done wireshark because I haven&#39;t looked up how to take the tcpdump and import it into wireshark. <br>
<br>09:40:58.510750 IP 10.1.0.8.12036 &gt; 10.1.0.46.hbci: UDP, length 172<br>09:40:58.530758 IP 10.1.0.8.12036 &gt; 10.1.0.46.hbci: UDP, length 172<br>09:40:58.550762 IP 10.1.0.8.12036 &gt; 10.1.0.46.hbci: UDP, length 172<br>
09:40:58.570770 IP 10.1.0.8.12036 &gt; 10.1.0.46.hbci: UDP, length 172<br>09:40:58.590775 IP 10.1.0.8.12036 &gt; 10.1.0.46.hbci: UDP, length 172<br>09:40:58.610781 IP 10.1.0.8.12036 &gt; 10.1.0.46.hbci: UDP, length 172<br>
09:40:58.625026 IP 10.1.0.46.sip &gt; 10.1.0.8.sip: SIP, length: 348<br>09:40:58.625485 IP 10.1.0.8.sip &gt; 10.1.0.46.sip: SIP, length: 417<br>09:40:58.625608 IP 10.1.0.8.sip &gt; 10.1.0.46.sip: SIP, length: 435<br>09:40:58.679832 IP 10.1.0.46.sip &gt; 10.1.0.8.sip: SIP, length: 334<br>
<br><br><br><br><br>&gt; and maybe configure your router<br>&gt; so it works.... it&#39;s the first thing to look for ...<br><br>if the phone server can access the internet then shouldn&#39;t that mean the router has NAT setup correctly on it? <br>
<br>&gt; <br>&gt; you can also try to use the stun server ... asterisk has it built in<br>&gt; ...never used it but saw it&#39;s there<br>&gt; <br>&gt; Martin<br>&gt; <br>&gt; On Tue, Oct 20, 2009 at 1:32 PM, Ott Rose &lt;<a href="mailto:sixfourimpala@hotmail.com" target="_blank">sixfourimpala@hotmail.com</a>&gt; wrote:<br>
&gt; &gt; Can anyone tell me how to troubleshoot NAT issues? We had Freepbx look at<br>&gt; &gt; your install and they said we are having a NAT problem but didn&#39;ttell me if<br>&gt; &gt; it was with the asterisk conf or the Cisco ASA.<br>
&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign up<br>&gt; &gt; now.<br>&gt; &gt; _______________________________________________<br>
&gt; &gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>&gt; &gt;<br>&gt; &gt; asterisk-users mailing list<br>&gt; &gt; To UNSUBSCRIBE or update options visit:<br>
&gt; &gt;   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>&gt; &gt;<br>&gt; <br>&gt; _______________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>&gt; <br>&gt; asterisk-users mailing list<br>&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;    <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>                                               <br><hr>Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. <a href="http://clk.atdmt.com/GBL/go/171222985/direct/01/" target="_blank">Sign up now.</a>                                               <br>
</div></div><div class="hm"><hr>Hotmail: Free, trusted and rich email service. <a href="http://clk.atdmt.com/GBL/go/171222984/direct/01/" target="_blank">Get it now.</a></div></div>
<br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>