[OpenSIPS-Devel] [OpenSIPS/opensips] da6975: b2b_entities: properly handle BYE while another re...

Vlad Pătrașcu noreply at github.com
Mon Feb 6 08:46:26 UTC 2023


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: da6975f065ad848ceb8d8f65b0f09d1efc2bca37
      https://github.com/OpenSIPS/opensips/commit/da6975f065ad848ceb8d8f65b0f09d1efc2bca37
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2023-02-06 (Mon, 06 Feb 2023)

  Changed paths:
    M modules/b2b_entities/b2be_load.h
    M modules/b2b_entities/dlg.c
    M modules/b2b_logic/logic.c
    M modules/b2b_logic/records.h

  Log Message:
  -----------
  b2b_entities: properly handle BYE while another request is pending

Instead of rejecting the BYE with 491, first complete the transactions on the
UAS side with 200 OK for the BYE and 487 for the other pending transaction.
Also, mark the tuple for deletion at b2b_logic level and send a BYE to
the peer entity after completing any UAC transcations on this side.

Credits to David Escartin from Sonoc for reporting.


  Commit: 65a8da41f58ba3179c62c83a2d710651c97b36ca
      https://github.com/OpenSIPS/opensips/commit/65a8da41f58ba3179c62c83a2d710651c97b36ca
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2023-02-06 (Mon, 06 Feb 2023)

  Changed paths:
    M modules/b2b_entities/dlg.c

  Log Message:
  -----------
  b2b_entities: fix crashes after running the script request route

After releasing the lock and running the script request route, check
if the dialog has not been deleted in the meantime.

Credits to David Escartin from Sonoc for reporting.


  Commit: 1225b0191afdf0a36e14bf47f5cac908e5af5603
      https://github.com/OpenSIPS/opensips/commit/1225b0191afdf0a36e14bf47f5cac908e5af5603
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2023-02-06 (Mon, 06 Feb 2023)

  Changed paths:
    M modules/b2b_logic/logic.c

  Log Message:
  -----------
  b2b_logic: fix crashes due to dangling tuple pointer

Make sure to not access a tuple that might have been freed while not
holding the lock.

Many thanks to David Escartin from Sonoc for the help in troubleshooting
this issue!


Compare: https://github.com/OpenSIPS/opensips/compare/551a6d82c19e...1225b0191afd



More information about the Devel mailing list