[Freeswitch-users] How to configure Freeswitch for SIP over WebSocket behind server-side NAT?
Bernhard Wendel
bernhard at zeppelindesk.com
Tue Jun 24 22:37:00 MSD 2014
Hi all,
after all, I found the problem. When I directly forward the WS
connection (without nginx as reverse proxy), there are no issues at all.
Using my first configuration, the IP FreeSWITCH saw as the originator of
the ws connection was the Gateway-IP. With my current configuration FS
sees the servers public IP which is enough to report the public IP.
Will the X-Forwarded-For header be supported in the near future?
Regards
Bernhard
Am 23.06.2014 18:48, schrieb Bernhard Wendel:
> Hi Brian,
>
> that didn't helped. I already had that param in my configuration, but
> even when specifying the exact public IP, FreeSWICTCH still uses the
> private one on WebSocket.
> I even tried with agressive-nat-detection, but that didn't worked either.
>
> Here is the output of "sofia status profile internal" which shows the
> public IP in Ext-RTP-IP and Ext-SIP-IP:
>
> Dialplan XML
> Context public
> Challenge Realm auto_from
> RTP-IP 172.XX.0.3
> Ext-RTP-IP 8X.XX.XX.XX
> SIP-IP 172.XX.0.3
> Ext-SIP-IP 8X.XX.XX.XX
> URL sip:mod_sofia at 8X.XX.XX.XX:5060
> BIND-URL sip:mod_sofia at 8X.XX.XX.XX:5060;maddr=172.XX.0.3;transport=udp,tcp
> WS-BIND-URL sip:mod_sofia at 172.XX.0.3:5066;transport=ws
> HOLD-MUSIC local_stream://moh
> OUTBOUND-PROXY N/A
>
> Can someone please confirm, that the WS-BIND-URL looks correctly?
>
> Thanks
> Bernhard
>
> Am 22.06.2014 22:05, schrieb Brian West:
>> Use ext-rtp-ip to fix that
>>
>> Sent from my iPhone
>>
>>> On Jun 21, 2014, at 4:42 PM, Bernhard Wendel <bernhard at zeppelindesk.com> wrote:
>>>
>>> <param name="ext-sip-ip" value="$${external_rtp_ip}"/>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list