[OpenSIPS-Devel] [OpenSIPS/opensips] e15ec5: matching_mode honored in cachedbs
Alessio Garzi
noreply at github.com
Wed Aug 14 08:45:18 EDT 2019
Branch: refs/heads/2.4
Home: https://github.com/OpenSIPS/opensips
Commit: e15ec5fd901aa050cd3381a04b4da663e8584d25
https://github.com/OpenSIPS/opensips/commit/e15ec5fd901aa050cd3381a04b4da663e8584d25
Author: Alessio Garzi <agarzi at clouditalia.com>
Date: 2019-08-14 (Wed, 14 Aug 2019)
Changed paths:
M modules/usrloc/urecord.c
Log Message:
-----------
matching_mode honored in cachedbs
Function cdb_add_ct_update ignores matching modes set on opensips.cfg, this result in an unexpected behaviour if the user sets matching_mode=0 since multiple records with same contact (but different callid) are stored in the cache database.
This fix checks, before getting the base64 hash, if matching mode is contact only, if yes, the callid string is not included in the resulted base64 hash.
If matching mode is CONTACT_CALLID, this function behaves like before, and the hash is calcuated using contact:callid.
(cherry picked from commit db7eca79a181ceb3406463aad7ab56162247104d)
Commit: 0662d9482d8df87f65f0dcf31e78f4d67f47edbc
https://github.com/OpenSIPS/opensips/commit/0662d9482d8df87f65f0dcf31e78f4d67f47edbc
Author: Alessio Garzi <gun101 at email.it>
Date: 2019-08-14 (Wed, 14 Aug 2019)
Changed paths:
M modules/usrloc/urecord.c
Log Message:
-----------
Better indentation on switch case inside urecord
Just indentation fixes
(cherry picked from commit 5d1678a37618d697c7c9a6346c0846d01404a142)
Commit: fb84a30ee6edcd6784a1dcfd5779b77f1cff60b8
https://github.com/OpenSIPS/opensips/commit/fb84a30ee6edcd6784a1dcfd5779b77f1cff60b8
Author: Alessio Garzi <gun101 at email.it>
Date: 2019-08-14 (Wed, 14 Aug 2019)
Changed paths:
M modules/usrloc/urecord.c
Log Message:
-----------
Indentation fix 2 on urecord
One line was missing tab indentation
(cherry picked from commit 61efba2e5a18481e4b92acd860aa7ae88db04164)
Compare: https://github.com/OpenSIPS/opensips/compare/e8255c83a655...fb84a30ee6ed
More information about the Devel
mailing list