<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>
</p>
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 14px;" lang="x-unicode">Hello,
<br>
<br>
is it possible to add (configuration option/variable?) Contact
header to outgoing gateway ping messages sent by Freeswitch?
<br>
<br>
Remote SIP peer is answering "403 forbidden" as there is no
Contact header present in SIP OPTIONS.
<br>
Not a big deal since FS sees the peer as available/UP anyway but
could be a interoperability enhancement between FS and Microsoft
Direct routing service (<a class="moz-txt-link-freetext"
href="https://aka.ms/dr/">https://aka.ms/dr/</a>).
<br>
<br>
Here are the requirements:
<br>
• Must: When placing calls to the Direct Routing interface, the
'CONTACT' header must have the SBC FQDN in the URI hostname
<br>
• Syntax: Contact: <phone number>@<FQDN of the
SBC>:<SBC Port>;<transport type>
<br>
• If the parameter is not configured correctly, OPTIONS are
rejected with a '403 Forbidden' message
<br>
<br>
Freeswitch log:
<br>
<br>
OPTIONS <a class="moz-txt-link-freetext"
href="sip:sip-du-a-euno.pstnhub.microsoft.com;transport=tls">sip:sip-du-a-euno.pstnhub.microsoft.com;transport=tls</a>
SIP/2.0
<br>
Via: SIP/2.0/TLS x.x.x.x;branch=z9hG4bKvjX0rU7K5QtKS
<br>
Max-Forwards: 70
<br>
From: <a class="moz-txt-link-rfc2396E" href="sip:sbc.xxx.xx"><sip:sbc.xxx.xx></a>;tag=0aB5jm3SF07ve
<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:sbc.xxx.xx"><sip:sbc.xxx.xx></a>
<br>
Call-ID: 101b723c-3113-1237-6092-00155d000d46
<br>
CSeq: 128016309 OPTIONS
<br>
User-Agent: FreeSWITCH-mod_sofia/1.8.1-2-4f54cff36a~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>
SIP/2.0 403 Forbidden
<br>
FROM: <a class="moz-txt-link-rfc2396E" href="sip:sbc.xxx.xx"><sip:sbc.xxx.xx></a>;tag=0aB5jm3SF07ve
<br>
TO: <a class="moz-txt-link-rfc2396E" href="sip:sbc.xxx.xx"><sip:sbc.xxx.xx></a>
<br>
CSEQ: 128016309 OPTIONS
<br>
CALL-ID: 101b723c-3113-1237-6092-00155d000d46
<br>
VIA: SIP/2.0/TLS x.x.x.x;branch=z9hG4bKvjX0rU7K5QtKS
<br>
REASON:
Q.850;cause=21;text="4da4bb47-5ace-41b2-ba4b-6516fb4771c2;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.2018.9.10.4 i.EUNO.4
<br>
<br>
<br>
Thanks.
<br>
BR,
<br>
Sebastian
<br>
<br>
<br>
<br>
<br>
</div>
</body>
</html>