<div dir="ltr"><div><div><div><div><div><div><div>Hi All Finally i Figured Out the NAT issue <br><br><br></div>My Setup is Like this <br><br></div>DID(IP Authentication)----&gt;Public IP----------&gt; (Pfseance)(1:1)NAT --------&gt; (Private IP) FreeSwicth-------&gt;(Private IP)Asterisk Cluster.<br>
<br><br></div>        i am not sure why its work for Me, Really :), Because with this same configuration its didn&#39;t work for me until yesterday.<br><br></div>Here the Configurations is :<br><br></div><span style="color:rgb(255,0,0)">First thing  we need the set the variable for   vars.xml  </span><br>
<br>/usr/local/freeswitch/conf/vars.xml<br>===============================<br></div></div>XX.XX.XX.XX = your Public IP <br><div><div><br>&lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;external_sip_ip=XX.XX.XX.XX&quot;/&gt;<br>
&lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;external_rtp_ip=XX.XX.XX.XX&quot;/&gt;<br><br></div><div><span style="color:rgb(255,0,0)">Add the IP address of Your Provider to acl:</span><br><br>/usr/local/freeswitch/conf/vars.xml<br>
===============================<br></div><div>YY.YY.YY.YY = Your Provider IP<br></div><div><br>&lt;node type=&quot;allow&quot; cidr=&quot;YY.YY.YY.YY/32&quot;/&gt;<br><br><br></div><div>Add the Dialplan Entry in Public :<br>
<br>/usr/local/freeswitch/conf/dialplan/public/ipkall.xml<br> ========================================<br>&lt;include&gt;<br> &lt;extension name=&quot;public_did&quot;&gt;<br>    &lt;condition field=&quot;destination_number&quot; expression=&quot;2064248436&quot;&gt;<br>
    &lt;action application=&quot;set&quot; data=&quot;domain_name=$${domain}&quot;/&gt; <br>    &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/VICI22/2064248436&quot;/&gt;<br>    &lt;/condition&gt;<br>
  &lt;/extension&gt;<br>&lt;/include&gt;<br><br></div><div>This is it  i am Done, my Asterisk Cluster is reciving calls with two way AUDIO.<br><br><br></div><div>May be this will Help For Some People to solve the NAT issue.<br>
<br><br></div><div>Thanks<br></div><div><br></div><div><br><br></div><div><br><br><br><br></div><div><br><br><br><br><br><br><br><div><div><div><div><div><div><div><br><div>   <br></div><div><br><br></div></div></div></div>
</div></div></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 1, 2013 at 5:39 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</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"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Mon, Jul 1, 2013 at 1:37 PM, johnthan123 <span dir="ltr">&lt;<a href="mailto:johnthan123@gmail.com" target="_blank">johnthan123@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"><div><div><div><div><div>Hi All, <br><br></div> I am really happy for the all answers, But the thing is No one giving me the assure for the NAT,<br>

<br></div>             i configured the NAT before and it was working, But with the same configuration and same networking i couldn&#39;t able to make it now, i have similor qustion with asterisk why asterisk works good behind the NAT why not Freeswitch,  as a Freeswitch Lover i want to be overcome this issue <br>


 <br></div>        still i am looking for some inputs for successful NAT in Freeswitch , if possible some one give for NAT.<br></div></div></div></blockquote></div><div>The short answer is this: something somewhere changed. If it was working with a previous version of FS and isn&#39;t working now then I would recommend looking for the commit where it broke. Install an older FS version where you are certain that it was working, and then go from there. Using git bisect can probably help cut down the time.<br>

<br></div><div>I would also recommend getting SIP and RTP captures of working vs. non-working calls and compare them using Wireshark. See if you can figure out what is happening and then report back. Hopefully the gang here will help you figure out why it is happening and you can fix it.<span class="HOEnZb"><font color="#888888"><br>

<br></font></span></div><span class="HOEnZb"><font color="#888888"><div>-MC<br><br>
</div></font></span></div><br></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" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.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://wiki.freeswitch.org" target="_blank">http://wiki.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>
<br></blockquote></div><br></div>