<p></p>
<p><b>@asalman18</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/kamailio/kamailio/pull/2493#discussion_r520940714">src/modules/dispatcher/dispatch.c</a>:</p>
<pre style='color:#555'>> +                            z, ds_dest->uri.len, ds_dest->uri.s,
+                               gw_priority, latency_proirity_handicap,
+                               ds_dest->attrs.rpriority, gw_latency, ds_dest->flags);
+               } else {
+                       ds_sorted[y].idx = -1;
+                       ds_sorted[y].priority = -1;
+                       LM_DBG("[inactive]idx[%d]uri[%.*s]priority[%d]latency[%dms]flag[%d]",
+                               z, ds_dest->uri.len, ds_dest->uri.s,
+                               gw_priority, gw_latency, ds_dest->flags);
+               }
+               if(ds_use_default != 0 && idx->nr != 1)
+                       z = (z + 1) % (idx->nr - 1);
+               else
+                       z = (z + 1) % idx->nr;
+       }
+       idx->last = hash % idx->nr;
</pre>
<p>should be removed</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/2493#pullrequestreview-527691257">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLOPZAENN3PXOMSE23SPHEONANCNFSM4SA5ZYNQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZLDTDRKPPCLU7EBUVDSPHEONA5CNFSM4SA5ZYN2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOD5Z636I.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/2493#pullrequestreview-527691257",
"url": "https://github.com/kamailio/kamailio/pull/2493#pullrequestreview-527691257",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>