Re: [SR-Users] dispatcher.reload

2022-02-24 Thread Daniel-Constantin Mierla
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

On 24.02.22 09:32, David Villasmil wrote:
> 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
>  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
>  ha scritto:
>
> Hello guys,
>
> We're dispatching with hash over user, if i
> execute |dispatcher.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?
>
>
> Regards,
>
> David Villasmil
> email: david.villasmil.w...@gmail.com
> phone: +34669448337
>
> __
> 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.visin...@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
>
> -- 
> Regards,
>
> David Villasmil
> email: david.villasmil.w...@gmail.com
> phone: +34669448337
>
> __
> 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/
__
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


Re: [SR-Users] dispatcher.reload

2022-02-24 Thread David Villasmil
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 
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.w...@gmail.com> ha scritto:
>
>> Hello guys,
>>
>> We're dispatching with hash over user, if i execute dispatcher.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?
>>
>>
>> Regards,
>>
>> David Villasmil
>> email: david.villasmil.w...@gmail.com
>> phone: +34669448337
>>
> __
>> 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.visin...@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
>
-- 
Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337
__
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


Re: [SR-Users] dispatcher.reload

2022-02-23 Thread Paolo Visintin
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.w...@gmail.com> ha scritto:

> Hello guys,
>
> We're dispatching with hash over user, if i execute dispatcher.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?
>
>
> Regards,
>
> David Villasmil
> email: david.villasmil.w...@gmail.com
> phone: +34669448337
> __
> 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.visin...@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


Re: [SR-Users] dispatcher.reload

2022-02-23 Thread Henning Westerholt
Hello,

if the dispatcher list stays identical, a dispatcher reload should not affect 
the hash calculation and distribution to the respective destinations in this 
algorithm.

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: sr-users  On Behalf Of David 
Villasmil
Sent: Wednesday, February 23, 2022 11:37 PM
To: Kamailio (SER) - Users Mailing List 
Subject: [SR-Users] dispatcher.reload

Hello guys,

We're dispatching with hash over user, if i execute 
dispatcher.reload<http://www.kamailio.net/docs/modules/5.0.x/modules/dispatcher.html#dispatcher.r.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?


Regards,

David Villasmil
email: david.villasmil.w...@gmail.com<mailto:david.villasmil.w...@gmail.com>
phone: +34669448337
__
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


[SR-Users] dispatcher.reload

2022-02-23 Thread David Villasmil
Hello guys,

We're dispatching with hash over user, if i execute dispatcher.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?


Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337
__
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