Hi Team,
We are currently using Asterisk certified/18.9-cert3 and have encountered an issue where no warning or alert is generated when CDR insert fails due to MySQL ODBC connection issues.
According to the code in cdr_adaptive_odbc.c
, we should receive a warning when the insert operation fails:
if (rows == 0) {
ast_log(LOG_WARNING, “cdr_adaptive_odbc: Insert failed on ‘%s:%s’. CDR failed: %s\n”, tableptr->connection, tableptr->table, ast_str_buffer(sql));
}
However, in our case, even though the insert operation fails, no warnings or alerts are logged. Could you please assist us in identifying the cause or suggest a solution to ensure we receive the proper alerts in case of such failures?