<div dir="ltr">According you routing table <a href="http://10.0.0.0/24">10.0.0.0/24</a> network is reachable via eth0. ARP request must be send via eth0 interface.<div>Thinking is required to find why arp is send via &quot;external&quot; LAN segment to router.</div><div>May be firewall rules, VLAN configuration mistake in LAN switch and etc.</div><div><br></div><div>Also I recommend disable ARP proxy feature on router. Router must not respond to ARP request for not owned IP address.</div><div><br></div><div>Sergey Safarov</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 13, 2015 at 12:05 PM, Moe Navid <span dir="ltr">&lt;<a href="mailto:manavid@gmail.com" target="_blank">manavid@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">







<p>Hi Anthony,</p><p>Thank you very much for your response.</p><p>After almost 9 hours of debugging I was able to reproduce the issue.</p><p>I went through all our logs and found out whenever a particular customer calls out, we loose connectivity with our router.</p><p>I found out the customer had moved his IP Phone from his office to another location. That location has same private IP address as our servers.</p><p>On all our servers we use <a href="http://10.0.0.0/24" target="_blank">10.0.0.0/24</a> on eth0 and eth1 has public IP address.</p><p>What I did next was isolated a FreeSWITCH server and spawn up a dedicated Kamailio to only send traffic to this FS server. I also changed my lab&#39;s LAN from <a href="http://172.16.16.0/24" target="_blank">172.16.16.0/24</a> to <a href="http://10.0.0.0/24" target="_blank">10.0.0.0/24</a>.</p><p>Here is what happens when I make a call:</p><p>First call is fine and I get:</p><p>switch_rtp.c:5846 Auto Changing port from <a href="http://10.0.0.179:61856" target="_blank">10.0.0.179:61856</a> to <a href="http://108.178.144.243:10249" target="_blank">108.178.144.243:10249</a></p><p>On second call, here is what happens:</p><p>The value of rtp_session-&gt;flags[SWITCH_RTP_FLAG_AUTOADJ] is correctly set to 1 but the “bytes&quot; variable is always at zero for following if statement on line 5833 in switch_rtp.c:</p><p>if (bytes &amp;&amp; rtp_session-&gt;flags[SWITCH_RTP_FLAG_AUTOADJ] &amp;&amp; switch_sockaddr_get_port(rtp_session-&gt;from_addr)) </p><p>I also did raw packet captures on eth1, I found out right after my FS receives SIP 183 with SDP from carrier, it sends out following:</p><p>1) an ICMP to my public IP address which is 108.178.144.243</p><p>2) an ARP broadcast “Who has 10.0.0.179? Tell 208.65.xxx.xxx” (208.65.xxx.xxx is the public IP of the FS server)</p><p>Right after that, the router is no longer reachable and 10.0.0.179 will show up in arp table of FS with mac address of the router.</p><p>I tested above scenario zillion times to make sure it’s reproducible before reporting back.</p><p>What I did next was installing rtpproxy and made few changes to our Kamailio to rewrite SDP and pass the traffic through rtpproxy and when I make calls with rtpproxy in the middle, the problem does not occur.</p><p>Any thoughts?</p><p>Thank you,</p><p>Moe</p></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" 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="mailto:FreeSWITCH-users@lists.freeswitch.org">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><br></blockquote></div><br></div>