Module: kamailio
Branch: master
Commit: 8fd514f9bb9e819fa6e5880dc229955cafd72494
URL:
https://github.com/kamailio/kamailio/commit/8fd514f9bb9e819fa6e5880dc229955…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-20T18:08:56+01:00
dialog: clean very old dialogs for both unconfirmed and early state
- it was done only for unconfirmed state
---
Modified: src/modules/dialog/dlg_hash.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8fd514f9bb9e819fa6e5880dc229955…
Patch:
https://github.com/kamailio/kamailio/commit/8fd514f9bb9e819fa6e5880dc229955…
---
diff --git a/src/modules/dialog/dlg_hash.c b/src/modules/dialog/dlg_hash.c
index 30c1cf76d1..5c11bada52 100644
--- a/src/modules/dialog/dlg_hash.c
+++ b/src/modules/dialog/dlg_hash.c
@@ -235,9 +235,9 @@ int dlg_clean_run(ticks_t ti)
while (dlg) {
tdlg = dlg;
dlg = dlg->next;
- if(tdlg->state==DLG_STATE_UNCONFIRMED && tdlg->init_ts>0
+ if(tdlg->state<=DLG_STATE_EARLY && tdlg->init_ts>0
&& tdlg->init_ts<tm-dlg_early_timeout) {
- /* dialog in early state older than 5min */
+ /* dialog in unconfirmed or early state older than expected */
LM_NOTICE("dialog in early state is too old (%p ref %d)\n",
tdlg, tdlg->ref);
unlink_unsafe_dlg(&d_table->entries[i], tdlg);