Viewing CDR Data with Asterisk CDR Analyzer

From JoatWiki
Jump to: navigation, search

Viewing CDR Data with Asterisk CDR Analyzer

(29 Jan 2008) - You'll probably want to keep track of the calls through your Asterisk box. A simple web-based tool that does this is CDR Analyzer.
    • Grab the code from here.
    • Un-tar it in /var/www/html/
    • mv /var/www/html/asterisk-stat-v2 /var/www/html/asterisk-stat
    • Edit lib/defines.php so that it looks like:
     define ("WEBROOT", "http://192.168.1.100/asterisk-stat/");
     define ("FSROOT", "/var/www/html/asterisk-stat/");
     define ("LIBDIR", FSROOT."lib/");
     define ("HOST", "localhost");
     define ("PORT", "5432");
     define ("USER", "THE_DB_USER");
     define ("PASS", "THE_DB_PASSWORD");
     define ("DBNAME", "asteriskcdrdb");
     define ("DB_TYPE", "mysql"); // mysql or postgres
     define ("DB_TABLENAME", "cdr");
    

    where "THE_DB_USER" and "THE_DB_PASSWORD" are whatever you used for your CDR database.

    For high traffic sites, please note that there are hints on the home page for speeding up the database searches.





Comments:

Leave a Comment

Personal tools