[sr-dev] git:master:22e4031c: dialog: remove replicated dialog from profile as soon as gets to terminated state
Charles Chance
charles.chance at sipcentric.com
Fri Oct 27 12:34:36 CEST 2017
Module: kamailio
Branch: master
Commit: 22e4031cdcc7ba7c90553bd569e289043c0c64cf
URL: https://github.com/kamailio/kamailio/commit/22e4031cdcc7ba7c90553bd569e289043c0c64cf
Author: Charles Chance <charles.chance at sipcentric.com>
Committer: Charles Chance <charles.chance at sipcentric.com>
Date: 2017-10-25T15:29:07+01:00
dialog: remove replicated dialog from profile as soon as gets to terminated state
- matches local (non-replicated) behaviour introduced in edf61ac
---
Modified: src/modules/dialog/dlg_dmq.c
---
Diff: https://github.com/kamailio/kamailio/commit/22e4031cdcc7ba7c90553bd569e289043c0c64cf.diff
Patch: https://github.com/kamailio/kamailio/commit/22e4031cdcc7ba7c90553bd569e289043c0c64cf.patch
---
diff --git a/src/modules/dialog/dlg_dmq.c b/src/modules/dialog/dlg_dmq.c
index 668bdbdef4..1a27842254 100644
--- a/src/modules/dialog/dlg_dmq.c
+++ b/src/modules/dialog/dlg_dmq.c
@@ -323,6 +323,13 @@ int dlg_dmq_handle_msg(struct sip_msg* msg, peer_reponse_t* resp, dmq_node_t* no
dlg, dlg->h_entry, dlg->h_id);
}
}
+
+ /* remove dialog from profiles when no longer active */
+ if (dlg->profile_links!=NULL) {
+ destroy_linkers(dlg->profile_links);
+ dlg->profile_links = NULL;
+ }
+
/* prevent DB sync */
dlg->dflags |= DLG_FLAG_NEW;
/* keep dialog around for a bit, to prevent out-of-order
More information about the sr-dev
mailing list