Module: kamailio Branch: master Commit: 0a3ba3ca39d7215a9ac6b8906768e2835f6de353 URL: https://github.com/kamailio/kamailio/commit/0a3ba3ca39d7215a9ac6b8906768e283...
Author: Charles Chance charles.chance@sipcentric.com Committer: GitHub noreply@github.com Date: 2017-10-27T11:34:32+01:00
Merge pull request #1284 from kamailio/cchance/dialog
dialog: remove replicated dialog from profile as soon as gets to termâ¦
---
Modified: src/modules/dialog/dlg_dmq.c
---
Diff: https://github.com/kamailio/kamailio/commit/0a3ba3ca39d7215a9ac6b8906768e283... Patch: https://github.com/kamailio/kamailio/commit/0a3ba3ca39d7215a9ac6b8906768e283...
---
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