<div dir="ltr">use tcpdump or similar to capture the traffic on the wire.<div><br></div><div>also get a siptrace from freeswitch console</div><div><br></div><div>&quot;sofia global siptrace on&quot;</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 21, 2015 at 12:35 PM, Mi Ke <span dir="ltr">&lt;<a href="mailto:mi.ke@null.net" target="_blank">mi.ke@null.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Verdana;font-size:12.0px"><div>
<div>Hey Russel, thank you for your response.</div>

<div> </div>

<div>Nope, there&#39;re no NATs in my setup.</div>

<div> </div>

<div>I also should mention, that when I test my setup on FS machine with sipp:</div>

<div> </div>

<div>sipp -d 1 -r 1 -m 1 -i fs.ip.addr <a href="http://1.1.1.1:5060" target="_blank">1.1.1.1:5060</a></div>

<div> </div>

<div>
<div>------------------------------ Scenario Screen -------- [1-9]: Change Screen --<br>
  Call-rate(length)   Port   Total-time  Total-calls  Remote-host<br>
   1.0(1 ms)/1.000s   5061       1.08 s            1  1.1.1.1:5060(UDP)</div>

<div> </div>
</div>

<div>the target sip server gets incoming call as it should do.</div>

<div> </div>

<div>Thanks / Mike</div>

<div> </div>

<div> </div>

<div> 
<div name="quote" style="margin:10px 5px 5px 10px;padding:10px 0 10px 10px;border-left:2px solid #c3d9e5;word-wrap:break-word">
<div style="margin:0 0 10px 0"><b>Sent:</b> Monday, September 21, 2015 at 6:55 PM<br>
<b>From:</b> &quot;Russell Treleaven&quot; &lt;<a href="mailto:rtreleaven@bunnykick.ca" target="_blank">rtreleaven@bunnykick.ca</a>&gt;<br>
<b>To:</b> &quot;FreeSWITCH Users Help&quot; &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
<b>Subject:</b> Re: [Freeswitch-users] gateway registration problem</div><div><div class="h5">

<div name="quoted-content">
<div>
<div>Is there NAT anywhere between the sip endpoints?</div>

<div> </div>
</div>

<div class="gmail_extra"> 
<div class="gmail_quote">On Mon, Sep 21, 2015 at 11:49 AM, Mi Ke <span>&lt;<a href="http://mi.ke@null.net" target="_blank">mi.ke@null.net</a>&gt;</span> wrote:

<blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1.0px rgb(204,204,204) solid;padding-left:1.0ex">
<div>
<div style="font-family:Verdana;font-size:12.0px">
<div>Hi All,</div>

<div> </div>

<div>I want to register my FS machine (FreeSWITCH Version 1.6.0 - git 6762f14 2015-09-03 20:36:52Z 64bit - CentOS 6.7, selinux is disabled for debugging) as endpoint at another target SIP server (1.1.1.1). This is my gateways section:</div>

<div> </div>

<div>
<div>    &lt;gateway name=&quot;1111&quot;&gt;<br>
        &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;<br>
        &lt;param name=&quot;register-transport&quot; value=&quot;udp&quot;/&gt;<br>
        &lt;param name=&quot;username&quot; value=&quot;1111&quot;/&gt;<br>
        &lt;param name=&quot;realm&quot; value=&quot;1.1.1.1&quot;/&gt;<br>
        &lt;param name=&quot;password&quot; value=&#39;my_strong_pass&quot;/&gt;<br>
        &lt;param name=&quot;proxy&quot; value=&quot;1.1.1.1&quot;/&gt;<br>
        &lt;param name=&quot;expire-seconds&quot; value=&quot;90&quot;/&gt;<br>
    &lt;/gateway&gt;</div>

<div> </div>

<div>The problem is - a target server at 1.1.1.1 receives absolutely no packets from my FS machine and I&#39;m getting constant registration timeouts:</div>

<div> </div>

<div>
<div>2015-09-21 15:01:46.764466 [ERR] sofia_reg.c:2101 487020870 Registration Failed with status Request Timeout [408]. failure #1<br>
2015-09-21 15:01:46.864501 [WARNING] sofia_reg.c:469 487020870 Failed Registration [408], setting retry to 30 seconds.</div>
</div>

<div> </div>

<div>Meanwhile, when I do UDP scan of port 5060 on 1.1.1.1 from FS machine, I see that port is opened:</div>

<div> </div>

<div>
<div>[root@srv]# nmap -sU -Pn -p U:5060 1.1.1.1</div>

<div>Starting Nmap 5.51 ( <a href="http://nmap.org" target="_blank">http://nmap.org</a> ) at 2015-09-21 15:28 EEST<br>
Nmap scan report for 1.1.1.1<br>
Host is up.<br>
PORT     STATE         SERVICE<br>
5060/udp open|filtered sip</div>

<div>Nmap done: 1 IP address (1 host up) scanned in 2.28 seconds<br>
[root@srv]#</div>

<div> </div>

<div>When I filter out port 5060 on target machine 1.1.1.1 I see appropriate lines in the log showing filtered requests:</div>

<div> </div>

<div>
<div>Sep 21 10:39:57 sip kernel: DROP IN=eth0 OUT= MAC=00:16:3c SRC=2.2.2.2 DST=1.1.1.1 LEN=28 TOS=0x00 PREC=0x00 TTL=52 ID=10616 PROTO=UDP SPT=47229 DPT=5060 LEN=8<br>
Sep 21 10:39:58 sip kernel: DROP IN=eth0 OUT= MAC=00:16:3c: SRC=2.2.2.2 DST=1.1.1.1 LEN=28 TOS=0x00 PREC=0x00 TTL=47 ID=23653 PROTO=UDP SPT=47230 DPT=5060 LEN=8</div>

<div> </div>

<div>Firewalls on both machines are off for debugging:</div>

<div> </div>

<div>
<div>[root@srv]# iptables -L -n<br>
Chain INPUT (policy ACCEPT)<br>
target     prot opt source               destination</div>

<div>Chain FORWARD (policy ACCEPT)<br>
target     prot opt source               destination</div>

<div>Chain OUTPUT (policy ACCEPT)<br>
target     prot opt source               destination<br>
[root@srv]#</div>
</div>

<div> </div>

<div>I&#39;ve spent many hours while investigating that quest but still have no ideas on what&#39;s happening. I&#39;ll highly appreciate if someone can point on where else I can look to resolve my issue.</div>

<div> </div>

<div>Thanks in advance</div>

<div> </div>

<div>Mike</div>
</div>
</div>

<div> </div>

<div> </div>
</div>
</div>
</div>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="http://consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="http://FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></blockquote>
</div>
</div>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a> Official FreeSWITCH Sites <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a> <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> FreeSWITCH-users mailing list <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div>
</div></div></div>
</div>
</div></div></div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>