[OpenSIPS-Devel] [OpenSIPS/opensips] d4503e: drouting: Allow 64-bit integers for dr_rules.sort_...

Liviu Chircu noreply at github.com
Tue Nov 23 18:02:11 EST 2021


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: d4503e0746f58d9ca5f53baca997818a52fc817b
      https://github.com/OpenSIPS/opensips/commit/d4503e0746f58d9ca5f53baca997818a52fc817b
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2021-11-23 (Tue, 23 Nov 2021)

  Changed paths:
    M modules/drouting/dr_load.c

  Log Message:
  -----------
  drouting: Allow 64-bit integers for dr_rules.sort_profile

This allows SQL views to represent the NULL value as a 64-bit integer
without getting rejected by OpenSIPS, which expected a 32-bit integer
for that column.

Admittedly, any 64-bit integer "sort profile" will now be truncated to
32 bits, but OpenSIPS had no full support for 64-bit sort profile values
in the first place, so it's better to just truncate and NOT error.

(cherry picked from commit 7fb5ddf64826bc9d6c1c3d3c0d58cf7275e748dc)





More information about the Devel mailing list