<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hello community,<br><br>Please your support, I tell you that I am integrating Kamailio with MsTeams, after some time reviewing this, I finally achieved the connection from my Kamailio server to MsTeams and I can validate that the connection to MsTeams is in AP.<br><br>[root @ kamailio-server kamailio] # kamcmd dispatcher.list | egrep "URI | FLAGS"<br>                                        URI: sip: <a href="http://sip.pstnhub.microsoft.com">sip.pstnhub.microsoft.com</a>; transport = tls<br>                                        FLAGS: AP<br><br>However, from the admin panel of MsTeams (Direct Routing) I see that the connection to my sbc "<a href="http://sbc.netvoiceperu.com">sbc.netvoiceperu.com</a>" is with TLS connectivity status in "Active" but the SIP options status is in "Warning".<br><br>I have made calls from MsTeams thinking that the SIP options status would change to "active" but it is still in "Warning" state. On the other hand, I have enabled a siptrace in Kamailio and verify that the SIP OPTIONS from kamailio are being sent in the following format to MsTeams.<br><br>OPTIONS sip: <a href="http://sip.pstnhub.microsoft.com">sip.pstnhub.microsoft.com</a>; transport = tls SIP / 2.0<br>Via: SIP / 2.0 / TLS 161.35.44.66:5061;branch=z9hG4bKea07.52224687000000000000000000000000.0<br>To: <sip: <a href="http://sip.pstnhub.microsoft.com">sip.pstnhub.microsoft.com</a>; transport = tls><br>From: <sip: <a href="http://sbc.netvoiceperu.com">sbc.netvoiceperu.com</a>>; tag = d3569c818b500aeb8c373426e76c2884-81763c71<br>CSeq: 10 OPTIONS<br>Call-ID: <a href="mailto:13ea237a751e0c48-9148@161.35.44.66">13ea237a751e0c48-9148@161.35.44.66</a><br>Max-Forwards: 70<br>Content-Length: 0<br>User-Agent: kamailio (5.4.0 (x86_64 / linux))<br><br>As you can see, the SIP OPTIONS sent from Kamailio to MsTeams does not contain the "Contact" field, which in theory said "Contact" field should have been added by Kamailio according to the configuration added in kamailio.cfg<br><br>event_route [tm: local-request] {<br>sip_trace ();<br>        if (is_method ("OPTIONS") && $ ru = ~ "<a href="http://pstnhub.microsoft.com">pstnhub.microsoft.com</a>") {<br>               append_hf ("Contact: <sip: <a href="http://sbc.netvoiceperu.com">sbc.netvoiceperu.com</a>: 5061; transport = tls> \ r \ n");<br>        }<br>        xlog ("L_INFO", "Sent out tm request: $ mb \ n");<br>}<br><br>As additional information, I inform you that I also managed to observe the SIP OPTIONS that MsTeams sends to Kamailio.<br><br>OPTIONS sip: <a href="http://sbc.netvoiceperu.com">sbc.netvoiceperu.com</a>: 5061; transport = tls SIP / 2.0<br>FROM: <sip: <a href="http://sip-du-a-eu.pstnhub.microsoft.com">sip-du-a-eu.pstnhub.microsoft.com</a>: 5061>; tag = f1bdeb5f-662f-4544-a436-e9aa9ad78da4<br>TO: <sip: <a href="http://sbc.netvoiceperu.com">sbc.netvoiceperu.com</a>><br>CSEQ: 1 OPTIONS<br>CALL-ID: c47e2782-16c3-49cb-8931-24e9709d260a<br>MAX-FORWARDS: 70<br>VIA: SIP / 2.0 / TLS 52.114.75.24:5061;branch=z9hG4bK48b0e6be<br>CONTACT: <sip: <a href="http://sip-du-a-eu.pstnhub.microsoft.com">sip-du-a-eu.pstnhub.microsoft.com</a>: 5061><br>CONTENT-LENGTH: 0<br>USER-AGENT: Microsoft.PSTNHub.SIPProxy v.2021.1.15.7 i.EUWE.10<br>ALLOW: INVITE, ACK, OPTIONS, CANCEL, BYE, NOTIFY<br><br>However I don't see the 200 OK SIP responses from Kamailio to MsTeams.<br><br>I think this may be the reason why I see the SIP OPTIONS status in "Warning" from the MsTeams panel. Maybe the contact field is not being added in the SIP OPTIONS messages that Kamailio sends to MsTeams and for that reason I don't see 200OK responses from MsTeams.<br><br>Could you help me solve this please.<br><br>Cheers<br clear="all"></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div><font face="verdana, sans-serif">Saludos Cordiales</font></div><div><span style="color:rgb(136,136,136);font-family:"Times New Roman";font-size:13.3333px;background-color:rgb(253,253,253)">--</span><span style="color:rgb(136,136,136);font-family:"Times New Roman";font-size:13.3333px;background-color:rgb(253,253,253)"> </span><br></div><div style="background-color:rgb(253,253,253)"><div dir="ltr"><font face="trebuchet ms, sans-serif" size="2" style="color:rgb(136,136,136);font-family:"Times New Roman""><u>Willy Valles Rios</u></font><div><div><font color="#bf9000" face="trebuchet ms, sans-serif"><b>Unified Communications Specialist</b></font></div><div style="color:rgb(136,136,136);font-family:"Times New Roman";font-size:13.3333px"><b><font face="trebuchet ms, sans-serif" color="#bf9000"><br></font></b></div><div style="color:rgb(136,136,136);font-family:"Times New Roman";font-size:13.3333px"><font face="trebuchet ms, sans-serif">phone: +51955747343</font></div><div style="color:rgb(136,136,136);font-family:"Times New Roman";font-size:13.3333px"><font face="trebuchet ms, sans-serif">em@il: <span style="color:rgb(51,102,153)"><a href="mailto:willyvalles17@gmail.com" target="_blank">willyvalles17@gmail.com</a></span></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>