<div dir="auto">Tried removing -nonat and it didn't make a difference.<div dir="auto"><br></div><div dir="auto">I'll look into the code and try to figure this out.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 12, 2019, 13:09 David Villasmil <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">Removing -nonat?</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 12 Jun 2019 at 05:42, Dušan Dragić <<a href="mailto:dragic.dusan@gmail.com" target="_blank" rel="noreferrer">dragic.dusan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, of course, and I'm planning on doing it like that, but I was just<br>
surprised it didn't wok out of the box with the example config.<br>
<br>
I'll try to find a profile param or a var, but I haven't had any luck so far.<br>
<br>
On Wed, 12 Jun 2019 at 02:38, David Villasmil<br>
<<a href="mailto:david.villasmil.work@gmail.com" target="_blank" rel="noreferrer">david.villasmil.work@gmail.com</a>> wrote:<br>
><br>
> You can always use a different profile for internal calls, not assigning ext-sip-is or ext-rtp-ip<br>
><br>
> On Tue, 11 Jun 2019 at 19:44, David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank" rel="noreferrer">david.villasmil.work@gmail.com</a>> wrote:<br>
>><br>
>> There is a param for exactly this. Take a look in the vars or Sofia params<br>
>><br>
>> On Tue, 11 Jun 2019 at 19:12, Dušan Dragić <<a href="mailto:dragic.dusan@gmail.com" target="_blank" rel="noreferrer">dragic.dusan@gmail.com</a>> wrote:<br>
>>><br>
>>> local-network-acl was (by default) set to localnet.auto which<br>
>>> correctly detected my LAN subnet<br>
>>><br>
>>> freeswitch@deb9> acl 192.168.0.66 localnet.auto<br>
>>> true<br>
>>><br>
>>> so I didn't have high hopes for this working, but I tried it anyway.<br>
>>> Created a new acl called mylan with <a href="http://192.168.0.0/24" rel="noreferrer noreferrer" target="_blank">192.168.0.0/24</a> allowed and used it<br>
>>> for local-network-acl,<br>
>>><br>
>>> freeswitch@deb9> acl 192.168.0.66 mylan<br>
>>> true<br>
>>><br>
>>> ...<br>
>>> 2019-06-11 23:24:40.764885 [DEBUG] sofia.c:4641 local-network-acl [mylan]<br>
>>> ...<br>
>>><br>
>>> no change, it's same as before.<br>
>>><br>
>>> On Tue, 11 Jun 2019 at 08:32, Alexey Sibyakin <<a href="mailto:alex@freeswitch.com" target="_blank" rel="noreferrer">alex@freeswitch.com</a>> wrote:<br>
>>> ><br>
>>> > Hi,<br>
>>> ><br>
>>> > Long story short, try to change your "local-network-acl" to whatever will match phones from the local network.<br>
>>> ><br>
>>> > Regards,<br>
>>> ><br>
>>> > Alex<br>
>>> ><br>
>>> > Alex Sibyakin | Support Engineer SignalWire | 228 Hamilton Ave 3rd Floor, Palo Alto, CA 94303 Email: <a href="mailto:alex@freeswitch.com" target="_blank" rel="noreferrer">alex@freeswitch.com</a> Website: <a href="https://www.signalwire.com" rel="noreferrer noreferrer" target="_blank">https://www.signalwire.com</a><br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > On Tue, Jun 11, 2019 at 8:16 AM Dušan Dragić <<a href="mailto:dragic.dusan@gmail.com" target="_blank" rel="noreferrer">dragic.dusan@gmail.com</a>> wrote:<br>
>>> >><br>
>>> >> Hi,<br>
>>> >><br>
>>> >> So, after not using freeswitch for a few years, I just did a clean<br>
>>> >> install of Freeswitch 1.8.6 on debian 9 using packages from the repo<br>
>>> >> and have a small issue maybe someone can help me with.<br>
>>> >><br>
>>> >> I'm using the vanilla config here to keep it simple, also Freeswitch<br>
>>> >> is started with -nonat.<br>
>>> >><br>
>>> >> The problem I encountered is the contact field for local calls (on the<br>
>>> >> same IP subnet as freeswitch) on the internal profile contains the<br>
>>> >> external IP address which makes the phone send the response to the<br>
>>> >> wrong IP. You can find attached a complete debug log with sip trace of<br>
>>> >> a call between ext 1007 (192.168.0.66) and ext 1008 (192.168.0.65).<br>
>>> >> Freeswitch is 192.168.0.140.<br>
>>> >><br>
>>> >> The profile contains the default params:<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="$${external_rtp_ip}"/><br>
>>> >>     <param name="ext-sip-ip" value="$${external_rtp_ip}"/><br>
>>> >><br>
>>> >> This is what I get from sofia status:<br>
>>> >><br>
>>> >> freeswitch@deb9> 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.0.140,192.168.0.140<br>
>>> >> Dialplan                XML<br>
>>> >> Context                 public<br>
>>> >> Challenge Realm         auto_from<br>
>>> >> RTP-IP                  192.168.0.140<br>
>>> >> Ext-RTP-IP              93.86.XX.XX<br>
>>> >> SIP-IP                  192.168.0.140<br>
>>> >> Ext-SIP-IP              93.86.XX.XX<br>
>>> >> URL                     sip:mod_sofia@93.86.XX.XX:5060<br>
>>> >> BIND-URL<br>
>>> >> sip:mod_sofia@93.86.XX.XX:5060;maddr=192.168.0.140;transport=udp,tcp<br>
>>> >> WS-BIND-URL             <a href="mailto:sip%3Amod_sofia@192.168.0.140" target="_blank" rel="noreferrer">sip:mod_sofia@192.168.0.140</a>:5066;transport=ws<br>
>>> >> WSS-BIND-URL            <a href="mailto:sips%3Amod_sofia@192.168.0.140" target="_blank" rel="noreferrer">sips:mod_sofia@192.168.0.140</a>:7443;transport=wss<br>
>>> >> HOLD-MUSIC              local_stream://moh<br>
>>> >> OUTBOUND-PROXY          N/A<br>
>>> >> CODECS IN               OPUS,G722,PCMU,PCMA,H264,VP8<br>
>>> >> CODECS OUT              OPUS,G722,PCMU,PCMA,H264,VP8<br>
>>> >> TEL-EVENT               101<br>
>>> >> DTMF-MODE               rfc2833<br>
>>> >> CNG                     13<br>
>>> >> SESSION-TO              0<br>
>>> >> MAX-DIALOG              0<br>
>>> >> NOMEDIA                 false<br>
>>> >> LATE-NEG                true<br>
>>> >> PROXY-MEDIA             false<br>
>>> >> ZRTP-PASSTHRU           true<br>
>>> >> AGGRESSIVENAT           false<br>
>>> >> CALLS-IN                0<br>
>>> >> FAILED-CALLS-IN         0<br>
>>> >> CALLS-OUT               0<br>
>>> >> FAILED-CALLS-OUT        0<br>
>>> >> REGISTRATIONS           2<br>
>>> >><br>
>>> >><br>
>>> >> Is this the correct behavior? If I remove ext-rtp-ip and ext-sip-ip<br>
>>> >> params from the config it works, but am I missing something obvious or<br>
>>> >> is this a bug?<br>
>>> >><br>
>>> >><br>
>>> >> --<br>
>>> >> Dušan Dragić<br>
>>> >> _________________________________________________________________________<br>
>>> >><br>
>>> >> The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer 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 noreferrer" target="_blank">https://signalwire.community</a><br>
>>> >><br>
>>> >> Professional FreeSWITCH Services<br>
>>> >> <a href="mailto:sales@freeswitch.com" target="_blank" rel="noreferrer">sales@freeswitch.com</a><br>
>>> >> <a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
>>> >><br>
>>> >> Official FreeSWITCH Sites<br>
>>> >> <a href="https://freeswitch.com/oss" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
>>> >> <a href="https://freeswitch.org/confluence" rel="noreferrer noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
>>> >> <a href="https://cluecon.com" rel="noreferrer noreferrer" target="_blank">https://cluecon.com</a><br>
>>> >><br>
>>> >> FreeSWITCH-users mailing list<br>
>>> >> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> >> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer 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 noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> >> <a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
>>> ><br>
>>> > _________________________________________________________________________<br>
>>> ><br>
>>> > The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer 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 noreferrer" target="_blank">https://signalwire.community</a><br>
>>> ><br>
>>> > Professional FreeSWITCH Services<br>
>>> > <a href="mailto:sales@freeswitch.com" target="_blank" rel="noreferrer">sales@freeswitch.com</a><br>
>>> > <a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
>>> ><br>
>>> > Official FreeSWITCH Sites<br>
>>> > <a href="https://freeswitch.com/oss" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
>>> > <a href="https://freeswitch.org/confluence" rel="noreferrer noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
>>> > <a href="https://cluecon.com" rel="noreferrer noreferrer" target="_blank">https://cluecon.com</a><br>
>>> ><br>
>>> > FreeSWITCH-users mailing list<br>
>>> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer 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 noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> > <a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Dušan Dragić<br>
>>><br>
>>> _________________________________________________________________________<br>
>>><br>
>>> The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer 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 noreferrer" target="_blank">https://signalwire.community</a><br>
>>><br>
>>> Professional FreeSWITCH Services<br>
>>> <a href="mailto:sales@freeswitch.com" target="_blank" rel="noreferrer">sales@freeswitch.com</a><br>
>>> <a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
>>><br>
>>> Official FreeSWITCH Sites<br>
>>> <a href="https://freeswitch.com/oss" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
>>> <a href="https://freeswitch.org/confluence" rel="noreferrer noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
>>> <a href="https://cluecon.com" rel="noreferrer noreferrer" target="_blank">https://cluecon.com</a><br>
>>><br>
>>> FreeSWITCH-users mailing list<br>
>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer 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 noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> <a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
>><br>
>> --<br>
>> Regards,<br>
>><br>
>> David Villasmil<br>
>> email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank" rel="noreferrer">david.villasmil.work@gmail.com</a><br>
>> phone: +34669448337<br>
><br>
> --<br>
> Regards,<br>
><br>
> David Villasmil<br>
> email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank" rel="noreferrer">david.villasmil.work@gmail.com</a><br>
> phone: +34669448337<br>
> _________________________________________________________________________<br>
><br>
> The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer 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 noreferrer" target="_blank">https://signalwire.community</a><br>
><br>
> Professional FreeSWITCH Services<br>
> <a href="mailto:sales@freeswitch.com" target="_blank" rel="noreferrer">sales@freeswitch.com</a><br>
> <a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="https://freeswitch.com/oss" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
> <a href="https://freeswitch.org/confluence" rel="noreferrer noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
> <a href="https://cluecon.com" rel="noreferrer noreferrer" target="_blank">https://cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer 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 noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
<br>
<br>
-- <br>
Dušan Dragić<br>
<br>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer 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 noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank" rel="noreferrer">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer 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 noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div></div>-- <br><div dir="ltr" class="m_4270454347818362781gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank" rel="noreferrer">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer 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 noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank" rel="noreferrer">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer 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 noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>