Module for producing call stats

Hi Guys

I’ve inherited a MySQL database linked to an Asterisk server.

Is there a module or tables/queries that I can incorporate into he DB to provide stats like Average call time, average queue wait time, call peak times etc?
I don’t want to re-invent the wheel, that would probably take me months!

Would really appreciate your help

Thanks

Take a look on cdrstats from google.

Hi if its stats for queues then look at the stats package from Nic at www.asternic.biz.
But seems to be a bit of a hosting issue at the moment.

Thanks Guys