[OpenSIPS-Devel] [OpenSIPS/opensips] 93163b: usrloc: Several fixes regarding contact IDs
Liviu Chircu
noreply at github.com
Wed Feb 10 11:58:04 EST 2021
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 93163b9eb84df8edad1a0b1ea283d8d13042aab0
https://github.com/OpenSIPS/opensips/commit/93163b9eb84df8edad1a0b1ea283d8d13042aab0
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)
Commit: 872c4e89d23a2b830cdc944e898e40f4faf4c400
https://github.com/OpenSIPS/opensips/commit/872c4e89d23a2b830cdc944e898e40f4faf4c400
Author: Liviu Chircu <liviu at opensips.org>
Date: 2021-02-10 (Wed, 10 Feb 2021)
Changed paths:
M modules/usrloc/dlist.h
Log Message:
-----------
usrloc ct IDs: Never pack more than 14 bits from a contact label
Compare: https://github.com/OpenSIPS/opensips/compare/e0152488feb4...872c4e89d23a
More information about the Devel
mailing list