[sr-dev] git:master:8fd514f9: dialog: clean very old dialogs for both unconfirmed and early state

Daniel-Constantin Mierla miconda at gmail.com
Sun Jan 20 18:10:35 CET 2019

Module: kamailio
Branch: master
Commit: 8fd514f9bb9e819fa6e5880dc229955cafd72494
URL: https://github.com/kamailio/kamailio/commit/8fd514f9bb9e819fa6e5880dc229955cafd72494

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/8fd514f9bb9e819fa6e5880dc229955cafd72494.diff
Patch: https://github.com/kamailio/kamailio/commit/8fd514f9bb9e819fa6e5880dc229955cafd72494.patch


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);

More information about the sr-dev mailing list