<div dir="ltr">Hello,<br><br><div>I'm trying to connect kamailio to Microsoft Teams. <br></div><div>Dispatch is correctly configured and sended.<br></div>Following this tutorial : <a href="https://skalatan.de/en/blog/kamailio-sbc-teams">https://skalatan.de/en/blog/kamailio-sbc-teams</a>, I added an Event_Route to add contact header to SIP OPTION from dispath to MS :<br><br>event_route[tm:local-request] {<br>   xlog("*** tm:local-request *** ");<br>        if(is_method("OPTIONS") && $ru =~ "<a href="http://pstnhub.microsoft.com">pstnhub.microsoft.com</a>") {<br>               xlog("L_INFO", "Append new contact !\n");<br>               append_hf("Contact: <sip:MY_SBC_NAME.COM:5061;transport=tls>\r\n");<br>        }<br>        xlog("L_INFO", "Sent out tm request: $mb\n");<br>}<br><br>When I check the log to see my sended frame, I don't see a contact header field :<br>INFO: <script>: Append new contact !<br>INFO: <script>: Sent out tm request : <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 MY_SBC_NAME.COM:5061;branch=z9hG4bK4497.f3e5e754000000000000000000000000.0<br>To: <sip:<a href="http://sip.pstnhub.microsoft.com">sip.pstnhub.microsoft.com</a>;transport=tls><br>From: <sip:<a href="http://MY_SBC_NAME.COM.fr">MY_SBC_NAME.COM.fr</a>>;tag=a76e006ace3802951ed860e08df964af-7971<br>CSeq: 10 OPTIONS<br>Call-ID: 2e1278ea77796160-9837@MY_SBC_IP<br>Max-Forwards: 70<br>Content-Length: 0<br>User-Agent: kamailio (5.2.1 (x86_64/linux))<br><br>According the documentation about textop, append_hf(txt[, hdr]) :<br>This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE, FAILURE_ROUTE, BRANCH_ROUTE.<br><br>So my question is append HF can be used in Event_route ?<br>Is there any other way to add contact header ?<br><br>Regards,<br>Arnaud<br></div>