Module: kamailio Branch: master Commit: b3b35bc55aa825a5a0aab98ba705fda9afb4fb06 URL: https://github.com/kamailio/kamailio/commit/b3b35bc55aa825a5a0aab98ba705fda9afb4fb06
Author: root <root@ip-10-199-160-17> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-05-11T21:32:09+02:00 dialog: replicate if same state This is safe since last_modified will catch possible stale syncs of the same state. The benefit is that can sync e.g. re-INVITEs and update contact. --- Modified: src/modules/dialog/dlg_handlers.c --- Diff: https://github.com/kamailio/kamailio/commit/b3b35bc55aa825a5a0aab98ba705fda9afb4fb06.diff Patch: https://github.com/kamailio/kamailio/commit/b3b35bc55aa825a5a0aab98ba705fda9afb4fb06.patch --- diff --git a/src/modules/dialog/dlg_handlers.c b/src/modules/dialog/dlg_handlers.c index 8b57000b2bb..f1be8fa52fe 100644 --- a/src/modules/dialog/dlg_handlers.c +++ b/src/modules/dialog/dlg_handlers.c @@ -599,7 +599,7 @@ static void dlg_onreply(struct cell *t, int type, struct tmcb_params *param) done: if(dlg_enable_dmq && (dlg->iflags & DLG_IFLAG_DMQ_SYNC) - && new_state > old_state) { + && new_state >= old_state) { dlg_dmq_replicate_action(DLG_DMQ_STATE, dlg, 0, 0); } @@ -1579,7 +1579,7 @@ void dlg_onroute(struct sip_msg *req, str *route_params, void *param) done: if(dlg_enable_dmq && (dlg->iflags & DLG_IFLAG_DMQ_SYNC) - && new_state > old_state) { + && new_state >= old_state) { dlg_dmq_replicate_action(DLG_DMQ_STATE, dlg, 0, 0); } @@ -1699,7 +1699,7 @@ void dlg_ontimeout(struct dlg_tl *tl) } if(dlg_enable_dmq && (dlg->iflags & DLG_IFLAG_DMQ_SYNC) - && new_state > old_state) { + && new_state >= old_state) { dlg_dmq_replicate_action(DLG_DMQ_STATE, dlg, 0, 0); } _______________________________________________ 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!
