<div dir="ltr"><span style="font-size:13.3333339691162px">Daniel.  I added 8 algorithm to our server and it works with 2 asterisk now but it works strange because:</span><br style="font-size:13.3333339691162px"><span style="font-size:13.3333339691162px">While works server with priority 1 - all ok. When this server goes down dispatcher choose next server with lowes priority. But when server with highest priority waking up dispatcher use server with lowes priority until this server not goes down.<br></span><br>here id my config for dispatcher<br><br><div style="font-size:13.3333339691162px">modparam("dispatcher", "db_url",DBURL)</div><div style="font-size:13.3333339691162px">modparam("dispatcher", "table_name", "dispatcher")</div><div style="font-size:13.3333339691162px">modparam("dispatcher", "setid_col", "setid")</div><div style="font-size:13.3333339691162px">modparam("dispatcher", "priority_col", "priority")</div><div style="font-size:13.3333339691162px">modparam("dispatcher", "destination_col", "destination")</div><div style="font-size:13.3333339691162px">modparam("dispatcher", "force_dst", 1)</div><div style="font-size:13.3333339691162px">modparam("dispatcher", "flags", 3)</div><div style="font-size:13.3333339691162px">modparam("dispatcher", "dst_avp", "$avp(i:271)")</div><div style="font-size:13.3333339691162px">modparam("dispatcher", "grp_avp", "$avp(i:272)")</div><div style="font-size:13.3333339691162px">modparam("dispatcher", "cnt_avp", "$avp(i:273)")</div><div style="font-size:13.3333339691162px">modparam("dispatcher", "ds_ping_from", "<a href="mailto:sip%3Akamailio1@10.0.1.12" target="_blank">sip:kamailio1@10.0.1.12</a>")</div><div style="font-size:13.3333339691162px">modparam("dispatcher", "ds_ping_interval",15)</div><div style="font-size:13.3333339691162px">modparam("dispatcher", "ds_probing_mode", 1)</div><div style="font-size:13.3333339691162px">modparam("dispatcher", "ds_ping_reply_codes", "class=2;code=403;code=404;code=484;class=3")</div><div style="font-size:13.3333339691162px">modparam("tm", "reparse_on_dns_failover", 0)</div><div><br><br><span style="font-size:13.3333339691162px">(!ds_select_dst("$var(setid)", "8")){</span><br style="font-size:13.3333339691162px"><br style="font-size:13.3333339691162px"><div style="font-size:13.3333339691162px">sl_send_reply("500", "Service Unavailable");</div><div style="font-size:13.3333339691162px">            xlog("L_INFO","{$rm} from [$fU@$si:$sp] But NO destinations available for $rd \n");</div><div style="font-size:13.3333339691162px"><span style="white-space:pre-wrap">                       </span>t_on_failure("DISPATCHER_ROLLOVER");</div><br style="font-size:13.3333339691162px"><span style="font-size:13.3333339691162px">}</span><br style="font-size:13.3333339691162px"><br style="font-size:13.3333339691162px"><div style="font-size:13.3333339691162px">if (!t_relay()) {</div><div style="font-size:13.3333339691162px"><span style="white-space:pre-wrap">         </span>sl_reply_error();<br><br>we use 4.3 master branch kamailio</div></div></div>