Module: kamailio Branch: master Commit: 2962852bf706692bdbc9b51419dbdc2012f34e1b URL: https://github.com/kamailio/kamailio/commit/2962852bf706692bdbc9b51419dbdc20...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2015-09-04T11:38:02+02:00
dialog: more debug when storing vars in database
---
Modified: modules/dialog/dlg_db_handler.c
---
Diff: https://github.com/kamailio/kamailio/commit/2962852bf706692bdbc9b51419dbdc20... Patch: https://github.com/kamailio/kamailio/commit/2962852bf706692bdbc9b51419dbdc20...
---
diff --git a/modules/dialog/dlg_db_handler.c b/modules/dialog/dlg_db_handler.c index 018e37d..e8c866d 100644 --- a/modules/dialog/dlg_db_handler.c +++ b/modules/dialog/dlg_db_handler.c @@ -712,15 +712,18 @@ 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*/ };
+ i = 0; if( (cell->dflags & DLG_FLAG_NEW) != 0 || (cell->dflags & DLG_FLAG_CHANGED_VARS) != 0) { /* iterate the list */ for(var=cell->vars ; var ; var=var->next) { if (update_dialog_vars_dbinfo(cell, var) != 0) return -1; + i++; } /* Remove the flag */ cell->dflags &= ~DLG_FLAG_CHANGED_VARS; + LM_DBG("updated %d vars for dlg [%d:%d]\n", i, cell->h_entry, cell->h_id); }
if(use_dialog_table()!=0)