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