Skip to content

Commit

Permalink
dialog: advance to next cell in case of error
Browse files Browse the repository at this point in the history
(cherry picked from commit 70db2cf)
  • Loading branch information
razvancrainea committed Jul 8, 2016
1 parent 0a3eb39 commit ac8d93b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/dialog/dlg_db_handler.c
Expand Up @@ -1381,6 +1381,7 @@ void dialog_update_db(unsigned int ticks, void * param)
if((dialog_dbf.insert(dialog_db_handle, insert_keys,
values, DIALOG_TABLE_TOTAL_COL_NO)) !=0){
LM_ERR("could not add another dialog to db\n");
cell = cell->next;
continue;
}

Expand Down Expand Up @@ -1422,6 +1423,7 @@ void dialog_update_db(unsigned int ticks, void * param)
if((dialog_dbf.update(dialog_db_handle, (insert_keys), 0,
(values), (insert_keys+15), (values+15), 1, 10)) !=0) {
LM_ERR("could not update database info\n");
cell = cell->next;
continue;
}

Expand All @@ -1441,6 +1443,7 @@ void dialog_update_db(unsigned int ticks, void * param)
if((dialog_dbf.update(dialog_db_handle, (insert_keys), 0,
(values), (insert_keys+21), (values+21), 1, 3)) !=0) {
LM_ERR("could not update database info\n");
cell = cell->next;
continue;
}

Expand Down

0 comments on commit ac8d93b

Please sign in to comment.