Skip to content
Snippets Groups Projects
Commit 2ca3b6d9 authored by Nic Colledge's avatar Nic Colledge
Browse files

app_voicemail: Fix data-type mismatch between app_voicemail and database

Fix data-type mismatch between app_voicemail and database columns
exposed by new version of MariaDB

ASTERISK-27760

Change-Id: I8543ad480a08c98be78bde1ee870e6e6c84b2c5b
parent 60ce5d00
No related branches found
No related tags found
No related merge requests found
......@@ -4429,6 +4429,14 @@ static int store_file(const char *dir, const char *mailboxuser, const char *mail
else
snprintf(sql, sizeof(sql), "INSERT INTO %s (dir,msgnum,recording,context,macrocontext,callerid,origtime,duration,mailboxuser,mailboxcontext,flag,msg_id) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)", odbc_table);
 
if (ast_strlen_zero(idata.origtime)) {
idata.origtime = "0";
}
if (ast_strlen_zero(idata.duration)) {
idata.duration = "0";
}
if ((stmt = ast_odbc_direct_execute(obj, insert_data_cb, &idata))) {
SQLFreeHandle(SQL_HANDLE_STMT, stmt);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment