<div dir="ltr">That only works if you have a NAT-PMP / UPNP router, for the ext-*-ip options, you can put your public IP in like "autonat:1.2.3.4" and set the local-network-acl and it will use that local-network-acl to determine when to use the external IP or internal IP.<div><br></div><div>/b</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 20, 2021 at 2:10 PM Bote Man <<a href="mailto:botelist@gmail.com">botelist@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">My sip_profiles/internal.xml and external.xml have these lines:<br>
    <param name="rtp-ip" value="$${local_ip_v4}"/><br>
    <param name="sip-ip" value="$${local_ip_v4}"/><br>
    <param name="ext-rtp-ip" value="auto-nat"/><br>
    <param name="ext-sip-ip" value="auto-nat"/><br>
<br>
which magically "just works" between internal extensions as well as with a couple cloud SIP providers. This is with FreeSWITCH version 1.10.5 from about a year ago.<br>
<br>
Maybe try those settings and see if they help?<br>
<br>
BTW, I fell in love with FreeSWITCH when I installed it and configured a couple phones that were up and calling each other in my lab in about 10 minutes, so you shouldn't be too far off. They've really tried to make it easy to get a working system going quickly, then you can break things from there :-)<br>
<br>
Here are my ancient notes which might also be helpful:<br>
<a href="https://freeswitch.org/confluence/display/FREESWITCH/Debian+Post-Install+Tasks" rel="noreferrer" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/Debian+Post-Install+Tasks</a><br>
<br>
Hope this helps.<br>
<br>
<br>
John Boteler <br>
BnC Group U.S.A. <br>
<br>
<br>
<br>
-----Original Message-----<br>
From: FreeSWITCH-users <<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>> On Behalf Of Antony Stone<br>
Sent: Friday, 20 August, 2021 11:38<br>
To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
Subject: [Freeswitch-users] nonat?<br>
<br>
Hi.<br>
<br>
I have just installed my first FreeSwitch server on a virtual machine on my local network, and I'm playing with it and a couple of SIP phones on the same network, in order to learn about it.<br>
<br>
I've got the phones to register to the server (I've changed the default password in vars.xml), and my first test is simply to place a call between one phone and the other.<br>
<br>
I've discovered the "NAT feature" of FreeSwitch, where it finds out what the<br>
*external* IP address of my Internet router is (which has nothing to do with the FreeSwitch server or the phones I'm trying to work with here), and starts presenting that address to the telephones in the Invite messages (inlcuding the SDP negotiations).<br>
<br>
I've found <a href="https://freeswitch.org/confluence/display/FREESWITCH/Auto+Nat" rel="noreferrer" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/Auto+Nat</a> and <a href="https://freeswitch.org/confluence/display/FREESWITCH/NAT+Traversal" rel="noreferrer" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/NAT+Traversal</a> which tell me that I need to use the "-nonat" command-line option to freeswitch to disable this.<br>
<br>
However, this doesn't work for me:<br>
<br>
# ps ax | grep freeswitch<br>
 3678 ?        S<Lsl   0:02 /usr/bin/freeswitch -u freeswitch -ncwait -nonat<br>
<br>
> sofia status profile internal<br>
=================================================================================================<br>
Name                    internal<br>
Domain Name             N/A<br>
Auto-NAT                false<br>
DBName                  sofia_reg_internal<br>
Pres Hosts              192.168.32.59,192.168.32.59<br>
Dialplan                XML<br>
Context                 public<br>
Challenge Realm         auto_from<br>
RTP-IP                  192.168.32.59<br>
Ext-RTP-IP              198.51.100.21<br>
SIP-IP                  192.168.32.59<br>
Ext-SIP-IP              198.51.100.21<br>
URL                     <a href="mailto:sip%3Amod_sofia@198.51.100." target="_blank">sip:mod_sofia@198.51.100.</a>.21:5060<br>
BIND-URL                <br>
<a href="mailto:sip%3Amod_sofia@198.51.100.21" target="_blank">sip:mod_sofia@198.51.100.21</a>:5060;maddr=192.168.32.59;transport=udp,tcp<br>
WS-BIND-URL             <a href="mailto:sip%3Amod_sofia@192.168.32.59" target="_blank">sip:mod_sofia@192.168.32.59</a>:5066;transport=ws<br>
WSS-BIND-URL            <a href="mailto:sips%3Amod_sofia@192.168.32.59" target="_blank">sips:mod_sofia@192.168.32.59</a>:7443;transport=wss<br>
<br>
As you can see, my public IP address (represented here by 198.51.100.21) is still there, and it's still getting included in the Invite message and SDP negotiations between my telephones.<br>
<br>
So, how can I run FreeSwitch and two SIP telephones on a single internal network, without any reference to my public IP address?<br>
<br>
<br>
Thanks,<br>
<br>
<br>
Antony.<br>
<br>
-- <br>
"640 kilobytes (of RAM) should be enough for anybody."<br>
<br>
 - Bill Gates<br>
<br>
                                                   Please reply to the list;<br>
                                                         please *don't* CC me.<br>
<br>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
<br>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><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 style="font-size:12.8px"><font color="#000000"><br></font></div><div style="font-size:12.8px"><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">Brian West | Co-founder and Developer</font></span></p><p style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">Need Commercial support? email <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a> </font></span></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">FreeSWITCH Solutions | <a href="https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g" style="color:rgb(17,85,204)" target="_blank">17345 Civic Drive #2531 Brookfield, WI 53045</a></font></span></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><font color="#000000"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Email: </span><span style="color:rgb(17,85,204);font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><a href="mailto:brian@freeswitch.com" target="_blank">brian@freeswitch.com</a></span></font></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">Mobile: <span title="Call with Google Voice">918-424-9378</span></font></span></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><font color="#000000"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Website: </span><a href="https://www.freeswitch.com/" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">https://www.FreeSWITCH.com</span></a></font></p><p dir="ltr" style="font-size:12.8px;line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="background-color:transparent;font-size:9pt;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"><a href="https://www.facebook.com/freeswitch" target="_blank"><img alt="https://www.facebook.com/signalwireinc?src=email" src="https://lh6.googleusercontent.com/AYfRoSNaDNtMPRMevPn_GqcVEMd5NDRFi0GlluGUWzV6I5TAY_3T2-Tt0IuIXeUtEdYsgNsM8DOYKRKhjmrG_-n2Ga-LCnoNk46sO8VyEma1sBFYdiGJcLRUvkrD1CYHN79qimeg" width="31" height="31" style="border: none;"></a> </span><span style="background-color:transparent;font-size:9pt;font-family:Tahoma;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"><a href="https://twitter.com/freeswitch" target="_blank"><img alt="https://twitter.com/freeswitch" src="https://lh3.googleusercontent.com/W4SqXyybH2qdAozvtoKjcz736qOjk9LHDwldvs1ahc-WVU0putVMSsUH474KDrJ32jsqi6JDjyUWxqeEkN5I1xSlC5ShYrd1b8NIMUkDzDrtbWQfa6A_90UcygqesBtRLgeFirKa" width="31" height="31" style="border: none;"></a></span><br></p></div></div></div></div></div></div></div></div></div></div></div></div></div>