<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>you can use the rpc command hash to see what destination is
selected. The hash id value does not change, for a user/uri is
always the same value. Then the 'hashid % number_of_destination'
(modulo operation) is used to pick up the destination from a
dispatcher group.</p>
<p>If after the reload is the same number of destination is the
group, the destination at the same index in the group is used. If
the number of destinations in the group is different, then a
redistribution can happen.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 24.02.22 09:32, David Villasmil
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAFGRPVqmbz+0Gr=JGHwF_KGe9G+LHo=fY4B2H9+qviZxfYbAyg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto">Hello and thanks for your reply, all.</div>
<div dir="auto">Actually I WANT that behavior :) switching users
to other boxes.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Thanks!</div>
<div><br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, 24 Feb 2022 at
07:45, Paolo Visintin <<a
href="mailto:paolo.visintin@evoseed.io"
moz-do-not-send="true" class="moz-txt-link-freetext">paolo.visintin@evoseed.io</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">Hello David, </div>
<div dir="auto">In my experience yes, the hash policy will
be reset after reload but you can use htable to cache
results and avoid this behavior.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Regards</div>
<div dir="auto"><br>
</div>
<div dir="auto">Paolo</div>
<div dir="auto"><br>
</div>
<div><br>
</div>
<div>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Il giorno mer 23 feb
2022 alle 23:38 David Villasmil <<a
href="mailto:david.villasmil.work@gmail.com"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">david.villasmil.work@gmail.com</a>>
ha scritto:<br>
</div>
</div>
</div>
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px
0px
0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
<div dir="ltr">Hello guys,
<div><br>
</div>
<div>We're dispatching with hash over user, if i
execute <a
href="http://www.kamailio.net/docs/modules/5.0.x/modules/dispatcher.html#dispatcher.r.reload"
style="text-decoration-line:none;font-family:Helvetica,Arial,sans-serif;font-size:15px;color:rgb(4,31,197)"
target="_blank" moz-do-not-send="true"><code
style="font-family:monospace">dispatcher.reload</code></a></div>
<div>does the dispatcher list gets calculated? i.e.
user A is always dispatched to box3, if i reload,
is the hash recalculated and will probably be
dispatched differently?</div>
<div><br>
</div>
<div><br clear="all">
<div>
<div dir="ltr" data-smartmail="gmail_signature">
<div dir="ltr">
<div>Regards,</div>
<div><br>
</div>
David Villasmil
<div>email: <a
href="mailto:david.villasmil.work@gmail.com"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">david.villasmil.work@gmail.com</a></div>
<div>phone: +34669448337</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px
0px
0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial
Discussions<br>
* <a href="mailto:sr-users@lists.kamailio.org"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">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"
moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
</div>
-- <br>
<div dir="ltr" data-smartmail="gmail_signature">
<div dir="ltr">
<table
style="text-indent:0px;color:rgb(34,34,34);border:0px
solid
black;border-collapse:collapse;font-family:Comfortaa"
width="600">
<tbody>
<tr>
<td><span
style="font-family:Comfortaa,"Trebuchet
MS",Helvetica,sans-serif"><img
src="https://cdn.bulksignature.com/photo/761_101444293184792194488.jpg?v=2"
style="border-top-left-radius:50%;border-top-right-radius:50%;border-bottom-right-radius:50%;border-bottom-left-radius:50%"
moz-do-not-send="true" width="75"
height="75"></span></td>
<td>
<h2 style="color:rgb(0,107,166);font-size:20px"><span
style="font-family:Comfortaa,"Trebuchet
MS",Helvetica,sans-serif">Paolo
Visintin</span></h2>
<p style="font-size:16px"><strong><span
style="font-family:Comfortaa,"Trebuchet
MS",Helvetica,sans-serif"><span
style="color:rgb(213,65,158)">evoseed
s.r.l.</span></span></strong></p>
</td>
<td>
<div
style="border-left-width:1px;border-left-style:solid;border-left-color:rgb(213,65,158);height:70px"> </div>
</td>
<td><span
style="font-family:Comfortaa,"Trebuchet
MS",Helvetica,sans-serif"><span
style="font-size:10px"><span
style="color:rgb(91,103,112)"> <strong> </strong></span></span></span><span
style="font-family:Comfortaa,"Trebuchet
MS",Helvetica,sans-serif"><span
style="font-size:10px"><span
style="color:rgb(91,103,112)">phone:</span> <span
style="color:rgb(41,128,185)">+39 346 09
86 641</span><br>
<span style="color:rgb(91,103,112)">
mail:</span> <span
style="color:rgb(213,65,158)"><a
href="mailto:paolo.visintin@evoseed.io"
style="color:rgb(17,85,204)"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">paolo.visintin@evoseed.io</a></span><br>
<span style="color:rgb(91,103,112)">
site:</span> <span
style="color:rgb(213,65,158)"><a
href="http://evoseed.io/"
style="color:rgb(17,85,204)"
target="_blank" moz-do-not-send="true">evoseed.io</a></span><br>
<span style="color:rgb(91,103,112)">address:</span> <span
style="color:rgb(0,107,166)"><a
href="https://www.google.com/maps/search/Via+Lucrezio+13,+Trieste+Italy?entry=gmail&source=g"
moz-do-not-send="true">Via Lucrezio 13,
Trieste Italy</a></span></span></span></td>
</tr>
</tbody>
</table>
</div>
</div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
* <a href="mailto:sr-users@lists.kamailio.org"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">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" moz-do-not-send="true"
class="moz-txt-link-freetext">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
</div>
-- <br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>Regards,</div>
<div><br>
</div>
David Villasmil
<div>email: <a href="mailto:david.villasmil.work@gmail.com"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">david.villasmil.work@gmail.com</a></div>
<div>phone: +34669448337</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
March 28-31, 2022 (Europe Timezone)
* <a class="moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
</body>
</html>