Merge "app_voicemail: Fix incorrect msg leaving/retrieving an ODBC voicemail"

This commit is contained in:
Kevin Harwell 2018-05-18 17:18:59 -05:00 committed by Gerrit Code Review
commit 01f3483e6b
1 changed files with 4 additions and 0 deletions

View File

@ -3978,6 +3978,10 @@ static int retrieve_file(char *dir, int msgnum)
generate_msg_id(msg_id);
snprintf(rowdata, sizeof(rowdata), "%s", msg_id);
odbc_update_msg_id(dir, msgnum, msg_id);
} else if (res == SQL_NULL_DATA && !strcasecmp(coltitle, "category")) {
/* Ignore null column value for category */
ast_debug(3, "Ignoring null category column in ODBC voicemail retrieve_file.\n");
continue;
} else if (!SQL_SUCCEEDED(res)) {
ast_log(AST_LOG_WARNING, "SQL Get Data error! coltitle=%s\n[%s]\n\n", coltitle, sql);
goto bail_with_handle;