Active Calls

Hi Friends,
Happy New Year

I was developing billing system for my end user customers. I need to get Asterisk Active calls in MySQL database with full status of call likem ringing, UP and runtime?

i will be thank full for your help and suggestion.

Thank You

May be this one useful for you.