<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Im following your advice now, and dont add record-route headers. </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Im trying an outbound call ( teams -> pstn ) and it disconnects soon after freeswitch sends the OK.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Here is the OK: </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">send 1695 bytes to tls/[52.114.75.24]:10176 at 07:12:26.210854:</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">------------------------------------------------------------------------</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">SIP/2.0 200 OK</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">Via: SIP/2.0/TLS 52.114.75.24:5061;branch=z9hG4bKbc16542e;rport=10176</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">Record-Route: <sip:sip-du-a-eu.pstnhub.microsoft.com:5061;transport=tls;lr></span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">FROM: Stefan Kainz<sip:+FROMNUMBER@sip.pstnhub.microsoft.com:5061;user=phone>;tag=b88e3a220f48472cb452fec5fe46579e</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">To: <sip:+TONUMBER@xxx.example.at:5061;user=phone>;tag=9FFZm2y4cBmrS</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">CALL-ID: 6a933a0ac454552081ca931b3daf42de</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">CSEQ: 1 INVITE</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">Contact: <sip:+TONUMBER@xxx.xxx.xxx.xxx:5061;transport=tls></span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">User-Agent: TTG01 1.0</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">Accept: application/sdp</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, NOTIFY</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">Require: timer</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">Supported: timer, path, replaces</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">Allow-Events: talk, hold, conference, refer</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">Session-Expires: 3600;refresher=uac</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">Content-Type: application/sdp</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">Content-Disposition: session</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">Content-Length: 801</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">P-Asserted-Identity: "+TONUMBER" <sip:+TONUMBER@xxx.example.at></span></p>
<p class="p2" style="margin: 0px; font: 11px Menlo; min-height: 13px"><span class="s1" style="font-variant-ligatures: no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">v=0</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">o=FreeSWITCH 1601512094 1601512095 IN IP4 xxx.xxx.xxx.xxx</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">s=FreeSWITCH</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">c=IN IP4 xxx.xxx.xxx.xxx</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">t=0 0</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">a=msid-semantic: WMS pGvDw5lMt7NEFur7TOXy5dyI4XJtq8cF</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">m=audio 17052 RTP/SAVP 0 101</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">a=rtpmap:0 PCMU/8000</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">a=rtpmap:101 telephone-event/8000</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">a=fmtp:101 0-16</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">a=ptime:20</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">a=rtcp-mux</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">a=rtcp:17052 IN IP4 xxx.xxx.xxx.xxx</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">a=ice-ufrag:czL8C9GwWgQdfSIK</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">a=ice-pwd:gICzT6c1eiFHGhUJGvI8vevi</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">a=candidate:2023834489 1 udp 659136 xxx.xxx.xxx.xxx 17052 typ host generation 0</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">a=end-of-candidates</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">a=ssrc:1804998514 cname:Fy91tlEMiigNDyLm</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">a=ssrc:1804998514 msid:pGvDw5lMt7NEFur7TOXy5dyI4XJtq8cF a0</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">a=ssrc:1804998514 mslabel:pGvDw5lMt7NEFur7TOXy5dyI4XJtq8cF</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">a=ssrc:1804998514 label:pGvDw5lMt7NEFur7TOXy5dyI4XJtq8cFa0</span></p>
<p class="p1" style="margin: 0px; font: 11px Menlo"><span class="s1" style="font-variant-ligatures: no-common-ligatures">a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:aoXrZjxmNQmdkxShUkmMO526J+5laS1UL8ZWiKyS</span></p>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I compared it with your examples, and noticed that i have an ip-address in contact-header, you on the other hand have a domain. </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Do you think that could be the problem?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
regards, </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></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>Von:</b> David Horton <daveh@drachtio.org><br>
<b>Gesendet:</b> Mittwoch, 23. September 2020 19:24<br>
<b>An:</b> Stefan Kainz <s.kainz@wnt.at><br>
<b>Cc:</b> FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org><br>
<b>Betreff:</b> Re: [Freeswitch-users] Microsoft Teams integration</font>
<div> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">In my implementation I am using a drachtio server (<a href="https://drachtio" class="">https://drachtio</a>.org), more specifically configured as part of the jambonz CPaaS platform I build
 (<a href="https://docs.jambonz.org/teams/" class="">https://docs.jambonz.org/teams/</a>)
<div class=""><br class="">
</div>
<div class="">A Record-Route header only makes sense if you are creating a sip proxy, AFAIC.  In my implementation I built a B2BUA so on requests I send to Teams there is no RR.  Of course, on responses I preserve their RR headers.</div>
<div class=""><br class="">
</div>
<div class="">For your scenario, I think I passed on the trace but just in case here is a link to it again: <a href="https://gist.github.com/davehorton/9ea3d79e8eeda3cbb5e2e87209dcfe63" class="">https://gist.github.com/davehorton/9ea3d79e8eeda3cbb5e2e87209dcfe63</a></div>
<div class=""><br class="">
</div>
<div class="">One question: for the domain you are putting in the Contact header of your 200 OK response, does that resolve to a single server or multiple?  I have found in the latter case Teams will gladly send a mid-call request to a different server that
 heretofore was not involved in the call at all.  On the server that initially handled the call, it will simply look like Teams is not being responsive..</div>
<div class=""><br class="">
</div>
<div class="">Dave<br class="">
<div><br class="">
<div class="">On Sep 23, 2020, at 3:56 AM, Stefan Kainz <<a href="mailto:s.kainz@wnt.at" class="">s.kainz@wnt.at</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="x_WordSection1" style="font-family:Tahoma; font-size:14px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="">Thank you for your Answer!</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class=""> </span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="">May I ask what kind of SBC you are using?</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="">We also use Audiocodes SBC’s, which are working great, but even those send Record-Route Headers.</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class=""> </span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="">Maybe I need to explain the szenario a little better…</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="">In the teams client I dial an external number ( my mobile phone for example )</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="">I pick up, and then push hold in the teams client. ( So far so good )</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="">When I try to unhold, of course also in teams, it becomes silent on both ends. ( even the moh stops )</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class=""> </span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="">And then as I said I see a few OK Messages being retransmitted to the Microsoft servers.</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class=""> </span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="">Its funny that you say you don’t need Record-Route Headers at all, because without setting those, I cant even make incoming calls work.</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="">With those headers, everything works perfectly except for the thing explained above.</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="">Even when trying to get incoming calls back from hold on teams. ( PSTN – freeswitch – teams, hold / unhold on teams )</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class=""> </span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="">I also found a tutorial from kamailio on how to connect it to teams.</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="">There they also state that the record-route headers a needed.</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class=""><a href="https://skalatan.de/en/blog/kamailio-sbc-teams" class="" style="color:blue; text-decoration:underline">https://skalatan.de/en/blog/kamailio-sbc-teams</a></span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class=""> </span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="">Thank you again David!</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class=""> </span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="">Regards,</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="">Stefan</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class=""> </span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class=""> </span></div>
<div class="">
<div class="" style="border-style:solid none none; border-top-width:1pt; border-top-color:rgb(225,225,225); padding:3pt 0cm 0cm">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<b class=""><span lang="EN-US" class="">From:</span></b><span lang="EN-US" class=""><span class="x_Apple-converted-space"> </span>David Horton <<a href="mailto:daveh@drachtio.org" class="">daveh@drachtio.org</a>><span class="x_Apple-converted-space"> </span><br class="">
<b class="">Sent:</b><span class="x_Apple-converted-space"> </span>Montag, 21. September 2020 22:36<br class="">
<b class="">To:</b><span class="x_Apple-converted-space"> </span>FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" class="">freeswitch-users@lists.freeswitch.org</a>><br class="">
<b class="">Cc:</b><span class="x_Apple-converted-space"> </span>Stefan Kainz <<a href="mailto:s.kainz@wnt.at" class="">s.kainz@wnt.at</a>><br class="">
<b class="">Subject:</b><span class="x_Apple-converted-space"> </span>Re: [Freeswitch-users] Microsoft Teams integration</span></div>
</div>
</div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
 </div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
It has not been my experience that Microsoft Teams direct routing requires a Record-Route header on requests / responses you send to it (though their requests will have an RR and you must Route accordingly)</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
 </div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
Here is a sip trace showing a successful on-hold / off-hold scenario from one of my servers (not a freeswitch server).  This is an on-hold triggered from the MS teams client, not sure if you are trying to do the reverse.</div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
 </div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
One thing: make sure the Contact header in your INVITEs resolve to a single server, otherwise (if you have mutiple A records for the DNS name) you will find that MS Teams will gladly respond to a reINVITE to a completely different server than you sent from
 — this will manifest as not seeing the 200 OK to a re-INVITE you send, or not seeing the ACK when you respond 200 OK to a re-INVITE.</div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
 </div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
daveh</div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
 </div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
One thing to make sure of is that </div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
 </div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
On Sep 20, 2020, at 12:05 PM, Stefan Kainz <<a href="mailto:s.kainz@wnt.at" class="" style="color:blue; text-decoration:underline">s.kainz@wnt.at</a>> wrote:</div>
</div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
 </div>
<div class="">
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt">Hello, </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt"> </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt">we're trying to use Freeswitch as a Microsoft Teams direct routing SBC.</span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt"> </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt">So far everything works perfectly, except getting the call back from hold on an outbound call. </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt">The Problem is that Microsoft expects a Record-Route Header in every Request and every Response.</span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt">I have been able to set/rewrite this Record-Route header with sip_h_ and sip_rh_ in most szenarios, but like i said - unhold on an outgoing call does not work.</span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt"> </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt">The hold is initiated with a reinvite with a=inactive in sdp, which does work. </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt">However, the unhold - also a reinvite with a=sendrecv in sdp does not work correctly.</span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt">In the sip-trace i see that the OK ( in response to the INVITE for unhold ) gets retransmitted a couple of times, because the ACK from microsoft isn't received. </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt"> </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt">This is due to the missing Record-Route Header in the OK Message.</span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt">I have seen this behavior on inbound calls too, when i didnt set the Record-Route Header.</span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt"> </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt">Now my question:</span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt">Is there any way to add the Record-Route Header to every Message on a sip-profile or gateway? </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt">Or if not, is it possible to handle a reinvite in dialplan so i could set the header manually?</span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt">Maybe there is somebody who already has this working that could point me in the right direction.</span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt"> </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt">I know freeswitch isn't a SBC, but it would be nice to be able to use freeswitch as a Teams-SBC without Kamailio or something similar.</span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt"> </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt">Any help is very much appreciated<span class="x_apple-converted-space"> </span></span><span class="" style="font-size:12pt; font-family:"Segoe UI Emoji",sans-serif">🙂</span><span class="" style="font-size:12pt"></span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt"> </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt">regards, </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt">Stefan</span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt"> </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt"> </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt"> </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt"> </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt"> </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt"> </span></div>
</div>
<div class="">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:12pt"> </span></div>
</div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif">_________________________________________________________________________<br class="">
<br class="">
The FreeSWITCH project is sponsored by SignalWire<span class="x_apple-converted-space"> </span></span><a href="https://signalwire.com/" class="" style="color:blue; text-decoration:underline"><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif">https://signalwire.com</span></a><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif"><br class="">
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br class="">
Build your next product on our scalable cloud platform.<br class="">
<br class="">
Join our online community to chat in real time<span class="x_apple-converted-space"> </span></span><a href="https://signalwire.community/" class="" style="color:blue; text-decoration:underline"><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif">https://signalwire.community</span></a><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif"><br class="">
<br class="">
Professional FreeSWITCH Services<br class="">
</span><a href="mailto:sales@freeswitch.com" class="" style="color:blue; text-decoration:underline"><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif">sales@freeswitch.com</span></a><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif"><br class="">
</span><a href="https://freeswitch.com/" class="" style="color:blue; text-decoration:underline"><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif">https://freeswitch.com</span></a><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif"><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
</span><a href="https://freeswitch.com/oss" class="" style="color:blue; text-decoration:underline"><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif">https://freeswitch.com/oss</span></a><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif"><br class="">
</span><a href="https://freeswitch.org/confluence" class="" style="color:blue; text-decoration:underline"><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif">https://freeswitch.org/confluence</span></a><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif"><br class="">
</span><a href="https://cluecon.com/" class="" style="color:blue; text-decoration:underline"><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif">https://cluecon.com</span></a><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif"><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
</span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="" style="color:blue; text-decoration:underline"><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif">FreeSWITCH-users@lists.freeswitch.org</span></a><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif"><br class="">
</span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" class="" style="color:blue; text-decoration:underline"><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</span></a><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif"><br class="">
UNSUBSCRIBE:</span><a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" class="" style="color:blue; text-decoration:underline"><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif">http://lists.freeswitch.org/mailman/options/freeswitch-users</span></a><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif"><br class="">
</span><a href="https://freeswitch.com/" class="" style="color:blue; text-decoration:underline"><span class="" style="font-size:10.5pt; font-family:Tahoma,sans-serif">https://freeswitch.com</span></a></div>
</div>
</div>
</div>
</div>
</div>
</div>
<br class="">
</div>
</div>
</body>
</html>