Hi Jan,<div><br></div><div>Thanks for your inputs.</div><div><br></div><div>Basically what you described here makes me plan to create completely different thing that I was planning initially.</div><div><br></div><div>It should be &quot;mod_cdr_mediation&quot; - it must read the CDRs prepared by mod_cdr_csv, apply business rules, insert into the database and move successfully processed CDRs into archive directory.</div>
<div><br></div><div>If to go in this direction, I would also give the possibility to invoke a Lua/JS script before exporting CDRs, so user will create complex business logic to apply on the CDR values.</div><div><br></div>
<div>It will give a lot of flexibility, for example user can decide whether to skip some CDRs from inserting into the database, can enhance the values, etc...</div><div><br></div><div>Lua/FS script will receive selected CDR fields from the session variables, and enhanced / new values will be sent back to the mod_cdr_mediation for exporting.</div>
<div><br></div><div>Do you think this idea reflects what you described?</div><div><br></div><div>Thank you,</div><div>Vitalie</div><div><br></div><div><br></div><div><br></div>