Hi all, I'm wondering if it is currently supported to perform failover while respecting the call load distribution algorithm.
What makes me doubt this is possible is the following wording in the documentation:
The rest of the destination list is taken in order of the entries in set - anyhow, until a re-route to next destination happens, the load on each address can change.
From it it's not clear if ds_next_dst() will simplify use next entry from the AVP list or if it will attempt to intelligently choose next entry from the AVP list taking into the account updated call load of the remaining entries.
SSent from my Galaxy -------- Original message --------From: Ivan Ribakov via sr-users sr-users@lists.kamailio.org Date: 25/07/2025 17:19 (GMT+02:00) To: sr-users@lists.kamailio.org Cc: i.ribakov@zaleos.net Subject: [SR-Users] Dispatcher failover to the next least loaded destination Hi all, I'm wondering if it is currently supported to perform failover while respecting the call load distribution algorithm.What makes me doubt this is possible is the following wording in the documentation: > The rest of the destination list is taken in order of the entries in set - anyhow, until a re-route to next destination happens, the load on each address can change.>From it it's not clear if ds_next_dst() will simplify use next entry from the AVP list or if it will attempt to intelligently choose next entry from the AVP list taking into the account updated call load of the remaining entries.__________________________________________________________Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.orgTo unsubscribe send an email to sr-users-leave@lists.kamailio.orgImportant: keep the mailing list in the recipients, do not reply only to the sender!
Hello,
I haven't looked to the code, but I think it will just take the next entry from the XAVP. Maybe you can test it and report back.
Cheers,
Henning
-----Original Message----- From: Ivan Ribakov via sr-users sr-users@lists.kamailio.org Sent: Freitag, 25. Juli 2025 17:05 To: sr-users@lists.kamailio.org Cc: i.ribakov@zaleos.net Subject: [SR-Users] Dispatcher failover to the next least loaded destination
Hi all, I'm wondering if it is currently supported to perform failover while respecting the call load distribution algorithm.
What makes me doubt this is possible is the following wording in the documentation:
The rest of the destination list is taken in order of the entries in set - anyhow,
until a re-route to next destination happens, the load on each address can change.
From it it's not clear if ds_next_dst() will simplify use next entry from the AVP
list or if it will attempt to intelligently choose next entry from the AVP list taking into the account updated call load of the remaining entries. __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr- users@lists.kamailio.org To unsubscribe send an email to sr-users- leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Correct, module just iterates over the remaining XAVP entries. Unfortunately, those XAVP entries are not ordered from least busy to most busy.