<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">why would you want to do this?<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 9, 2018, at 12:33 AM, E Chu <<a href="mailto:freeswitch-users@enlai.net" class="">freeswitch-users@enlai.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><span style="font-size:12.800000190734863px" class="">Hi all,</span><div style="font-size:12.800000190734863px" class=""><br class=""></div><div style="font-size:12.800000190734863px" class="">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? </div><div style="font-size:12.800000190734863px" class=""><br class=""></div><div style="font-size:12.800000190734863px" class="">The domain is set to FQDN in vars.xml:</div><div style="font-size:12.800000190734863px" class=""><br class=""></div><div style="font-size:12.800000190734863px" class=""><div class="">[hostnames and IPs changed for public list privacy]</div><div class=""><br class=""></div></div><div style="font-size:12.800000190734863px" class=""><X-PRE-PROCESS cmd=“set” data="domain=<a href="http://fs-dev1.sipserver.com/" target="_blank" class="">fs-dev1.<wbr class="">sipserver.com</a>"/><br class=""></div><div style="font-size:12.800000190734863px" class=""><br class=""></div><div style="font-size:12.800000190734863px" class="">i.e. but this is what FS is sending in the 200:</div><div style="font-size:12.800000190734863px" class=""><br class=""></div><div style="font-size:12.800000190734863px" class="">Contact: <<a href="http://sip:123123123@1.2.3.4:5060/" class="">sip:123123123@1.2.3.4:5060</a>;<wbr class="">transport=tcp></div><div style="font-size:12.800000190734863px" class=""><br class=""></div><div style="font-size:12.800000190734863px" class="">I’d like it to be:</div><div style="font-size:12.800000190734863px" class=""><br class=""></div><div style="font-size:12.800000190734863px" class="">Contact: <<a href="sip:123123123@fs-dev1" class="">sip:123123123@fs-dev1</a>.<wbr class=""><a href="http://sipserver.com:5060" class="">sipserver.com:5060</a>;transport=<wbr class="">tcp></div><div style="font-size:12.800000190734863px" class=""><br class=""></div><div style="font-size:12.800000190734863px" class="">This is the full 200 response from FS:</div><div style="font-size:12.800000190734863px" class=""><br class=""></div><div style="font-size:12.800000190734863px" class=""><div class="">SIP/2.0 200 OK</div><div class="">Via: SIP/2.0/TCP 192.168.0.1:52631;rport=42810;<wbr class="">branch=<wbr class="">z9hG4bKPjwPkMUAMcou1XPnDrrWJH9<wbr class="">GDwdlaPKXCF;alias;received=2.<wbr class="">3.4.5</div><div class="">From: "1020" <<a href="mailto:sip%3A1020@fs-dev1.sipserver.com" target="_blank" class="">sip:1020@fs-dev1.sipserver.<wbr class="">com</a>>;tag=h9ydSS-<wbr class="">jO2dQ7xT8yxpVcLu-appl6Xtl</div><div class="">To: <<a href="mailto:sip%3A123123123@fs-dev1.sipserver.com" target="_blank" class="">sip:123123123@fs-dev1.<wbr class="">sipserver.com</a>>;tag=<wbr class="">vXtN8yZgtHy0B</div><div class="">Call-ID: Y3tWlOhNz3f9bt-uHO-<wbr class="">LjFjh2RQwQh9l</div><div class="">CSeq: 13167 INVITE</div><div class="">Contact: <<a href="http://sip:123123123@1.2.3.4:5060/" class="">sip:123123123@1.2.3.4:5060</a>;<wbr class="">transport=tcp> //HOW TO GET THIS TO USE FQDN</div><div class="">User-Agent: FreeSWITCH-mod_sofia/1.6.16~<wbr class="">64bit</div><div class="">Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE</div><div class="">Require: timer</div><div class="">Supported: timer, path, replaces</div><div class="">Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer</div><div class="">Session-Expires: 120;refresher=uac</div><div class="">Content-Type: application/sdp</div><div class="">Content-Disposition: session</div><div class="">Content-Length: 248</div><div class="">Remote-Party-ID: “123123123" <<a href="mailto:sip%3A123123123@fs-dev1.sipserver.com" target="_blank" class="">sip:123123123@fs-dev1.<wbr class="">sipserver.com</a>>;party=calling;<wbr class="">privacy=off;screen=no</div><div class=""><br class=""></div><div class="">v=0</div><div class="">o=FreeSWITCH 1522636701 1522636702 IN IP4 1.2.3.4</div><div class="">s=FreeSWITCH</div><div class="">c=IN IP4 1.2.3.4</div><div class="">t=0 0</div><div class="">m=audio 18966 RTP/AVP 0 96</div><div class="">a=rtpmap:0 PCMU/8000</div><div class="">a=rtpmap:96 telephone-event/8000</div><div class="">a=fmtp:96 0-16</div><div class="">a=ptime:20</div><div class="">a=rtcp:18967 IN IP4 1.2.3.4</div></div><div style="font-size:12.800000190734863px" class=""><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>