[OpenSIPS-Devel] [OpenSIPS/opensips] cdd843: [drouting] fixed weight based selection

Bogdan Andrei IANCU noreply at github.com
Fri Mar 29 15:14:15 UTC 2024


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: cdd84307a4b4cc08209111e96adef0df8b6ae3ea
      https://github.com/OpenSIPS/opensips/commit/cdd84307a4b4cc08209111e96adef0df8b6ae3ea
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2024-03-29 (Fri, 29 Mar 2024)

  Changed paths:
    M modules/drouting/drouting.c

  Log Message:
  -----------
  [drouting] fixed weight based selection

if the last element has weight 1, it will never be selected.
This was instroduced with 48c051fc16f4d83bf176d1eefe1df642882b6b88.
The fix is to actually follow the initial PR approach, which was correct. My attempt to improve the original PR actually broke stuff there :(



To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications



More information about the Devel mailing list