[OpenSIPS-Devel] [OpenSIPS/opensips] 0fd68d: b2b_entities: properly handle unexpected ACKs

Vlad Pătrașcu noreply at github.com
Sat Jun 25 18:06:55 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 0fd68d98dafa34a27a6aed6fdf90e2b3d97111a5
      https://github.com/OpenSIPS/opensips/commit/0fd68d98dafa34a27a6aed6fdf90e2b3d97111a5
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2022-06-25 (Sat, 25 Jun 2022)

  Changed paths:
    M modules/b2b_entities/dlg.c

  Log Message:
  -----------
  b2b_entities: properly handle unexpected ACKs

Fixes an issue where a 487 reply is not relayed after an unexpected ACK is
received following a CANCEL.

Thanks to David Escartin from Sonoc for reporting.

(cherry picked from commit 81cb0903aedd2271e9a93789e83e1d96e28352f1)


  Commit: 98490afb2474c86e442a098a6b4a0d9d046915c3
      https://github.com/OpenSIPS/opensips/commit/98490afb2474c86e442a098a6b4a0d9d046915c3
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2022-06-25 (Sat, 25 Jun 2022)

  Changed paths:
    M modules/b2b_entities/dlg.c

  Log Message:
  -----------
  b2b_entities: properly handle negative replies to reINVITEs

Do not change the dialog state to terminated as a result of a sending a
negative reply to a reINVITE. This would have prevented the forwarding of
further requests.

Thanks to David Escartin from Sonoc for reporting and testing the fix.

(cherry picked from commit e8df85a64a3b8095cd95c0b2d9254de605b61384)


  Commit: be5a4efda1a356812addcbdd0219af5cdaa7b733
      https://github.com/OpenSIPS/opensips/commit/be5a4efda1a356812addcbdd0219af5cdaa7b733
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2022-06-25 (Sat, 25 Jun 2022)

  Changed paths:
    M modules/b2b_entities/b2b_common.h
    M modules/b2b_logic/b2b_logic.c
    M modules/b2b_logic/logic.c

  Log Message:
  -----------
  b2b_logic: prevent possible crashes when accessing $b2b_logic vars

Make sure to always search in the hash for the current tuple instead of relying
on a pointer saved in the b2b context. There might be races between processing
BYEs and deleting the tuple and running a b2b_logic reply route where we access
a $b2b_logic variable.

Thanks to David Escartin from Sonoc for reporting.

(cherry picked from commit ff646336e82ce1bdea56156c826520090c9786ad)


  Commit: 2dc1e98662b819b5ff079097697e43bb6a1b1c60
      https://github.com/OpenSIPS/opensips/commit/2dc1e98662b819b5ff079097697e43bb6a1b1c60
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2022-06-25 (Sat, 25 Jun 2022)

  Changed paths:
    M modules/b2b_entities/dlg.c

  Log Message:
  -----------
  b2b_entities: fix possible shm memory leaks

Fix leaking transactions when deleting an entity without sending a final reply.

Thanks to David Escartin from Sonoc for reporting.

(cherry picked from commit c7a5f41754c03fa20921e86a7ff25d2f0b0abf76)


  Commit: 931b9650ca87ff482f22064b96108eaa6e49f2ed
      https://github.com/OpenSIPS/opensips/commit/931b9650ca87ff482f22064b96108eaa6e49f2ed
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2022-06-25 (Sat, 25 Jun 2022)

  Changed paths:
    M modules/b2b_logic/records.c

  Log Message:
  -----------
  b2b_logic: fix possible crash when init_callid_hdr param is set

The crash would occur if the Call-ID header name is received in compact
form("i" instead of "Call-ID").

Thanks to David Escartin from Sonoc for reporting.

(cherry picked from commit fa2145b12cb6590e4366cb8a2659b7b79813b374)


Compare: https://github.com/OpenSIPS/opensips/compare/3b6cf1640fc5...931b9650ca87



More information about the Devel mailing list