Active calls: where are stored the data?

I need to extract all the data present in the “FreePBX Statistics” module:
Total active calls
Internal calls
External calls
Total active channels

Where can I find these data?

Many thanks
Marco