[OpenSIPS-Devel] [OpenSIPS/opensips] f9f683: usrloc: Several fixes regarding contact IDs
Liviu Chircu
noreply at github.com
Wed Feb 10 11:58:22 EST 2021
Branch: refs/heads/3.1
Home: https://github.com/OpenSIPS/opensips
Commit: f9f6831fd0f8ef27a5f15ff864f902382d80a151
https://github.com/OpenSIPS/opensips/commit/f9f6831fd0f8ef27a5f15ff864f902382d80a151
Author: Liviu Chircu <liviu at opensips.org>
Date: 2021-02-10 (Wed, 10 Feb 2021)
Changed paths:
M modules/usrloc/udomain.c
M modules/usrloc/ul_cluster.c
M modules/usrloc/urecord.c
Log Message:
-----------
usrloc: Several fixes regarding contact IDs
* always increment record.next_clabel modulo CLABEL_MASK
(this is critical, because clabels are 14-bit wide, while an
unsigned short is 16-bit, so we'd overflow into the rlabel)
* regen_broken_contactid: do not re-insert all contacts to DB if
a single one is broken
* do not update urecord contact labels on contact updates
(the label may have rotated! by setting it to a high value,
we're almost encouraging a conflict once it rotates again)
(cherry picked from commit 93163b9eb84df8edad1a0b1ea283d8d13042aab0)
More information about the Devel
mailing list