[OpenSIPS-Devel] [OpenSIPS/opensips] 2fc9d2: matching_mode honored in cachedbs

Alessio Garzi noreply at github.com
Wed Aug 14 08:44:29 EDT 2019


  Branch: refs/heads/3.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 2fc9d2886fac84c68064217ad00c86bb73df7155
      https://github.com/OpenSIPS/opensips/commit/2fc9d2886fac84c68064217ad00c86bb73df7155
  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: 1c488bc65ca8a06be6a027e8fc59297bf6a28193
      https://github.com/OpenSIPS/opensips/commit/1c488bc65ca8a06be6a027e8fc59297bf6a28193
  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: 2e1a686fbb1083928ccb8e48dc6a656ddba85e3c
      https://github.com/OpenSIPS/opensips/commit/2e1a686fbb1083928ccb8e48dc6a656ddba85e3c
  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/4b0ab4880a97...2e1a686fbb10



More information about the Devel mailing list