<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Already fixed it here:</p>
<p style="margin-top:0;margin-bottom:0"><a href="https://freeswitch.org/jira/projects/FS/issues/FS-11978?filter=reportedbyme" class="OWAAutoLink" id="LPlnk142680" previewremoved="true">https://freeswitch.org/jira/projects/FS/issues/FS-11978?filter=reportedbyme</a></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> on behalf of Tulipa Frigo <tulipa.frigo@gmail.com><br>
<b>Sent:</b> 15 August 2019 16:30:13<br>
<b>To:</b> freeswitch-users@lists.freeswitch.org <freeswitch-users@lists.freeswitch.org><br>
<b>Subject:</b> [Freeswitch-users] Teens Direct Routing - contact and record-route headers are missing</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi all,<br>
<br>
I'm trying to configure my freeswitch to send and receive calls from Teens Direct Routing . Then, I configured the SIP gateway /usr/local/freeswitch/sip_profiles/extern/gateway_teens.xml :
<div><br>
</div>
<div><include><br>
<gateway name="teens"><br>
<param name="realm" value="<a href="http://sip.pstnhub.microsoft.com:5061">sip.pstnhub.microsoft.com:5061</a>"/><br>
<param name="register" value="false"/><br>
<param name="register-transport" value="tls"/><br>
<param name="ping" value="25"/><br>
</gateway><br>
</include><br>
<br>
The Teens Direct Routing only enable the sip trunk after receive and send SIP OPTIONS with success, in both direction. The OPTIONS FLOW description from Direct Routing Configure page, <a href="https://docs.microsoft.com/en-us/microsoftteams/direct-routing-configure">https://docs.microsoft.com/en-us/microsoftteams/direct-routing-configure</a>:
"The SBC sends a OPTIONS messages to Teens Direct Routing and receives a 200OK. When Direct Routing sees incoming OPTIONS, it will start sending outgoing SIP Options messages to the SBC FQDN configured in the Contact header field in the incoming OPTIONS message
and the SBC reply with 200OK."</div>
<div><br>
The problem is that the freeswitch (SBC) is receiving the response FORBIDDEN , with reason : Q.850;cause=21;text="29175f0d-ebe8-43ea-836f-708b6d4b0d4f;Record-Route and Contact headers are missing" .</div>
<div><br>
</div>
<div>Folowing is the OPTIONS msg sent from freeswitch to Teens Direct Rounting and the response:</div>
<div><br>
------------------------------------------------------------------------<br>
send 597 bytes to tls/[52.114.76.76]:5061 at 11:10:15.890560:<br>
------------------------------------------------------------------------<br>
OPTIONS sip:sip.pstnhub.microsoft.com:5061;transport=tls SIP/2.0<br>
Via: SIP/2.0/TLS 177.53.17.168:5081;rport;branch=z9hG4bKg5DyZ09c7Bv2r<br>
Max-Forwards: 70<br>
From: <sip:<a href="http://sip.pstnhub.microsoft.com:5061">sip.pstnhub.microsoft.com:5061</a>>;tag=ge55jU7NBK1rr<br>
To: <sip:<a href="http://sip.pstnhub.microsoft.com:5061">sip.pstnhub.microsoft.com:5061</a>><br>
Call-ID: 3f0f42b7-3a09-1238-5e8a-00155d11a606<br>
CSeq: 8385268 OPTIONS<br>
User-Agent: FreeSWITCH-mod_sofia/1.8.6+git~20190606T190249Z~93b4c92e75~64bit<br>
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY<br>
Supported: timer, path, replaces<br>
Allow-Events: talk, hold, conference, refer<br>
Content-Length: 0<br>
<br>
------------------------------------------------------------------------<br>
recv 545 bytes from tls/[52.114.76.76]:5061 at 11:10:16.070876:<br>
------------------------------------------------------------------------<br>
SIP/2.0 403 Forbidden<br>
FROM: <sip:<a href="http://sip.pstnhub.microsoft.com:5061">sip.pstnhub.microsoft.com:5061</a>>;tag=ge55jU7NBK1rr<br>
TO: <sip:<a href="http://sip.pstnhub.microsoft.com:5061">sip.pstnhub.microsoft.com:5061</a>><br>
CSEQ: 8385268 OPTIONS<br>
CALL-ID: 3f0f42b7-3a09-1238-5e8a-00155d11a606<br>
VIA: SIP/2.0/TLS 177.53.17.168:5081;branch=z9hG4bKg5DyZ09c7Bv2r;rport<br>
REASON: Q.850;cause=21;text="29175f0d-ebe8-43ea-836f-708b6d4b0d4f;Record-Route and Contact headers are missing"<br>
CONTENT-LENGTH: 0<br>
ALLOW: INVITE<br>
ALLOW: ACK<br>
ALLOW: OPTIONS<br>
ALLOW: CANCEL<br>
ALLOW: BYE<br>
ALLOW: NOTIFY<br>
SERVER: Microsoft.PSTNHub.SIPProxy v.2019.7.4.9 i.EUNO.2<br>
<br>
------------------------------------------------------------------------<br>
<br>
How can I add these headers into OPTIONS msg ?<br>
<div><br>
</div>
<div>Thanks and Regards</div>
<div><br>
</div>
<div>Tulipa Frigo</div>
<div><br>
</div>
</div>
</div>
</div>
</body>
</html>