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
  • Loading branch information
razvancrainea committed Jul 8, 2016
1 parent 4094818 commit 70db2cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/dialog/dlg_db_handler.c
Expand Up @@ -1388,6 +1388,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 @@ -1429,6 +1430,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, 11)) !=0) {
LM_ERR("could not update database info\n");
cell = cell->next;
continue;
}

Expand All @@ -1448,6 +1450,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, 4)) !=0) {
LM_ERR("could not update database info\n");
cell = cell->next;
continue;
}

Expand Down

0 comments on commit 70db2cf

Please sign in to comment.