Hi, I'm connecting Teams with kamailio server. From Kamailio to teams I have no problems, but from teams to Kamailio yes. Drop the call..

With ngrep I see that:

INVITE:

imagen.png
200 OK:

imagen.png

I never received ACK..

In my configuration:

Kamailio.cfg:

#!KAMAILIO
#!define WITH_TLS

event_route[tm:local-request] {

        if(is_method("OPTIONS") && $ru =~ "pstnhub.microsoft.com") {
               append_hf("Contact: <sip:FQND:5061;transport=tls>\r\n");
        }
        xlog("L_INFO", "Sent out tm request: $mb\n");
}

request_route{

       remove_hf("Route");
        if (is_method("INVITE|SUBSCRIBE")) {
                xlog("L_INFO","$fU is trying to call to $rU con valores $tu\n");
                $ru = "sip:" + $rU + "@ip asterisk:port";
                route(RELAY);
        }
}

What I'm doing wrong?

I don't understand why not received ACK..

Could anyone help me?

Thanks