The file queue_log.3 (last modified on 31st Dec 1969 19:00:00) was found and considered valid.
Error occured, while trying to read the file
An ls -l of /var/log/asterisk/q* yields:
root@manzetti asterisk# ls -l q*
-rw-rw-r-- 1 asterisk asterisk 342697 Jul 24 20:04 queue_log
-rw-rw-r-- 1 asterisk asterisk 2893258 Jan 9 2007 queue_log.0
-rw-rw-r-- 1 asterisk asterisk 3441434 Mar 30 11:50 queue_log.1
-rw-rw-r-- 1 asterisk asterisk 3363532 May 29 07:44 queue_log.2
-rw-rw-r-- 1 asterisk asterisk 3759602 Jul 20 07:03 queue_log.3
root@manzetti asterisk#
1) Why is the PHP script getting the date wrong, and
2) Why doesn't populate the DB
Problem B)
When I run: http://127.0.0.1/qstats/log/cdr.php
No files like *.csv found in /var/log/asterisk/cdr-csv. Check the content of the specified log directory!
an ls -l of /var/log/asterisk/cdr-csv yields:
root@manzetti asterisk# ls -l /var/log/asterisk/cdr-csv
total 124152
-rw-rw-r-- 1 asterisk asterisk 126997894 Jul 24 20:05 Master.csv
root@manzetti asterisk#
Asterisk Version 1.2.9.1
queue_stats.0.3.0_php4
root@manzetti ~# php -v
PHP 4.3.9 (cgi) (built: May 10 2007 05:19:09)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
root@manzetti ~#
root@manzetti ~# psql --version
psql (PostgreSQL) 7.4.17
contains support for command-line editing
root@manzetti log# cat /var/www/html/qstats/log/config.inc.php
<?
// The queue_log and/or cdr file(s) must be here
$queue_log_dir = '/var/log/asterisk';
$cdr_log_dir = '/var/log/asterisk/cdr-csv';
Posted: Wed Jul 25, 2007 12:47 am Post subject: Ignore Part B, I have no accountcodes setup per the document
Ignore Question B I have no accountcodes setup and the Documentation Clearly States that the Master.csv is ignored:
..."2. All outgoing calls are stored in CDR files. The files are placed in /var/log/asterisk/cdr-csv/ by default. The Queue Statistics application does not parse the Master.csv file, because in some cases it might be too large and heavy. That is why you have to create your own *.csv files for the groups you need. You may add ‘accountcode’ value for the accounts you use in sip.conf or iax.conf."
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum