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

Bogdan Andrei IANCU noreply at github.com
Mon Nov 8 08:57:09 EST 2021


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 85e67d890cc0e225d1a4512ccb8cadc1a5090a41
      https://github.com/OpenSIPS/opensips/commit/85e67d890cc0e225d1a4512ccb8cadc1a5090a41
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2021-11-08 (Mon, 08 Nov 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.





More information about the Devel mailing list