[OpenSIPS-Devel] [OpenSIPS/opensips] 87661e: b2b_entities: avoid deadlock for certain scenarios

Răzvan Crainea noreply at github.com
Wed Nov 16 12:46:01 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 87661e1f14f9be6d957cd25c9f7dbe58d6ce0c82
      https://github.com/OpenSIPS/opensips/commit/87661e1f14f9be6d957cd25c9f7dbe58d6ce0c82
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2022-11-16 (Wed, 16 Nov 2022)

  Changed paths:
    M modules/b2b_entities/dlg.c

  Log Message:
  -----------
  b2b_entities: avoid deadlock for certain scenarios

When a call was terminted with a BYE from the handler of the 200 OK
reply, the entities lock would remain locked, generating a deadlock.
This commit fixes this (and possible other) situations by generically
keeping a track when the lock is taken and unlock it before exiting.

Thanks to Vlad Patrascu for helping with debugging and solution for this


  Commit: 83281caa1277b25aea6db6197bd552d639bb0fff
      https://github.com/OpenSIPS/opensips/commit/83281caa1277b25aea6db6197bd552d639bb0fff
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2022-11-16 (Wed, 16 Nov 2022)

  Changed paths:
    M modules/b2b_sdp_demux/b2b_sdp_demux.c

  Log Message:
  -----------
  b2b_sdp_demux: fix CANCEL handling concurrency

Thanks go to Suchi Sahoo from Five9 for reporting it


Compare: https://github.com/OpenSIPS/opensips/compare/bf7830933482...83281caa1277



More information about the Devel mailing list