<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hello guys,<br>
<br>
I am trying to get the CDRs generated in JSON format just as <em>acc_json module</em> does for transactions accounting, but for now I didn't find a way to do this directly from Kamailio. Please correct me if I am wrong.<br>
<br>
As far as I understood from the code, acc_json and other modules extending the acc itself are based on the
<em>acc_engine structure</em> that contains different function pointers. acc module, by means of
<em>acc_run_engines()</em> then calls the appropriate functions in various places.<br>
<br>
The programming solutions are at least:<br>
</p>
<ul>
<li>extend inside the acc module itself the (log_)write_cdr() function to offer on demand JSON output -- simple to implement, breaks the adaptability given until now by the acc engines</li></ul>
<ul>
<li>create a sort of an acc_engine for CDRs as well and have this called from an external module (acc_json module)</li></ul>
<p><br>
Is there an implementation preference you see in order to attain this CDR as JSON? Do you have any suggestions?<br>
<br>
Thank you,<br>
Lucian Balaceanu<br>
</p>
</body>
</html>