[sr-dev] git:master:6620fe7b: dialog: don't update dlg vars in db if in deleted state

Daniel-Constantin Mierla miconda at gmail.com
Thu Oct 1 16:52:52 CEST 2015


Module: kamailio
Branch: master
Commit: 6620fe7b0963ffe0e2c0d4ab7a38e85d1dfd121d
URL: https://github.com/kamailio/kamailio/commit/6620fe7b0963ffe0e2c0d4ab7a38e85d1dfd121d

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-10-01T16:51:59+02:00

dialog: don't update dlg vars in db if in deleted state

- dlg record and vars are scheduled for deletion

---

Modified: modules/dialog/dlg_db_handler.c

---

Diff:  https://github.com/kamailio/kamailio/commit/6620fe7b0963ffe0e2c0d4ab7a38e85d1dfd121d.diff
Patch: https://github.com/kamailio/kamailio/commit/6620fe7b0963ffe0e2c0d4ab7a38e85d1dfd121d.patch

---

diff --git a/modules/dialog/dlg_db_handler.c b/modules/dialog/dlg_db_handler.c
index da4b091..e3b66df 100644
--- a/modules/dialog/dlg_db_handler.c
+++ b/modules/dialog/dlg_db_handler.c
@@ -712,8 +712,8 @@ int update_dialog_dbinfo_unsafe(struct dlg_cell * cell)
 			&sflags_column, /*18*/     &toroute_name_column, /*19*/ &req_uri_column, /*20*/
 			&xdata_column, /*21*/      &iflags_column  /*22*/ };
 
-	if(cell->state<DLG_STATE_EARLY) {
-		LM_DBG("not storing dlg in db during initial state\n");
+	if(cell->state<DLG_STATE_EARLY || cell->state==DLG_STATE_DELETED) {
+		LM_DBG("not storing dlg in db during initial or deleted states\n");
 		return 0;
 	}
 




More information about the sr-dev mailing list