<div dir="ltr"><span style="font-size:13.3333339691162px">Hello I use dipatcher  algorithm 8 that works with weight. I added  2 Asterisks and try to call its with my kam.</span><span style="font-size:13.3333339691162px">We use 4.3 version.</span><div><span style="font-size:13.3333339691162px"><br>Tthis config select needed dst from database with my scenario. </span><div><br style="font-size:13.3333339691162px"><span style="font-size:13.3333339691162px">if(!ds_select_dst("$var(setid)</span><span style="font-size:13.3333339691162px">", "8"))</span><br style="font-size:13.3333339691162px"><br style="font-size:13.3333339691162px"><span style="font-size:13.3333339691162px">$var(setid)- is variable for setting setid that i get from database with my own scenario. IT does not matter</span><span style="font-size:13.3333339691162px">.<br></span><br>When running asterisk with weight 90 - all calls goes through it. When I starting asterisk with weight 10 -calls going through asterisk 90. When I shut down asterisk with weight 90 -calls goes through asterisk 10? but when i start asterisk weight 90 all calls goes through sterisk 10 until I shut down it.<br style="font-size:13.3333339691162px"><br><div>root@Kamailio:~# kamailio -v</div><div>version: kamailio 4.3.0-dev3 (x86_64/linux) 8cdbe7</div><div>flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, DBG_F_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES</div><div>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB</div><div>poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.</div><div>id: 8cdbe7</div><div>compiled on 01:17:56 Jan 21 2015 with gcc 4.8.2</div><div><br></div><br style="font-size:13.3333339691162px"><span style="font-size:13.3333339691162px">id setid   destination                  flags priority attrs</span><br style="font-size:13.3333339691162px"><table style="font-size:13.3333339691162px"><tbody><tr><td>1</td><td>   2</td><td>   sip:<a href="http://34.25.123.45:50600/" target="_blank">34.25.123.45:50600</a></td><td>0</td><td>      0         </td><td>weight=10</td><td><br></td></tr><tr><td><br></td><td>  </td><td>  </td><td><br></td><td>      </td><td><br></td><td></td></tr><tr><td>2</td><td>   2</td><td>   sip:<a href="http://10.0.1.6:50600/" target="_blank">10.0.1.6:50600</a></td><td>0</td><td>      0</td><td>weight=90</td><td><br></td></tr></tbody></table><br style="font-size:13.3333339691162px"><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", "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%3Aproxy@10.0.1.1" target="_blank">sip:proxy@10.0.1.1</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)<br><br><br>Thanks</div></div></div></div>