[sr-dev] git:master:43c77faa: dialog: set DLG_FLAG_CHANGED for changed dialog variables

Dmitri Savolainen savolainen at erinaco.ru
Tue Aug 9 15:39:10 CEST 2016


Module: kamailio
Branch: master
Commit: 43c77faa00021c7c0ee350ecc9965fd517ead92f
URL: https://github.com/kamailio/kamailio/commit/43c77faa00021c7c0ee350ecc9965fd517ead92f

Author: Dmitri Savolainen <savolainen at erinaco.ru>
Committer: Dmitri Savolainen <savolainen at erinaco.ru>
Date: 2016-08-09T12:01:59+03:00

dialog: set DLG_FLAG_CHANGED for changed dialog variables

improper flag setting has been the cause of the not DB saving in some scenarios

---

Modified: modules/dialog/dlg_var.c

---

Diff:  https://github.com/kamailio/kamailio/commit/43c77faa00021c7c0ee350ecc9965fd517ead92f.diff
Patch: https://github.com/kamailio/kamailio/commit/43c77faa00021c7c0ee350ecc9965fd517ead92f.patch

---

diff --git a/modules/dialog/dlg_var.c b/modules/dialog/dlg_var.c
index e89ee27..dd8dd6d 100644
--- a/modules/dialog/dlg_var.c
+++ b/modules/dialog/dlg_var.c
@@ -186,7 +186,7 @@ int set_dlg_variable_unsafe(struct dlg_cell *dlg, str *key, str *val)
 				/* replace the current it with var and free the it */
 				var->next = it->next;
 				/* Take the previous vflags: */
-				var->vflags = it->vflags & DLG_FLAG_CHANGED;
+				var->vflags = it->vflags | DLG_FLAG_CHANGED;
 				if (it_prev) it_prev->next = var;
 				else *var_list = var;				  
 			}




More information about the sr-dev mailing list