[OpenSIPS-Devel] [OpenSIPS/opensips] 2bc0e4: pua_dialoginfo: fix early state lifetime and clean...

Bogdan Andrei IANCU noreply at github.com
Thu Jun 11 12:07:18 UTC 2026


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 2bc0e4348a0062b218e49322aff554b063808c42
      https://github.com/OpenSIPS/opensips/commit/2bc0e4348a0062b218e49322aff554b063808c42
  Author: Norm Brandinger <n.brandinger at gmail.com>
  Date:   2026-06-10 (Wed, 10 Jun 2026)

  Changed paths:
    M modules/pua_dialoginfo/pua_dialoginfo.c

  Log Message:
  -----------
  pua_dialoginfo: fix early state lifetime and clean up dangling early branches

The expire for "trying"/"early" publications was computed from the
remainder of the branch fr_timer, which is updated only AFTER the
TMCB_RESPONSE_IN callback runs. A provisional reply arriving close to
the timer expiration produced a near-zero lifetime, so the published
state expired before the dialog module could update it, leaving orphan
presence records. Use DEFAULT_CREATED_LIFETIME instead.

As the longer lifetime may leave a dangling "early" state when a branch
never receives a final negative reply (e.g. UAS goes silent after
ringing), also hook on TMCB_ON_FAILURE and publish "terminated" for any
branch from the last set of active branches which entered early state
but never failed.

Closes #3802


  Commit: 6755c14afc60f3bfc92e06d825742d6b6ca9a013
      https://github.com/OpenSIPS/opensips/commit/6755c14afc60f3bfc92e06d825742d6b6ca9a013
  Author: Bogdan Andrei IANCU <bogdan at opensips.org>
  Date:   2026-06-11 (Thu, 11 Jun 2026)

  Changed paths:
    M modules/pua_dialoginfo/pua_dialoginfo.c

  Log Message:
  -----------
  Merge pull request #3915 from NormB/fix/pua-dialoginfo-early-lifetime

pua_dialoginfo: fix early state lifetime and clean up dangling early branches


Compare: https://github.com/OpenSIPS/opensips/compare/4ddb8f0ed93e...6755c14afc60

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



More information about the Devel mailing list