VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
carsten at ng-voice.com Guest
|
Posted: Tue Feb 16, 2021 5:51 am Post subject: [Freeswitch-users] Reply to Via |
|
|
Hi,
I have a quick NAT related question.
Is there a way to disable NAT handling completely?
FreeSwitch always replies to the IP/Port were it received the message from and not to the host/port in Via....
recv 1166 bytes from udp/[172.17.0.1]:36835 at 10:20:56.652918:
------------------------------------------------------------------------
INVITE sip:ann-early@167.99.136.226:5080 SIP/2.0
Record-Route: <sip:167.99.136.226:5070;lr>
Via: SIP/2.0/UDP 167.99.136.226:5070;branch=z9hG4bKe305.92946d84.0
Via: SIP/2.0/UDP 192.168.178.52:37350;received=93.221.23.15;branch=z9hG4bK-524287-1---936bd2b8103acd0c;rport=37350
[...]
send 366 bytes to udp/[172.17.0.1]:5070 at 10:20:56.659313:
------------------------------------------------------------------------
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 167.99.136.226:5070;branch=z9hG4bKe305.92946d84.0;received=172.17.0.1
From: <sip:b2bua@167.99.136.226:5070;transport=UDP>;tag=7793d52b
To: <sip:3@167.99.136.226:5070>
Call-ID: akjc99KAbZfHxXHSea_iTQ..
CSeq: 1 INVITE
User-Agent: FreeSWITCH-mod_sofia/1.10.5-release+git-20201002T121516Z~a1bfb14c04~64bit
Content-Length: 0
Is there a way, to make FreeSwitch simply reply to the Host/Port in the Via-Header?
My Profile is rather simple and I tried it with setting the local network ACS and NDLB-force-rport:
<profile name="local">
<settings>
<param name="local-network-acl" value="none"/>
<param name="NDLB-force-rport" value="disabled"/>
<param name="context" value="local"/>
<param name="sip-ip" value="$${local_address}"/>
<param name="ext-sip-ip" value="autonat:167.99.136.226"/>
<param name="sip-port" value="5080"/>
<param name="rtp-ip" value="$${local_address}"/>
<param name="ext-rtp-ip" value="autonat:167.99.136.226"/>
<param name="auth-calls" value="false"/>
</settings>
</profile>
Changing "NDLB-force-rport" to false did not have any impact.
Thanks,
Carsten
--
Carsten Bock I CTO & Founder
ng-voice GmbH
Trostbrücke 1 I 20457 Hamburg I Germany
T +49 40 524 75 93-40 | M +49 179 2021244 I www.ng-voice.com
Registry Office at Local Court Hamburg, HRB 120189
Managing Directors: Dr. David Bachmann, Carsten Bock |
|
Back to top |
|
|
david.villasmil.work a... Guest
|
Posted: Tue Feb 16, 2021 6:14 am Post subject: [Freeswitch-users] Reply to Via |
|
|
-nonat ?
On Tue, 16 Feb 2021 at 10:00, Carsten Bock <carsten@ng-voice.com (carsten@ng-voice.com)> wrote:
Quote: | Hi,
I have a quick NAT related question.
Is there a way to disable NAT handling completely?
FreeSwitch always replies to the IP/Port were it received the message from and not to the host/port in Via....
recv 1166 bytes from udp/[172.17.0.1]:36835 at 10:20:56.652918:
------------------------------------------------------------------------
INVITE sip:ann-early@167.99.136.226:5080 SIP/2.0
Record-Route: <sip:167.99.136.226:5070;lr>
Via: SIP/2.0/UDP 167.99.136.226:5070;branch=z9hG4bKe305.92946d84.0
Via: SIP/2.0/UDP 192.168.178.52:37350;received=93.221.23.15;branch=z9hG4bK-524287-1---936bd2b8103acd0c;rport=37350
[...]
send 366 bytes to udp/[172.17.0.1]:5070 at 10:20:56.659313:
------------------------------------------------------------------------
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 167.99.136.226:5070;branch=z9hG4bKe305.92946d84.0;received=172.17.0.1
From: <sip:b2bua@167.99.136.226:5070;transport=UDP>;tag=7793d52b
To: <sip:3@167.99.136.226:5070>
Call-ID: akjc99KAbZfHxXHSea_iTQ..
CSeq: 1 INVITE
User-Agent: FreeSWITCH-mod_sofia/1.10.5-release+git-20201002T121516Z~a1bfb14c04~64bit
Content-Length: 0
Is there a way, to make FreeSwitch simply reply to the Host/Port in the Via-Header?
My Profile is rather simple and I tried it with setting the local network ACS and NDLB-force-rport:
<profile name="local">
<settings>
<param name="local-network-acl" value="none"/>
<param name="NDLB-force-rport" value="disabled"/>
<param name="context" value="local"/>
<param name="sip-ip" value="$${local_address}"/>
<param name="ext-sip-ip" value="autonat:167.99.136.226"/>
<param name="sip-port" value="5080"/>
<param name="rtp-ip" value="$${local_address}"/>
<param name="ext-rtp-ip" value="autonat:167.99.136.226"/>
<param name="auth-calls" value="false"/>
</settings>
</profile>
Changing "NDLB-force-rport" to false did not have any impact.
Thanks,
Carsten
--
Carsten Bock I CTO & Founder
ng-voice GmbH
Trostbrücke 1 I 20457 Hamburg I Germany
T +49 40 524 75 93-40 | M +49 179 2021244 I www.ng-voice.com
Registry Office at Local Court Hamburg, HRB 120189
Managing Directors: Dr. David Bachmann, Carsten Bock
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com |
--
Regards,
David Villasmilemail: david.villasmil.work@gmail.com (david.villasmil.work@gmail.com)
phone: +34669448337 |
|
Back to top |
|
|
krice at freeswitch.org Guest
|
Posted: Tue Feb 16, 2021 12:38 pm Post subject: [Freeswitch-users] Reply to Via |
|
|
-nonat only disable trying to find natpmp/upnp stuff at startup. it does not stop protocol specific nat handling (as in mod_sofia) from happening.
Make sure your NAT ACLs and and related settings are correct for your routae networks and you arent forcing some of the NDLB settings on the sofia profiles
Sent from my iPhone
Quote: | On Feb 16, 2021, at 04:15, David Villasmil <david.villasmil.work@gmail.com> wrote:
-nonat ?
On Tue, 16 Feb 2021 at 10:00, Carsten Bock <carsten@ng-voice.com (carsten@ng-voice.com)> wrote:
Quote: | Hi,
I have a quick NAT related question.
Is there a way to disable NAT handling completely?
FreeSwitch always replies to the IP/Port were it received the message from and not to the host/port in Via....
recv 1166 bytes from udp/[172.17.0.1]:36835 at 10:20:56.652918:
------------------------------------------------------------------------
INVITE sip:ann-early@167.99.136.226:5080 SIP/2.0
Record-Route: <sip:167.99.136.226:5070;lr>
Via: SIP/2.0/UDP 167.99.136.226:5070;branch=z9hG4bKe305.92946d84.0
Via: SIP/2.0/UDP 192.168.178.52:37350;received=93.221.23.15;branch=z9hG4bK-524287-1---936bd2b8103acd0c;rport=37350
[...]
send 366 bytes to udp/[172.17.0.1]:5070 at 10:20:56.659313:
------------------------------------------------------------------------
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 167.99.136.226:5070;branch=z9hG4bKe305.92946d84.0;received=172.17.0.1
From: <sip:b2bua@167.99.136.226:5070;transport=UDP>;tag=7793d52b
To: <sip:3@167.99.136.226:5070>
Call-ID: akjc99KAbZfHxXHSea_iTQ..
CSeq: 1 INVITE
User-Agent: FreeSWITCH-mod_sofia/1.10.5-release+git-20201002T121516Z~a1bfb14c04~64bit
Content-Length: 0
Is there a way, to make FreeSwitch simply reply to the Host/Port in the Via-Header?
My Profile is rather simple and I tried it with setting the local network ACS and NDLB-force-rport:
<profile name="local">
<settings>
<param name="local-network-acl" value="none"/>
<param name="NDLB-force-rport" value="disabled"/>
<param name="context" value="local"/>
<param name="sip-ip" value="$${local_address}"/>
<param name="ext-sip-ip" value="autonat:167.99.136.226"/>
<param name="sip-port" value="5080"/>
<param name="rtp-ip" value="$${local_address}"/>
<param name="ext-rtp-ip" value="autonat:167.99.136.226"/>
<param name="auth-calls" value="false"/>
</settings>
</profile>
Changing "NDLB-force-rport" to false did not have any impact.
Thanks,
Carsten
--
Carsten Bock I CTO & Founder
ng-voice GmbH
Trostbrücke 1 I 20457 Hamburg I Germany
T +49 40 524 75 93-40 | M +49 179 2021244 I www.ng-voice.com
Registry Office at Local Court Hamburg, HRB 120189
Managing Directors: Dr. David Bachmann, Carsten Bock
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com |
--
Regards,
David Villasmilemail: david.villasmil.work@gmail.com (david.villasmil.work@gmail.com)
phone: +34669448337
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
|
|
|
Back to top |
|
|
carsten at ng-voice.com Guest
|
Posted: Tue Feb 16, 2021 2:38 pm Post subject: [Freeswitch-users] Reply to Via |
|
|
Yes, FreeSwitch is started with "-nonat"...
Thanks,
Carsten--
Carsten Bock I CTO & Founder
ng-voice GmbH
Trostbrücke 1 I 20457 Hamburg I Germany
T +49 40 524 75 93-40 | M +49 179 2021244 I www.ng-voice.com
Registry Office at Local Court Hamburg, HRB 120189
Managing Directors: Dr. David Bachmann, Carsten Bock
Am Di., 16. Feb. 2021 um 11:51 Uhr schrieb David Villasmil <david.villasmil.work@gmail.com (david.villasmil.work@gmail.com)>:
|
|
Back to top |
|
|
botelist at gmail.com Guest
|
Posted: Wed Feb 17, 2021 1:07 pm Post subject: [Freeswitch-users] Reply to Via |
|
|
I think the -nonat switch only stops FS from detecting NAT during startup. FreeSWITCH can be told to be very aggressive about working through NAT using various settings.
Also, I was recently trying to solve what I believed to be a NAT problem and discovered that the various NAT settings do not do exactly what you might think. It is worth reading the wiki about them.
https://freeswitch.org/confluence/display/FREESWITCH/NAT+Traversal
That is all the help I can provide at this point, I’m afraid.
John Boteler
Bote Communications
From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Carsten Bock
Sent: Tuesday, 16 February, 2021 07:08
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Reply to Via
Yes, FreeSwitch is started with "-nonat"...
Thanks,
Carsten
--
Carsten Bock I CTO & Founder
ng-voice GmbH
Trostbrücke 1 I 20457 Hamburg I Germany
T +49 40 524 75 93-40 | M +49 179 2021244 I www.ng-voice.com
Registry Office at Local Court Hamburg, HRB 120189
Managing Directors: Dr. David Bachmann, Carsten Bock
Am Di., 16. Feb. 2021 um 11:51 Uhr schrieb David Villasmil <david.villasmil.work@gmail.com (david.villasmil.work@gmail.com)>:
|
|
Back to top |
|
|
brian at freeswitch.com Guest
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|