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

El lun., 4 may. 2020 a las 19:59, Sergiu Pojoga (<pojogas@gmail.com>) escribió:
"Teams" is nothing but a set of redundant SIP gateways, so either by setting next hop $du or a more elegant way is ds_select_dst if you're using Dispatcher.

https://www.kamailio.org/docs/modules/5.3.x/modules/dispatcher.html#dispatcher.f.ds_select_dst 

On Mon, May 4, 2020 at 4:48 AM sip user <sipuser404@gmail.com> wrote:
Hi, I have connected Kamailio like SBC with Teams, and Calls from Teams to Kamailio works..

Now, I have problems with calls from Kamailio to Teams, not works.

How have I send the call? I set record_route_preset, but how send the call to Teams?

Thanks so much
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users