We are writing CDR to a MS SQL db, using settings in cdr_adaptive_odbc (our table has “user friendly” field names).
All is good, and the DB is getting populated, but for every successful insert, there is a second ODBC insert that uses the standard field names, and it throws an error:
[Oct 14 16:23:24] WARNING[26748] cdr_odbc.c: cdr_odbc: Error in ExecDirect: -1, query is: INSERT INTO MYTABLE (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid,userfield) VALUES ({ts '2019-10-14 16:23:20'},?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
[Oct 14 16:23:24] ERROR[26748] cdr_odbc.c: CDR direct execute failed
Is there a way to stop this from happening?