<div>Dear all,</div>
<div>&nbsp;</div>
<div>I am working on&nbsp;a customized billing engine.&nbsp; The reason why I am writing up one instead of using the existing package is because I have my own UI that I want to use for displaying data and registration.&nbsp;&nbsp; Also, I would like to keep a record of the among of times user spend in the different functionalities when an incoming call occurs.&nbsp; </div>

<div>&nbsp;</div>
<div>I am planning to record an audit trail of any incoming/outcoming call through the use of AGI which simply puts status info and a session unique id&nbsp;into the DB before and after an outgoing /incoming call is made.&nbsp; For the incoming call, I would like to also record any forwarding call in the audit trail so users can see how many seconds they spend on listening to voice mail and how many second they spend in forwarding to an external phone.&nbsp; </div>

<div>&nbsp;</div>
<div>In order to fulfill this function, is using AGI call to record the status info frequently inside the dialplan a feasible solution?&nbsp; Is this the right approach in developing a billing solution for Asterisk?&nbsp; </div>
<div>&nbsp;</div>
<div>Thanks alot for you inputs.</div>
<div>&nbsp;</div>
<div>Regards,</div>
<div>Pete</div>
<div>&nbsp;</div>
<div>&nbsp;</div>