[sr-dev] [kamailio/kamailio] dispatcher : better distribution when using hash and destination is not available (#2363)

Kalki70 notifications at github.com
Wed Jun 17 19:37:52 CEST 2020


When I realized the use of "use_default" flag I had trouble trying to fix the rehash in that case.

According to documentation:

[use_default](https://kamailio.org/docs/modules/4.3.x/modules/dispatcher.html#dispatcher.p.use_default)

_3.10. use_default (int)
If the parameter is set to 1, the last address in destination set is used as a final option to send the request to._

But it's not the last address. It's the first one.  After dealing with my implementation I tried with official 5.3.3 and found the same behavior. It's the first one that is not used and reserved as default, in case no other destination is available.

It seems that for some reason the list of addresses are loaded in reverse order.

My implementation does not touch that, so it is still the first one.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2363#issuecomment-645518982
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20200617/b6a2495a/attachment-0001.html>


More information about the sr-dev mailing list