[Freeswitch-users] How to get 200 Contact to use FQDN instead of IP

E Chu freeswitch-users at enlai.net
Mon Apr 9 04:33:23 UTC 2018


Hi all,

Does anyone know how I can get FS to respond with a FQDN instead of an IP
address in the contact field of the 200?

The domain is set to FQDN in vars.xml:

[hostnames and IPs changed for public list privacy]

<X-PRE-PROCESS cmd=“set” data="domain=fs-dev1.sipserver.com"/>

i.e. but this is what FS is sending in the 200:

Contact: <sip:123123123 at 1.2.3.4:5060;transport=tcp>

I’d like it to be:

Contact: <sip:123123123 at fs-dev1.sipserver.com:5060;transport=tcp>

This is the full 200 response from FS:

SIP/2.0 200 OK
Via: SIP/2.0/TCP 192.168.0.1:52631;rport=42810;branch=
z9hG4bKPjwPkMUAMcou1XPnDrrWJH9GDwdlaPKXCF;alias;received=2.3.4.5
From: "1020" <sip:1020 at fs-dev1.sipserver.com>;tag=h9ydSS-
jO2dQ7xT8yxpVcLu-appl6Xtl
To: <sip:123123123 at fs-dev1.sipserver.com>;tag=vXtN8yZgtHy0B
Call-ID: Y3tWlOhNz3f9bt-uHO-LjFjh2RQwQh9l
CSeq: 13167 INVITE
Contact: <sip:123123123 at 1.2.3.4:5060;transport=tcp> //HOW TO GET THIS TO
USE FQDN
User-Agent: FreeSWITCH-mod_sofia/1.6.16~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER,
REFER, NOTIFY, PUBLISH, SUBSCRIBE
Require: timer
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog,
line-seize, call-info, sla, include-session-description, presence.winfo,
message-summary, refer
Session-Expires: 120;refresher=uac
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 248
Remote-Party-ID: “123123123" <sip:123123123 at fs-dev1.sipserver.com
>;party=calling;privacy=off;screen=no

v=0
o=FreeSWITCH 1522636701 1522636702 IN IP4 1.2.3.4
s=FreeSWITCH
c=IN IP4 1.2.3.4
t=0 0
m=audio 18966 RTP/AVP 0 96
a=rtpmap:0 PCMU/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-16
a=ptime:20
a=rtcp:18967 IN IP4 1.2.3.4



Any ideas please?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180409/78c303e8/attachment.html>


More information about the FreeSWITCH-users mailing list