Permalink
Browse files

when saving dialog flags in DB for the first time, do not save the DL…

…G_FLAG_NEW
  • Loading branch information...
1 parent 9063751 commit e9301bae4d171b55be8a34e219e0ef1ea63eaba6 vladut-paiu committed Jul 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/dialog/dlg_db_handler.c
@@ -736,7 +736,7 @@ int update_dialog_dbinfo(struct dlg_cell * cell)
SET_STR_VALUE(values+15, cell->legs[callee_leg].r_cseq);
SET_INT_VALUE(values+16,cell->legs[DLG_CALLER_LEG].last_gen_cseq);
SET_INT_VALUE(values+17,cell->legs[callee_leg].last_gen_cseq);
- SET_INT_VALUE(values+18, cell->flags);
+ SET_INT_VALUE(values+18, cell->flags & ~(DLG_FLAG_NEW|DLG_FLAG_CHANGED|DLG_FLAG_VP_CHANGED));
set_final_update_cols(values+19, cell, 0);
SET_STR_VALUE(values+22, cell->legs[DLG_CALLER_LEG].route_set);
SET_STR_VALUE(values+23, cell->legs[callee_leg].route_set);
@@ -1088,7 +1088,7 @@ void dialog_update_db(unsigned int ticks, void * param)
SET_INT_VALUE(values+21, cell->legs[callee_leg].last_gen_cseq);
set_final_update_cols(values+22, cell, on_shutdown);
- SET_INT_VALUE(values+25, cell->flags);
+ SET_INT_VALUE(values+25, cell->flags & ~(DLG_FLAG_NEW|DLG_FLAG_CHANGED|DLG_FLAG_VP_CHANGED));
CON_PS_REFERENCE(dialog_db_handle) = &my_ps_insert;
if (con_set_inslist(&dialog_dbf,dialog_db_handle,

0 comments on commit e9301ba

Please sign in to comment.