Hi, 

Thanks for the response. I managed to fix this by just adding a check in my route block based on incoming BYE message and simply relayed it:

 if (is_method("BYE") && $ua=~"FreeSwitch BOX/v1\\.0") {

               t_relay();
               exit;

             }

This fixed my issue.

Some other minor tweaks that I applied:

For blind and attended call transfers from MS Teams, I had to disable REFER support towards MS Teams, then you will be able to perform any kind of transfer from the Teams client. 

Teams require SBC FQDN in the CONTACT header of the INVITE and 200 OK message. 

To address the ringback tone issue for inbound calls, I converted the 183 response with SDP into a 180 response without SDP and relayed it towards my PSTN route. 

After all, configuring Kamailio with MS Teams was a good learning experience; it works like a charm and opens door to many interesting interop scenarios.



Regards, 
Shah Hussain

From: Kjartan S via sr-users <sr-users@lists.kamailio.org>
Sent: Friday, March 15, 2024 4:23 PM
To: sr-users@lists.kamailio.org <sr-users@lists.kamailio.org>
Cc: Kjartan S <kjartan.solli@intility.no>
Subject: [SR-Users] Re: Need guidance on Teams interop with Kamailio
 
Your Kamailio is using the RURI for routing the BYE and not RR header.
My tip is to xlog your Kamailio config in order to see if the subsequent BYE request will run the loose_route function inside your route[WITHINDLG].
if (loose_route()) {
                if (is_method("BYE")) {
xlog("L_INFO","Running loose route for subsequent BYE request from $si : $sp \n");
}

I also recommend not to remove any record route headers when engaging with MS Teams - so do not remove any RR header and make sure your FreePBX include record route header originally received from Teams.

Regarding the call disconnect: Might be that the corresponding ACK or the 200 OK (depending on Teams being UAC/UAS`) is not handled from MS Teams side. Again, make sure not to replace to much of the headers received from Teams apart from what is mentioned in the MS Teams Kamailio guide.
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe: