[sr-dev] git:master:ad72150a: dialog: set the db null flag properly for contact fields

Daniel-Constantin Mierla miconda at gmail.com
Thu Aug 27 09:25:09 CEST 2015


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-08-27T09:24:31+02:00

dialog: set the db null flag properly for contact fields

---

Modified: modules/dialog/dlg_db_handler.c

---

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

---

diff --git a/modules/dialog/dlg_db_handler.c b/modules/dialog/dlg_db_handler.c
index 74e1646..018e37d 100644
--- a/modules/dialog/dlg_db_handler.c
+++ b/modules/dialog/dlg_db_handler.c
@@ -773,10 +773,10 @@ int update_dialog_dbinfo_unsafe(struct dlg_cell * cell)
 		SET_STR_VALUE(values+16, cell->route_set[DLG_CALLER_LEG]);
 		SET_STR_VALUE(values+17, cell->route_set[DLG_CALLEE_LEG]);
 
-		SET_PROPER_NULL_FLAG(cell->route_set[DLG_CALLER_LEG], 	values, 14);
-		SET_PROPER_NULL_FLAG(cell->route_set[DLG_CALLEE_LEG], 	values, 15);
-		SET_PROPER_NULL_FLAG(cell->contact[DLG_CALLER_LEG], 	values, 16);
-		SET_PROPER_NULL_FLAG(cell->contact[DLG_CALLEE_LEG], 	values, 17);
+		SET_PROPER_NULL_FLAG(cell->contact[DLG_CALLER_LEG], 	values, 14);
+		SET_PROPER_NULL_FLAG(cell->contact[DLG_CALLEE_LEG], 	values, 15);
+		SET_PROPER_NULL_FLAG(cell->route_set[DLG_CALLER_LEG], 	values, 16);
+		SET_PROPER_NULL_FLAG(cell->route_set[DLG_CALLEE_LEG], 	values, 17);
 
 		VAL_NULL(values+18) = 0;
 		VAL_INT(values+18)  = cell->sflags;




More information about the sr-dev mailing list