<div dir="ltr">Cfg looks fine to me. I'm no clairvoyant to see why the 400 Bad request, can be anything.<br><div><br></div><div>The question "How do I call Teams" in this topic has been answered, leaving the troubleshooting pleasure to you.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 5, 2020 at 5:22 AM sip user <<a href="mailto:sipuser404@gmail.com">sipuser404@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Sergiu..</div><div><br></div><div>I've configurated dispatcher like this:</div><div><br></div><div>modparam("dispatcher", "list_file", "/etc/kamailio/dispatcher.list")<br>modparam("dispatcher", "ds_probing_mode", 1)<br>modparam("dispatcher", "ds_ping_interval", 60)<br>modparam("dispatcher", "flags", 2)</div><div><br></div><div>When I try to call to Teams, I have:</div><div><br></div><div> record_route_preset("SBC-DNS:5061;transport=tls", "SBC-IP:5060");<br> add_rr_param(";r2=on");<br> route(DISPATCH);<br> route(RELAY);</div><div><br></div><div>And in route[DISPATCH]</div><div><br></div><div>if(!ds_select_dst("1", "0")) {<br>  send_reply("404", "No destination");<br>  exit;<br>}<br>xlog("L_INFO","********DISPATCH: VAMOS DE <$ru> VIA <$du>\n******");<br>t_on_failure("RTF_DISPATCH");</div><div>return;</div><div><br></div><div>failure_route[RTF_DISPATCH] {<br>        if(t_is_canceled()) {<br>                exit;<br>        }<br>        if(t_check_status("500") or (t_branch_timeout() and !t_branch_replied())) {<br>                if(ds_next_dst()) {<br>                        t_on_failure("RTF_DISPATCH");<br>                        route(RELAY);<br>                        exit;<br>                }<br>        }<br>}</div><div><br></div><div>But when I try to call to Teams, always receives 400 Bad request.</div><div><br></div><div>Are there any wrong in my kamailio.cfg??</div><div><br></div><div>Thanks<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El lun., 4 may. 2020 a las 19:59, Sergiu Pojoga (<<a href="mailto:pojogas@gmail.com" target="_blank">pojogas@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>"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.<br></div><div><br></div><div><a href="https://www.kamailio.org/docs/modules/5.3.x/modules/dispatcher.html#dispatcher.f.ds_select_dst" target="_blank">https://www.kamailio.org/docs/modules/5.3.x/modules/dispatcher.html#dispatcher.f.ds_select_dst</a> <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 4, 2020 at 4:48 AM sip user <<a href="mailto:sipuser404@gmail.com" target="_blank">sipuser404@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi, I have connected Kamailio like SBC with Teams, and Calls from Teams to Kamailio works..</div><div><br></div><div>Now, I have problems with calls from Kamailio to Teams, not works.</div><div><br></div><div>How have I send the call? I set record_route_preset, but how send the call to Teams?</div><div><br></div><div>Thanks so much<br></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>