mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 07:01:09 +00:00
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
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user