[OpenSIPS-Devel] [OpenSIPS/opensips] 216694: b2b_logic: fix a crash when using the "n" flag for...

Vlad Pătrașcu noreply at github.com
Fri Jul 23 08:03:17 EST 2021


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 21669417f9af0db5492f90d75666c7e2032ca737
      https://github.com/OpenSIPS/opensips/commit/21669417f9af0db5492f90d75666c7e2032ca737
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2021-07-23 (Fri, 23 Jul 2021)

  Changed paths:
    M modules/b2b_logic/logic.c

  Log Message:
  -----------
  b2b_logic: fix a crash when using the "n" flag for b2b_bridge()

The crash would occur when using the "n" flag even though the current
entity has already been deleted with b2b_delete_entity().

(cherry picked from commit 6e6d876ba9173531c78787f71b7da30e71c520ec)


  Commit: ad0de36e1098ac7652679432144130ac3d6bdb74
      https://github.com/OpenSIPS/opensips/commit/ad0de36e1098ac7652679432144130ac3d6bdb74
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2021-07-23 (Fri, 23 Jul 2021)

  Changed paths:
    M modules/b2b_logic/logic.c

  Log Message:
  -----------
  b2b_logic: fix bad NOTIFY body for 100 Trying

The static variable representing the new message body would point to the
buffer of the SIP message from the previous call to process_bridge_notify(),
resulting in garbage data.

Credits to @nikbyte for catching the issue.
Alternative fix to #2503.

(cherry picked from commit 947c7e3c295cffde48ddb4c35d928ae7339722dd)


  Commit: a9bd831a605a8e8443a355f2fcc5cb52d6d1f2b2
      https://github.com/OpenSIPS/opensips/commit/a9bd831a605a8e8443a355f2fcc5cb52d6d1f2b2
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2021-07-23 (Fri, 23 Jul 2021)

  Changed paths:
    M modules/b2b_logic/logic.c

  Log Message:
  -----------
  b2b_logic: properly end dialog with notified entity

Send BYE instead of just deleting the entity after completing the
bridging action, when using the "n" flag for b2b_bridge().

(cherry picked from commit 250a33c61c677642f74a242d4b600165f8803643)


Compare: https://github.com/OpenSIPS/opensips/compare/1e94abe8837f...a9bd831a605a



More information about the Devel mailing list