Running Asterisk 16.5 (built from gerrit clone).
Problem relates to CDR and Adaptive ODBC module. It occurs when issuing a “core reload” in the CLI:
[2019-09-05 13:46:17] ERROR: cdr_adaptive_odbc.c:172 load_config: Unable to query database columns on connection ‘asterisk-db’. Skipping.
I’m recording CDR to MySQL via ODBC. On Asterisk load everything works fine but if I execute a “core reload” on the CLI, I am getting the error above. The effect is that CDR records stop being written. As a work around, I can execute “module reload res_odbc.so” and CDRs are once again written.
Can anyone shed light on the possible cause of this error and what I can do to fix it.