============================================================================================= Asterisk Queue Log Analyzer (and CDR log Analyzer) Copyright (C) 2006 Earl C. Terwilliger ============================================================================================= The Asterisk Queue (and CDR) Log Analyzer is a set of PHP scripts which allow selecting, listing and graphing of records from the Asterisk Queue and CDR logs via a WEB interface. For easier access to select specific log records, the Queue and CDR logs need to be in a MySQL database. Asterisk itself records (specified in a conf file) CDR data into a MySQL database table. A Python utility program called loadq.py is provided with this package which can be used to load queue log records (as they are created) into a MySQL database table. To create graphs, The Queue Analyzer uses Image_Graph found at http://pear.veggerby.dk. Image_Graph is an additional PHP add on package (PEAR). Also required is the GD image library and at least one True Type font. (more detail below) To install the Analyzer: 1) Navigate to your WEB root directory, get the source and unpack it: cd /var/www/html wget http://www.micpc.com/qloganalyzer/qanalyzer.tar.gz tar -xzvf qanalyzer.tar.gz 2) Run the install steps Note: To run the following commands, you will need to change to the appropriate directory. cd /var/www/html/qanalyzer/install then cd into the cdr, loader or graph directories as mentioned below. If you already have an Asterisk database installed, you will need to modify the PHP (and Python) code here to use your database/table names or switch your database/tables to the names used by the Queue Analyzer. The database name used in the Queue/CDR Analyzer is asterisk with table names of cdr, queuelog and users (asterisk.cdr, asterisk.queuelog and asterisk.users). In the install/cdr directory, cdr.sql contains the SQL code needed to create the CDR database table. cdrload.php is a PHP script to load any existing CDR data into that table. The cdr.sql creates the asterisk database table. Make sure to modify the cdr.sql to your requirements. Create the database and cdr table: mysql