How to Install
Descompactar:
tar zvxf asternic-stats-1.3.tgz
cd asternic-stats
$manager_host = "127.0.0.1";
$manager_user = "admin";
$manager_secret = "admin";
$language = "es";
$dbhost = 'localhost';
$dbname = 'qstats';
$dbuser = 'root';
$dbpass = '';
Criar no /etc/asterisk/manager.conf
[admin]
secret=admin
read=system,call,log,verbose,command,agent,user
write=system,call,log,verbose,command,agent,user
=======================================
Create a cron job to parse data from queue_log and populate the database:
crontab -e
=======================================
PARA VER O LOG se tem ou não sucesso basta editar o arquivo parselog.php
comentando do mesmo a linha:
#error_reporting(0);
Inside the /parselog directory you will find a script to do the job:
./parselog.php
php -q ./parselog.php
Clean up database
If you want to clean up the data and start over and fresh, you can run
./parselog.php purge
Finally, you can see the statistics and reports with your browser from
http://ip.asterisk/queue-stats