<div dir="ltr"><div>Hi Adarsh, <br></div><div><br></div><div>You could consider, since they support SIP OPTION, you will be able to always use most responsive/closest one first :<br></div><div><span class="gmail-quote"><span class="gmail-quote">13</span>”</span> - latency optimized dispatching </div><div><a href="http://www.kamailio.net/docs/modules/devel/modules/dispatcher.html">http://www.kamailio.net/docs/modules/devel/modules/dispatcher.html</a></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 11, 2022 at 11:27 PM Adarsh Chauhan <<a href="mailto:adarshchauhan@hotmail.com">adarshchauhan@hotmail.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 style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Hi All,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
I was looking for a way where i could reverse the order of priority set on destinations in dispatcher file.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
for eg:</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
if i have the following file:</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
1 sip:10.252.168.41:5060;transport=tcp 0 5 # <span style="color:rgb(0,0,0);background-color:rgb(255,255,255);display:inline">(US)</span>
<div>1 sip:<span style="color:rgb(0,0,0);background-color:rgb(255,255,255);display:inline">10.252.168.42</span>:5060;transport=tcp 0 4 # (US)</div>
<div>1 sip:<span style="color:rgb(0,0,0);background-color:rgb(255,255,255);display:inline">10.252.168.43</span>:5060;transport=tcp 0 3 # (EU)</div>
<div>1 sip:<span style="color:rgb(0,0,0);background-color:rgb(255,255,255);display:inline">10.252.168.44</span>:5060;transport=tcp 0 2 # (EU)</div>
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
I wanted to use top to bottom when in US region and bottom to top when in EU region.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
One option is to make another set, however that will force Kamailio to send ping (OPTIONS) twice when probing.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Regards,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Adarsh Chauhan</div>
</div>

__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<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>