<div dir="ltr">if you set your ext-sip-ip and ext-rtp-ip to autonat:x.x.x.x and then set local-network-acl to rfc1918.auto, FreeSWITCH will pick the right one depending on the local-network-acl setting.<div><br></div><div>/b</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 11, 2017 at 5:05 PM, SIP Tech <span dir="ltr"><<a href="mailto:siptech@onereach.com" target="_blank">siptech@onereach.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font color="#000000" face="Times New Roman" size="3">
</font><p style="background:white;margin:0in 0in 0pt"><span style="font-size:10pt"><font color="#000000" face="Calibri">Great work
on the FS project guys! I have a specific use case on a seasoned
freeswitch machine that seems to be giving me problems based on SDP,
working NAT configs, and freeswitch. First off, NAT works and my machines
are resolvable by internal IP within the network and publicly via static public
IP. My issue is not a functional NAT issue but how freeswitch
assigns a private or public IP in SDP. I would like to control
IP used in SDP at bridge, so that I can use private IP or public IP
on demand where I want to instead of letting freeswitch insert it based on
config settings.</font></span></p><font color="#000000" face="Times New Roman" size="3">
</font><p style="background:white;margin:0in 0in 0pt"><span style="font-size:10pt"><br><font color="#000000" face="Calibri">
My scenario is all controlled via configs within freeswitch. All machines
have private and public IPs but specific traffic must pass over private IP and
in other places calls must bridge to another FS machine via external profile
and public IP.</font></span></p><font color="#000000" face="Times New Roman" size="3">
</font><p style="background:white;margin:0in 0in 0pt"><span style="font-size:10pt"><font color="#000000" face="Calibri">Internal Profile= UPD 5080</font></span></p><font color="#000000" face="Times New Roman" size="3">
</font><p style="background:white;margin:0in 0in 0pt"><span style="font-size:10pt"><font color="#000000" face="Calibri">External Profile= UDP 5060</font></span></p><font color="#000000" face="Times New Roman" size="3">
</font><p style="background:white;margin:0in 0in 0pt"><span style="font-size:10pt"><font color="#000000" face="Calibri">1. A
private call comes into freeswitch A over an MPLS to my internal SIP
profile on UDP 5080.</font></span></p><font color="#000000" face="Times New Roman" size="3">
</font><p style="background:white;margin:0in 0in 0pt"><span style="font-size:10pt"><font color="#000000" face="Calibri">2. The
call then routes from freeswitch A via bridge to freeswitch B via
public IPs on the external profiles using UDP 5060. Freeswitch
B is only accessible via its public IP address. </font></span></p><font color="#000000" face="Times New Roman" size="3">
</font><p style="background:white;margin:0in 0in 0pt"><span style="font-size:10pt"><font face="Calibri"><font color="#000000">3. Freeswitch
B routes calls to a 3rd party IVR that gives callers the option to
transfer back to Freeswitch A. When the caller selects to be
transferred within the IVR freeswitch B makes a bridge back to freeswitch
A using public IPs.<br></font><font color="#000000">
4. Freeswitch A receives the incoming call from freeswitch B public IP to
public IP.</font></font></span></p><font color="#000000" face="Times New Roman" size="3">
</font><p style="background:white;margin:0in 0in 0pt"><span style="font-size:10pt"><font color="#000000" face="Calibri">5.
Freeswitch A uses another dialplan to route the call back out over the MPLS
using private IP to private IP.</font></span></p><font color="#000000" face="Times New Roman" size="3">
</font><p style="background:white;margin:0in 0in 0pt"><span style="font-size:10pt"><font color="#000000" face="Calibri"> </font></span></p><font color="#000000" face="Times New Roman" size="3">
</font><p style="background:white;margin:0in 0in 0pt"><span style="font-size:10pt"><font color="#000000" face="Calibri">I am
running into SDP IP issues and how freeswitch is handing SDP based on where the
call came from and where it needs to go to. I have spent some time
playing with configs in vars and the profiles around rtp ports and ext-rtp nat,
autonat, etc. I have SDP working how I need it to up to the last step (4
and 5 above) but I cannot get freeswitch to send its internal IP out in
that last SDP session on bridge back over the MPLS. The MPLS only talks
private ip to private ip and FSA is sending its public IP in SDP. </font></span></p><font color="#000000" face="Times New Roman" size="3">
</font><p style="background:white;margin:0in 0in 0pt"><span style="font-size:10pt"><font color="#000000" face="Calibri">This is
where I am looking for an explicit way to control which SDP IP (local
machine private or public) is sent out on bridge. Is this
possible? If not, Is there a better way or alternative way to
approach this scenario in freeswitch?</font></span></p><font color="#000000" face="Times New Roman" size="3">
</font><p style="background:white;margin:0in 0in 0pt"><span style="color:rgb(31,73,125)"><font face="Calibri" size="3"> </font></span></p><font color="#000000" face="Times New Roman" size="3">
</font><p style="background:white;margin:0in 0in 0pt"><span style="font-size:10pt"><font color="#000000" face="Calibri">Thanks
guys</font></span></p><font color="#000000" face="Times New Roman" size="3">
</font></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" 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.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">
<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p><p><b style="font-family:monospace,monospace;font-size:small"><i>Twitter: @FreeSWITCH , @briankwest</i></b></p><p><font size="2" face="monospace, monospace"><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></font></p><p><font size="2" face="monospace, monospace"><a href="https://freeswitch.com/appointment">Book a phone call (CST)</a><br><br>Allison prompts for FreeSWITCH:</font></p><table cellspacing="0" cellpadding="0" style="font-size:12.8px"><tbody><tr><td valign="baseline"><p><span><a href="https://www.gofundme.com/allison-prompts-for-freeswitch" target="_blank"><b>https://www.gofundme.com/allison-prompts-for-freeswitch</b></a></span></p></td></tr></tbody></table><p><span style="font-family:monospace,monospace;font-size:12.8px">Got Bugs? Report them </span><a href="https://freeswitch.org/jira" style="font-family:monospace,monospace;font-size:12.8px" target="_blank">here</a><span style="font-family:monospace,monospace;font-size:12.8px">! | Reddit: </span><a href="https://www.reddit.com/r/freeswitch" style="font-family:monospace,monospace;font-size:12.8px" target="_blank">/r/freeswitch</a><br></p>
<p><font size="2" face="monospace, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>Skype:</b>briankwest<br></font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>