Module: kamailio Branch: master Commit: 5730d41e15dfca33e1b7d2ecafc48d595a4a589e URL: https://github.com/kamailio/kamailio/commit/5730d41e15dfca33e1b7d2ecafc48d595a4a589e
Author: Stefan Mititelu <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-07-01T08:34:34+02:00 dialog: run terminated callbacks when dialog ended and synced via dmq Skip if already in DLG_STATE_DELETED --- Modified: src/modules/dialog/dlg_dmq.c --- Diff: https://github.com/kamailio/kamailio/commit/5730d41e15dfca33e1b7d2ecafc48d595a4a589e.diff Patch: https://github.com/kamailio/kamailio/commit/5730d41e15dfca33e1b7d2ecafc48d595a4a589e.patch --- diff --git a/src/modules/dialog/dlg_dmq.c b/src/modules/dialog/dlg_dmq.c index 97522d9103e..3d89150c034 100644 --- a/src/modules/dialog/dlg_dmq.c +++ b/src/modules/dialog/dlg_dmq.c @@ -387,6 +387,12 @@ int dlg_dmq_handle_msg( /* keep dialog around for a bit, to prevent out-of-order * syncs to reestablish the dlg */ dlg->init_ts = ksr_time_uint(NULL, NULL); + + if(dlg->state != DLG_STATE_DELETED) { + run_dlg_callbacks(DLGCB_TERMINATED, dlg, NULL, NULL, + DLG_DIR_NONE, 0); + } + break; default: LM_ERR("unhandled state update to state %u\n", state); _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
