<div><div class="gmail_quote"><div>Hi Michael,</div><div dir="auto"><br></div><div dir="auto">The SIP client is an iOS app behind a NAT64 network interfacing to Freeswitch which is on an IPV4 network. </div><div dir="auto"><br></div><div dir="auto">In order for the 200 from FS to be properly acknowledged, the client needs to send the ACK to the host in the Contact field of the 200. </div><div dir="auto"><br></div><div dir="auto">However, if the Contact of the 200 contains the IPV4 address of FS, the client isn't able to send the ACK to the IPV4 address from the NAT64 network. </div><div dir="auto"><br></div><div dir="auto">So we're hoping that we can get FS to send its FQDN in the Contact field of the 200. </div><div dir="auto"><br></div><div dir="auto">Any suggestions appreciated. </div><div dir="auto"><br></div><div dir="auto">Thanks!</div><div dir="auto"><br></div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---------- Forwarded message ----------<br>From: Michael Jerris <<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>><br>To: FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>Cc: <br>Bcc: <br>Date: Mon, 9 Apr 2018 12:17:21 -0400<br>Subject: Re: [Freeswitch-users] How to get 200 Contact to use FQDN instead of IP<br><div style="word-wrap:break-word">why would you want to do this?<div><br><div><blockquote type="cite"><div>On Apr 9, 2018, at 12:33 AM, E Chu <<a href="mailto:freeswitch-users@enlai.net" target="_blank">freeswitch-users@enlai.net</a>> wrote:</div><br class="m_8979031039497384225Apple-interchange-newline"><div><div><span style="font-size:12.800000190734863px">Hi all,</span><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">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"><br></div><div style="font-size:12.800000190734863px">The domain is set to FQDN in vars.xml:</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px"><div>[hostnames and IPs changed for public list privacy]</div><div><br></div></div><div style="font-size:12.800000190734863px"><X-PRE-PROCESS cmd=“set” data="domain=<a href="http://fs-dev1.sipserver.com/" target="_blank">fs-dev1.sipserver.com</a>"/><br></div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">i.e. but this is what FS is sending in the 200:</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">Contact: <<a href="http://sip:123123123@1.2.3.4:5060/" target="_blank">sip:123123123@1.2.3.4:5060</a>;transport=tcp></div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">I’d like it to be:</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">Contact: <<a>sip:123123123@fs-dev1</a>.<a href="http://sipserver.com:5060" target="_blank">sipserver.com:5060</a>;transport=tcp></div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">This is the full 200 response from FS:</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px"><div>SIP/2.0 200 OK</div><div>Via: SIP/2.0/TCP 192.168.0.1:52631;rport=42810;branch=z9hG4bKPjwPkMUAMcou1XPnDrrWJH9GDwdlaPKXCF;alias;received=2.3.4.5</div><div>From: "1020" <<a href="mailto:sip%3A1020@fs-dev1.sipserver.com" target="_blank">sip:1020@fs-dev1.sipserver.com</a>>;tag=h9ydSS-jO2dQ7xT8yxpVcLu-appl6Xtl</div><div>To: <<a href="mailto:sip%3A123123123@fs-dev1.sipserver.com" target="_blank">sip:123123123@fs-dev1.sipserver.com</a>>;tag=vXtN8yZgtHy0B</div><div>Call-ID: Y3tWlOhNz3f9bt-uHO-LjFjh2RQwQh9l</div><div>CSeq: 13167 INVITE</div><div>Contact: <<a href="http://sip:123123123@1.2.3.4:5060/" target="_blank">sip:123123123@1.2.3.4:5060</a>;transport=tcp> //HOW TO GET THIS TO USE FQDN</div><div>User-Agent: FreeSWITCH-mod_sofia/1.6.16~64bit</div><div>Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE</div><div>Require: timer</div><div>Supported: timer, path, replaces</div><div>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>Session-Expires: 120;refresher=uac</div><div>Content-Type: application/sdp</div><div>Content-Disposition: session</div><div>Content-Length: 248</div><div>Remote-Party-ID: “123123123" <<a href="mailto:sip%3A123123123@fs-dev1.sipserver.com" target="_blank">sip:123123123@fs-dev1.sipserver.com</a>>;party=calling;privacy=off;screen=no</div><div><br></div><div>v=0</div><div>o=FreeSWITCH 1522636701 1522636702 IN IP4 1.2.3.4</div><div>s=FreeSWITCH</div><div>c=IN IP4 1.2.3.4</div><div>t=0 0</div><div>m=audio 18966 RTP/AVP 0 96</div><div>a=rtpmap:0 PCMU/8000</div><div>a=rtpmap:96 telephone-event/8000</div><div>a=fmtp:96 0-16</div><div>a=ptime:20</div><div>a=rtcp:18967 IN IP4 1.2.3.4</div></div><div style="font-size:12.800000190734863px"><br></div></div></div></blockquote></div><br></div></div>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div></div>