Hi Sergiu..
I've configurated dispatcher like this:
modparam("dispatcher", "list_file", "/etc/kamailio/dispatcher.list")
modparam("dispatcher", "ds_probing_mode", 1)
modparam("dispatcher", "ds_ping_interval", 60)
modparam("dispatcher", "flags", 2)
When I try to call to Teams, I have:
record_route_preset("SBC-DNS:5061;transport=tls", "SBC-IP:5060");
add_rr_param(";r2=on");
route(DISPATCH);
route(RELAY);
And in route[DISPATCH]
if(!ds_select_dst("1", "0")) {
send_reply("404", "No destination");
exit;
}
xlog("L_INFO","********DISPATCH: VAMOS DE <$ru> VIA <$du>\n******");
t_on_failure("RTF_DISPATCH");
return;
failure_route[RTF_DISPATCH] {
if(t_is_canceled()) {
exit;
}
if(t_check_status("500") or (t_branch_timeout() and !t_branch_replied())) {
if(ds_next_dst()) {
t_on_failure("RTF_DISPATCH");
route(RELAY);
exit;
}
}
}
But when I try to call to Teams, always receives 400 Bad request.
Are there any wrong in my kamailio.cfg??
Thanks