Hello,
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.
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.
Cheers,
Daniel
Hello and thanks for your reply, all.Actually I WANT that behavior :) switching users to other boxes.
Thanks!--
On Thu, 24 Feb 2022 at 07:45, Paolo Visintin <paolo.visintin@evoseed.io> wrote:
Hello David,In my experience yes, the hash policy will be reset after reload but you can use htable to cache results and avoid this behavior.
Regards
Paolo
Il giorno mer 23 feb 2022 alle 23:38 David Villasmil <david.villasmil.work@gmail.com> ha scritto:
Hello guys,
We're dispatching with hash over user, if i executedispatcher.reload
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?
--__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
__________________________________________________________
Paolo Visintin
evoseed s.r.l.
phone: +39 346 09 86 641
mail: paolo.visintin@evoseed.io
site: evoseed.io
address: Via Lucrezio 13, Trieste Italy
Kamailio - Users Mailing List - Non Commercial Discussions
* sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
__________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - Online March 28-31, 2022 (Europe Timezone) * https://www.asipto.com/sw/kamailio-advanced-training-online/