Module: kamailio
Branch: master
Commit: 2b1ca7813cf5014553c807c1a5034c404b3685a5
URL: 
https://github.com/kamailio/kamailio/commit/2b1ca7813cf5014553c807c1a5034c404b3685a5

Author: Dennis Yurasov <denni...@yandex-team.ru>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-02-21T10:49:47+01:00

dialog: fixed DLG_FLAG_CHANGED_PROF value and setting DLG_FLAG_DEL

- GH #4151

---

Modified: src/modules/dialog/dlg_hash.h
Modified: src/modules/dialog/dlg_var.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/2b1ca7813cf5014553c807c1a5034c404b3685a5.diff
Patch: 
https://github.com/kamailio/kamailio/commit/2b1ca7813cf5014553c807c1a5034c404b3685a5.patch

---

diff --git a/src/modules/dialog/dlg_hash.h b/src/modules/dialog/dlg_hash.h
index 804b736b4ee..5d19841465a 100644
--- a/src/modules/dialog/dlg_hash.h
+++ b/src/modules/dialog/dlg_hash.h
@@ -70,7 +70,7 @@
 
 #define DLG_FLAG_TM (1 << 9)                    /*!< dialog is set in 
transaction */
 #define DLG_FLAG_EXPIRED (1 << 10)              /*!< dialog is expired */
-#define DLG_FLAG_CHANGED_PROF (1 << 10)         /*!< dialog-profiles changed 
DMQ*/
+#define DLG_FLAG_CHANGED_PROF (1 << 11)         /*!< dialog-profiles changed - 
DMQ */
 #define DLG_FLAG_DB_LOAD_EXTRA (1 << 12) /*!< dialog loaded extra from db */
 
 /* internal flags stored in db */
diff --git a/src/modules/dialog/dlg_var.c b/src/modules/dialog/dlg_var.c
index db5f61c4e05..3368728297c 100644
--- a/src/modules/dialog/dlg_var.c
+++ b/src/modules/dialog/dlg_var.c
@@ -197,8 +197,8 @@ int set_dlg_variable_unsafe(struct dlg_cell *dlg, str *key, 
str *val)
                                        it_prev->next = it->next;
                                else
                                        *var_list = it->next;
-                               /* Set the delete-flag for the current var: */
-                               it->vflags &= DLG_FLAG_DEL;
+                               /* set the delete-flag for the current var */
+                               it->vflags |= DLG_FLAG_DEL;
                        } else {
                                /* replace the current it with var and free the 
it */
                                var->next = it->next;

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to