[OpenSIPS-Devel] [OpenSIPS/opensips] f6790c: [usrloc] fix contact matching on registrations han...

Bogdan Andrei IANCU noreply at github.com
Mon Dec 6 11:43:34 EST 2021


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: f6790c07539e8eb3743350c45f65b59b97b6fe1d
      https://github.com/OpenSIPS/opensips/commit/f6790c07539e8eb3743350c45f65b59b97b6fe1d
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2021-12-06 (Mon, 06 Dec 2021)

  Changed paths:
    M modules/usrloc/urecord.c

  Log Message:
  -----------
  [usrloc] fix contact matching on registrations handling

instead of pron-to-error string matching, use the SIP wise matching when matching the registered contacts. The SIP URI matching is more complex, mainly when comes about the URI parameters - some important (user, transport, etc) params must be present in both URIs in order to match, other generic params may match even if the param is present in only one URI.

Some devices may use during registration some proprietary params for the contact, but without sending the full list when re-registering or when deleting the contact - and this is perfectly ok from the perspective of the SIP RFC3261.

Prior to the fix, in the above scenario, OpenSIPS will have failed to re-register or un-register the contact, leaking registrations.

(cherry picked from commit 85e67d890cc0e225d1a4512ccb8cadc1a5090a41)





More information about the Devel mailing list