Asterisk-reporting is a project mainly written in SHELL and PERL, it's free.
Asterisk PBX reporting parts