<div dir="ltr"><div><div><div>Hi Brian,<br><br></div>I tried auonat and local-network-acl. <br></div><div><br>Its looks like a bug in freeswitch. Whenever i am dialing "sofia/external/sip:<a href="http://domain.com">domain.com</a>" freeswitch not able to set the domain to tech_pvt->mparams.remote_ip . Whenever we are making a outgoing call it will be processed in <br>
mod_sofia.c function "sofia_outgoing_channel" <br><br> if (zstr(tech_pvt->mparams.remote_ip)) {<br> switch_split_user_domain(switch_core_session_strdup(nsession, tech_pvt->dest), NULL, &tech_pvt->mparams.remote_ip);<br>
}<br><br></div>Since my dial string dont have username "switch_split_user_domain" function make my remote_ip always NULL. So NAT checking in SIP and SDP got failed.<br><br></div><div>Best Regards<br><br>Andrew Paul <br>
</div><div><div><br><div><div>On Tue, Feb 11, 2014 at 7:21 PM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>></span> wrote:<br><div><div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Bug reports belong at <a href="http://jira.freeswitch.org" target="_blank">http://jira.freeswitch.org</a>, Please file one with all the details, I can’t seem to get the same behavior you’re getting. For auto-nat to work you need to set local-network-acl, Have you done so.<br>
<br>
Either way please file a JIRA<br>
<div><br>
--<br>
Brian West<br>
<a href="mailto:brian@freeswitch.org" target="_blank">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" target="_blank">http://www.freeswitchbook.com</a><br>
<a href="http://www.freeswitchcookbook.com" target="_blank">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" target="_blank">http://www.bkw.org/key.txt</a> (AB93356707C76CED)<br>
<br>
<br>
<br>
</div><div><div>On Feb 9, 2014, at 9:00 PM, Andrew Paul <<a href="mailto:andrew.paul85@gmail.com" target="_blank">andrew.paul85@gmail.com</a>> wrote:<br>
<br>
> Hai Brian ,<br>
><br>
> I tried in Profile by ext-rtp-ip=autonat:x.x.x.x. But this method also didnt work.<br>
><br>
> Can you tell me is there any configuration for setting the outbound IP(realm address) in dialplan ?<br>
><br>
> The issue is freeswitch not able to find the Remote IP for checking the NAT. Since NAT checking failed freeswitch putting the profile rtp ip instead of profile extern ip.<br>
><br>
> * Check if NAT is detected */<br>
> >> if (!zstr(smh->mparams->remote_<br>
> 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>
> Regards<br>
><br>
> Andrew<br>
><br>
<br>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto: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>
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" 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><br>
<br></blockquote></div><br></div></div></div></div></div></div></div>