Module: kamailio
Branch: master
Commit: 6620fe7b0963ffe0e2c0d4ab7a38e85d1dfd121d
URL:
https://github.com/kamailio/kamailio/commit/6620fe7b0963ffe0e2c0d4ab7a38e85…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/6620fe7b0963ffe0e2c0d4ab7a38e85…
Patch:
https://github.com/kamailio/kamailio/commit/6620fe7b0963ffe0e2c0d4ab7a38e85…
---
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;
}