Hai brian,<br><br>I given my router ip in ext-sip-ip and ext-rtp-ip.<br><br>Ext-rtp-ip = router-ip<br><br>Issue is fs not putting profile-&gt;extrtpip because its fail in nat checking.<br><br>Regards<br><br>Andrew<br><br><br>
<br>On Sunday, February 9, 2014, Brian West &lt;<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>&gt; wrote:<br>&gt; What values do you have in ext-sip-ip and ext-rtp-ip?<br>&gt; --<br>&gt; Brian West<br>&gt; <a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a><br>
&gt; FreeSWITCH Solutions, LLC<br>&gt; PO BOX 2531<br>&gt; Brookfield, WI 53008-2531<br>&gt; Twitter: @FreeSWITCH , @briankwest<br>&gt; <a href="http://www.freeswitchbook.com">http://www.freeswitchbook.com</a><br>&gt; <a href="http://www.freeswitchcookbook.com">http://www.freeswitchcookbook.com</a><br>
&gt;<br>&gt; T: +1.918.420.9001  |  F: +1.918.420.9002  |  M: +1.918.424.WEST<br>&gt; iNUM: +883 5100 1420 9001<br>&gt; ISN: 410*543<br>&gt; Skype:briankwest<br>&gt; PGP Key: <a href="http://www.bkw.org/key.txt">http://www.bkw.org/key.txt</a> (AB93356707C76CED)<br>
&gt;<br>&gt;<br>&gt; On Feb 9, 2014, at 9:09 AM, Andrew Paul &lt;<a href="mailto:andrew.paul85@gmail.com">andrew.paul85@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt;&gt; Hi all,<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; ------------------FREESWITCH--------------(bridge=sofia/external/sip:outbound-opensip.com:5060)-----------OPENSIP----------------------<br>
&gt;&gt;<br>&gt;&gt; I am facing NAT problem when i am dialing SIP URI via sip profile. When i am dialing the SIP uri with Gateway trunk NAT is working properly.<br>&gt;&gt;<br>&gt;&gt; Dialing SIP URI<br>&gt;&gt;<br>&gt;&gt; &lt;action application=&quot;bridge&quot;  data=&quot;sofia/external/sip:<a href="http://outbound-opensip.com:5060">outbound-opensip.com:5060</a>&quot;<br>
&gt;&gt;<br>&gt;&gt; In external profile setting I made the setting for ext-rtp-ip and ext-sip-ip. In freeswitch cli &quot;sofia status profile external&quot; i am able to see the external rtp and sip ip correctly.<br>&gt;&gt;<br>
&gt;&gt; But when freeswitch sending INVITE external IPs are not set in SDP and FROM Header, instead it is using local IP. When i tried to debug the problem in switch_core_media.c freeswitch failed to check the NAT settings.<br>
&gt;&gt;<br>&gt;&gt; switch_core_media.c<br>&gt;&gt;<br>&gt;&gt; SWITCH_DECLARE(switch_status_t) switch_core_media_choose_port(switch_core_session_t *session, switch_media_type_t type, int force)<br>&gt;&gt;<br>&gt;&gt; /* Check if NAT is detected  */<br>
&gt;&gt;     if (!zstr(smh-&gt;mparams-&gt;remote_ip) &amp;&amp; switch_core_media_check_nat(smh, smh-&gt;mparams-&gt;remote_ip)) {<br>&gt;&gt;         /* Yes, map the port through switch_nat */<br>&gt;&gt;         /* Code */<br>
&gt;&gt;     } else {<br>&gt;&gt;         /* No NAT traversal required, use the profile&#39;s rtp ip */<br>&gt;&gt;         use_ip = smh-&gt;mparams-&gt;rtpip;<br>&gt;&gt;     }<br>&gt;&gt;<br>&gt;&gt; Here remote IP is NULL always when i am dialing URI with external profile. When I tried to make call  by &quot;sofia/gateway/trunk/sip:<a href="http://outbound-opensip.com:5060">outbound-opensip.com:5060</a>&quot; i can see the remote ip as &quot;<a href="http://oubound-opensip.com">oubound-opensip.com</a>&quot; and its able to external IP in SDP.<br>
&gt;&gt;<br>&gt;&gt; Can any body tell how to solve this problem ? Is there any configuration to set relam in dialplan ?<br>&gt;&gt;<br>&gt;&gt; I am using freeswitch version 1.5.6.<br>&gt;&gt;<br>&gt;&gt; Hopping the earliest response.<br>
&gt;&gt;<br>&gt;&gt; Regards<br>&gt;&gt;<br>&gt;&gt; Andrew<br>&gt;<br>&gt;<br>&gt; _________________________________________________________________________<br>&gt; Professional FreeSWITCH Consulting Services:<br>&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br>&gt;<br>&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>&gt; <a href="http://www.cudatel.com">http://www.cudatel.com</a><br>
&gt;<br>&gt; Official FreeSWITCH Sites<br>&gt; <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>&gt; <a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><br>&gt; <a href="http://www.cluecon.com">http://www.cluecon.com</a><br>
&gt;<br>&gt; FreeSWITCH-users mailing list<br>&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>&gt; <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
&gt;