<div dir="ltr"><div><div>Hi,<br><br></div>Sorry for the spam last email i miss-clicked on send amidst writing the email. <br><br></div>Anyways the problem i am facing is that my ACC module is configured with MySQL DB backend and the CDR's are being written. However the problem i am facing is that it is not logging duration into DB or syslog. Here are debug logs where query is being prepared and inserted<br><br><ul><li>db_mysql_do_prepared_query: new query=|insert into acc(<b>method,from_tag,to_tag,callid,sip_code,sip_reason,time,caller_id,callee_id,serverid,info,billResponse,balance</b> ) values (?,?,?,?,?,?,?,?,?,?,?,?,?)|</li><li>DBG:db_mysql:re_init_statement:  query  is <insert into acc (<b>method,from_tag,to_tag,callid,sip_code,sip_reason,time,caller_id,callee_id,serverid,info,billResponse,balance</b> ) values(?,?,?,?,?,?,?,?,?,?,?,?,?)>, ptr=(nil)</li></ul><p>The problem is that i dont see duration in this query. Am i missing some flag or something that needs to be set for duration to be logged in DB? <br></p><p><b>P.S. I am using opensips 1.11</b></p><p>Regards,<br></p><p>Qasim<br></p></div>