[OpenSIPS-Devel] [OpenSIPS/opensips] 24dad2: tm: Fix context for PN timeout 408

Liviu Chircu noreply at github.com
Thu Jun 25 15:40:00 UTC 2026


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 24dad2a27c60bdedbae793979d0786be53bda3e2
      https://github.com/OpenSIPS/opensips/commit/24dad2a27c60bdedbae793979d0786be53bda3e2
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2026-06-25 (Thu, 25 Jun 2026)

  Changed paths:
    M modules/tm/t_fwd.c

  Log Message:
  -----------
  tm: Fix context for PN timeout 408

Commit 5dbbd997f7 added a PN wait timeout path which sends a local 408
when the EBR subscription expires, but called relay_reply() without the
normal TM reply context.

Install a temporary global context, set the current transaction and branch
index while generating the fake 408, then restore them afterwards. This
prevents dialog reply callbacks from crashing on PN timeout.

(cherry picked from commit 8832a4461dab35ac56e2c4b81c0fcb6edcf93690)
(cherry picked from commit 6a9d4d306805acbc6f7c6f9102bd89bb53c4a4df)



To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications



More information about the Devel mailing list