[Freeswitch-users] Reply to Via

Carsten Bock carsten at ng-voice.com
Thu Feb 11 10:41:53 UTC 2021


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/[]:36835 at 10:20:56.652918:
INVITE sip:ann-early at SIP/2.0
Record-Route: <sip:;lr>
Via: SIP/2.0/UDP;branch=z9hG4bKe305.92946d84.0
Via: SIP/2.0/UDP

send 366 bytes to udp/[]:5070 at 10:20:56.659313:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP
From: <sip:b2bua at;transport=UDP>;tag=7793d52b
To: <sip:3 at>
Call-ID: akjc99KAbZfHxXHSea_iTQ..
Content-Length: 0

Is there a way, to make FreeSwitch simply reply to the Host/Port in the

My Profile is rather simple and I tried it with setting the local network
ACS and NDLB-force-rport:

    <profile name="local">
   <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:"/>
        <param name="sip-port" value="5080"/>
        <param name="rtp-ip" value="$${local_address}"/>
        <param name="ext-rtp-ip" value="autonat:"/>
        <param name="auth-calls" value="false"/>

Changing "NDLB-force-rport" to false did not have any impact.


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20210211/e8003fbe/attachment.html>

More information about the FreeSWITCH-users mailing list