Module: kamailio Branch: master Commit: ef3bc3903ed119605162cba8bb5442de58973400 URL: https://github.com/kamailio/kamailio/commit/ef3bc3903ed119605162cba8bb5442de...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: GitHub noreply@github.com Date: 2016-08-09T15:39:03+02:00
Merge pull request #741 from snen/dialog_vars_update_error_fix
dialog: set DLG_FLAG_CHANGED for changed dialog variables
---
Modified: modules/dialog/dlg_var.c
---
Diff: https://github.com/kamailio/kamailio/commit/ef3bc3903ed119605162cba8bb5442de... Patch: https://github.com/kamailio/kamailio/commit/ef3bc3903ed119605162cba8bb5442de...
---
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; }