9.1. Installation Guide     ( Back to Tutorials Page )

Asterisk is an open source PBX that helps you to have your own inexpensive VoIP network. This tool will help you to have a better overview of the calls passing through the queues you have (incoming calls). We assume that you have some basic knowledge in Asterisk and mainly at least small experience with queues (/etc/asterisk/queues.conf), PHP and databases.

The application is reading the queue_log file, puts it in a database and from this database gets different kind of statistics for the queue(s) you are interested in.

We are using a jpGraph product for the graphics which is QPL licensed.

PREREQUISITES

To use this statistics you need:

Asterisk
Can be downloaded from http://www.asterisk.org/

PHP version 4.3.5. or higher (preferably with Apache web server)
Can be downloaded from http://www.php.net/

Database server (PostgreSQL)
Can be downloaded from http://posgtresql.org/

Zend Optimizer
Can be downloaded from http://zend.com/

As you probably saw the php scripts are encoded. So you need to install Zend Optimizer module for Apache in order to start the scripts (other way apache can not read the php files).

NOTE: After Zend Optimizer is installed check your php.ini file. There your Zend Optimizer might be turned off.

Download the PHP files and create the database table as described below (you have to use PosgresSQL for the database).


STRUCTURE

The application is working in the following way.

1. All calls going into the Asterisk Queues are documented in queue_log (Asterisk has to be set to do this - by default queue_log is not enabled).

2. PHP script is reading all queue_log files (original and rotated). Logger rotating program is rotating the queue_log at certain date or time or when the file reaches some limited size. The original file is named queue_log and the rotated queue_log.0, queue_log.1 and so on. So the script reads the files (sorted by modification date) one by one starting from the latest modified finishing with the most resent. The data is stored in the created postgres database tables. The script that read the log files and fills up the database is logque.php (in directory log). You can run it manually or schedule some task manager (crontab) to run it at certain time.

3. PHP gets the stored data from the database and creates tables and graphics for the statistics.


QUEUE_LOG

Queue_log is an Asterisk log file where data concerning the queue is written. More precisely is to say that only data concerning the incoming calls, agent logins and logouts and internal transfers is written.

To fill in the database you must first of all have a queue_log file. The default directory where the log files are placed is /var/log/asterisk/.

The queue_log is not created by default. Check whether you have this line in /etc/asterisk/logger.conf.
queue_log=>

This writes the data from the queue to this queue_log file. logger.conf file is for setting the logs which to be created and filled in /var/log/asterisk/. So the first step is to set Asterisk to write to the queue_log.


DATABASE

The tables that you need are several and can be created by executing db.sql. You should have installed postgres. Just execute the queries from the db file in the download directory.

It is preferable to create a new database. If you are not aware how to make one here is a simple query that does this:

CREATE DATABASE db_name
WITH OWNER = username
ENCODING = 'SQL_ASCII'
TABLESPACE = pg_default;

When you have the database just execute the query from db.sql and you will have the tables that you need for storing the queue_log data.


FINE SETTINGS

The application is encoded except the config.inc.php files in directory log and include which you can modify.

1. Log directory

Look at config.inc.php in the log directory. These configuration settings are only for the logque.php script. There you have to set the required parameter for connecting to the database as well as the absolute path to your queue_log files.

$queue_log_dir = '/var/log/asterisk/';
This default path to the queue_log files if you are using linux os. But for example if you are on windows you can copy them from the asteriks server to C:/qstats or C:/temp

Afterward you have to set the database connection:

$db_host = '127.0.0.1';
$db_name = 'database_name';
$db_user = 'username';
$db_pass = 'password';

This is establishing connection to the database on the local machine (127.0.0.1), so if your database is somewhere remotely you have to type the address where it can be accessed. Just change the value for the $db_host variable to a valid address for your database server. $db_name is the database name where the table data is stored, and $db_user is the username for the user who has privileges to access the database. $db_pass is the password of the user who is accessing the database.

2. Include directory

This config.inc.php file is for the rest of the php application i.e. all the stats graphs and reports. You have to originate the connection to the database as described in the previous section.

$dbhost = '127.0.0.1';
$dbname = 'database_name';
$dblogin = 'username';
$dbpass = 'password';

Next is to provide the absolute path for the report images. There is option to see the reports in PDF format. The images for the report are generated and stored somewhere locally before used for the report itself. But the PHP has to have permissions to write down on your hard drive the images so you have to provide the path to this directory.

The images for the reports have to be saved locally on your pc. Therefore the web server must have privileges to write and read from the directory where they will be stored. The default directory is different and depends on the OS. For Linux it is "/tmp" and for Windows it is "%USERPROFILE%Local SettingsTemp" (usually C:Documents and Settings<user>Local SettingsTemp). Choose you OS between Linux and windows. Comment the one you are not going to use.
$os = "linux";
#$os = "windows";

Then set the correct path to the directory where the images will be stored.
The settings of the images_path for the OS you are not going to use does not matter. For Linux default image path is /tmp. You can change it but have to make sure that the web server can write into it. For windows you can also make a directory where the images to be stored, but again you have to provide read and write access for the web server.
$image_path_lin = "/tmp";
$image_path_win = "C:/qimages";

You have language settings also. You can choose between English (EN), French (FR) and Italian(IT). Volunteers to translate into other languages are always welcome, that is why the language files are not encoded. In this config file you can set your default language.
$default_language = 'en';

The reason that you have two identically the same config.inc.php files is that you can have the logque script and the rest on two separate computers.


STATS

When you have created the database and copy the other scripts on your web server (you can place the logque on other machine but anyway the hierarchy must not be changed), then you can run the application. Make sure that all downloaded directories and files are structured on your computer as in the download directory. All this files have to be in your apache-working directory (if you are using Apache as web server for PHP).

First fill in the database with the logque.php (placed in the log directory). Make sure the settings in the same directory in config.inc.php are correct (path to the queue_log files).

Then just type in a browser path/index.php. Then the program will run and you will be prompted to choose period, queue (you can select all available queues), time zone and language for the statistics calculations.

User Comments

Omar <omarnina at gmail dot com>
24 March 2006 17:18:51
Hi Ivan,

I installed postgre 7.4.8, php 4.3.9, zend optimizer 2.6.2 and asterisk 1.2.5, and everything seems ok, but when i use http://..../log/logque.php. I have the following error

The file /var/log/asterisk/queue_log (last modified on 1969-12-31 20:00:00) was found and considered valid.Error occured, while trying to read the file

Pd. to create de database I wrote like this

CREATE DATABASE db_name
WITH OWNER = username
ENCODING = 'SQL_ASCII';

and I didn't wrote TABLESPACE = pg_default, because postgre 7.4.8 doesn't support it

Thank you, I hope you help, please
Omar <omarnina at gmail dot com>
23 March 2006 18:27:39
Hi all,

It is necessary to install jpGraph ?

I installed postgre, php, zend optimizer and asterisk, and everything seems ok, but when i use http://..../log/logque.php. I have the following error

The file /var/log/asterisk/queue_log (last modified on 1969-12-31 20:00:00) was found and considered valid.Error occured, while trying to read the file
Ed <eengelking at printfulfillmentservices dot com>
23 March 2006 15:04:02
I'm seeing the following when trying to run the logque.php file:

The file /var/log/asterisk/queue_log (last modified on 2006-03-23 08:53:45) was found and considered valid.
Checking file content, please wait. Reading line 1
Warning: gmdate() expects parameter 2 to be long, string given in /usr/local/www/data-dist/queues/log/logque.php on line 135

The line with the gmdate() warning seems to be preventing the file from dumping the data in the queue_log file to the database. Using PHP 5.1.2_1 on FreeBSD 6.

Has anyone else had this problem or know of a fix? Google hasn't exactly been much help with the gmdate() info. :)
angonese <angonese at via-rs dot net>
22 March 2006 19:12:26
Same problem as Tom Silver, after running logque.php:
The file /var/log/asterisk/queue_log (last modified on 2006-03-22 14:34:03) was found and considered valid.
Checking file content, please wait. Reading line 1
Wrong parameters or empty line
Wrong parameters or empty line
Wrong parameters or empty line
Wrong parameters or empty line
Wrong parameters or empty line
The records above were added to the DB

My queue_log:

1143048782|NONE|NONE|NONE|QUEUESTART|
1143048808|1143048804.0|NONE|Agent/28803|AGENTCALLBACKLOGIN|39@ramaisinternos
1143048832|1143048832.1|adm|NONE|ENTERQUEUE||
1143048838|1143048832.1|adm|Agent/28803|CONNECT|6
1143048843|1143048832.1|adm|Agent/28803|COMPLETECALLER|6|5

My system:
Asterisk 1.2.1
Fedora Core 4
Postgres 8.0.7-1.FC4.1
PHP 5.0.4-10.5
ZendOptimizer-2.6.2-linux-glibc21-i386
Tom Silver <xsilver at skynet dot cz>
21 March 2006 00:17:04
Hi, I'm still getting this message from logque.php

Wrong parameters or empty line

My queue_log contains lines like these

1142898136|1142898130.5|NONE|Agent/602|AGENTCALLBACKLOGIN|227031642@local
1142900403|1142900391.19|NONE|Agent/602|AGENTCALLBACKLOGOFF|227031642@local|2267|

Where ist the problem ? [I don't know :-( ]
Thank you for any tip|advice.
sergio <snemiro at hotmail dot com>
17 March 2006 23:03:59
hi... now is working ok....I just drop and recreate de dB.

regards,

s
neilmc <neilmc at mdgp dot net dot au>
17 March 2006 22:53:26
Thanks for the update Ivan. I'll check out the next version.
Sergio <snemiro at hotmail dot com>
17 March 2006 21:35:50
Hi... need some help....

All the instalation seems to be fine, but when I run the http://.........../queue_stats.0.9/log/logque.php it says:

Database filler

The file /var/log/asterisk/queue_log.5 (last modified on 2006-02-12 04:10:04) was found and considered valid.
Checking file content, please wait. Reading line 1
Checking file content, please wait. Reading line 101
Checking file content, please wait. Reading line 201
Checking file content, please wait. Reading line 301
Checking file content, please wait. Reading line 401
No records were added to the DB. The reason is empty file or that file content is old or already inserted in the DB.

and the same results with the other logs.

If I enter

http://.........../public/menu_home.php

I get the following msg:

The database is empty!

Im using dynamics agents.

My platform:

The instalation is an Asterisk@home 2.2

Linux xxxx.com 2.6.9-22.EL #1

Some installed packages ....

php-4.3.9-3.8
php-pear-4.3.9-3.8
php-gd-4.3.9-3.8
php-mysql-4.3.9-3.8
php-pgsql-4.3.9-3.8
postgresql-libs-7.4.8-1.RHEL4.1

Other installed sw:
ZendOptimizer-2.6.2-linux-glibc21-i386.tar
jpgraph-1.20.3.tar
Gogh <support at asteriskguru dot com>
17 March 2006 16:22:33
Hello neilmc,

We have found a time zone issue in our soure which will be fixed soon. New release will come at the beginning of next week.

Ivan
neilmc <neilmc at mdgp dot net dot au>
16 March 2006 11:46:02
I've got the same issue as Gaijin_khan. Using .9 on asterisk at home 2.6

First db update works on the oldest log data only.

Time/date on last entry in queue_stats table is 2006-03-16 21:29:18+11

Data in log file that won't load

1142505072|NONE|NONE|NONE|CONFIGRELOAD|
1142505210|1142505198.21|1|NONE|ENTERQUEUE||200
1142505215|1142505198.21|1|NONE|ABANDON|1|1|5

from queue_log.1 (last modified on 2006-03-16 21:33:35)
Gaijin_khan <gaijin_khan at hotmail dot com>
15 March 2006 15:01:17
one thing to note with not being able to add data in twice:

If you delete the DB in postgres and recreate it you can then add more data.

again you only get one shot and at that only one log file! (if you have two log files with data it will only import from the oldest)
ivan <support at asteriskguru dot com>
15 March 2006 11:01:51
Hello Darek,

The problem with the log file might be that either the modification date of the file you are trying to import is older than the last record in the db or all the records from the file are older than the last record in the db.

You say that you have some activity after the last record in the DB, so check you your version (latest release is 0.9 with a timezone bugfix). If you find again some thing wrong you can send small part of the queue_log file that cannot be imported and the timestamp of the last call in the DB.

Ivan
ivan <support at asteriskguru dot com>
15 March 2006 10:53:40
Hello Gaijin_khan,

All timezones you requested will be included in the new release which will come out in a few days.

Ivan
gaijin_khan <gaijin_khan at hotmail dot com>
15 March 2006 09:39:28
http://forums.whirlpool.net.au/forum-replies.cfm?t=487687

I am having this also.
Darek <darek at vpn dot pl>
13 March 2006 16:40:01
When you run the WEB PAGE that loads the data for the first time all DATA is loaded into the DATABASE just fine and I can run reports but when I'm trying to load the DATA second time , it says it :
No records were added to the DB. The reason is empty file or that file content is old or already inserted in the DB.
I now thah the last record in database is at 2006-03-13 15:06:53+01 and I have got connection at 2006-03-13 16:25:08.
Gaijin_khan <gaijin_khan at hotmail dot com>
12 March 2006 17:50:29
Feature request:

Any chance of having a +9.5 ACST and a +10.5 DACST for us South Australians?

Great product, thanks guys!
ivan <support at asteriskguru dot com>
09 March 2006 10:05:45
Hello nilli,

Can you send me small part of the queue_log file where the problem appears. Does this error appears for each line further on or just for some. Check your postgres version and settings. Check your config.inc.php settings in the /log and /include dirs.

Ivan
ivan <support at asteriskguru dot com>
09 March 2006 09:57:28
Hello Omar,

Just download the new version from the site and try again. Or just create the sequence that the database says is missing.

Ivan
nilli <nilli77 at gmx dot de>
07 March 2006 19:14:38
Hello,

while importing the data I get the following error:

The file /var/log/asterisk/queue_log was found and considered valid.
Checking file content, please wait. Reading line 1
1.1141751547|NONE|NONE|NONE|CONFIGRELOAD|
Warning: pg_query(): Query failed: ERROR: syntax error at or near "," at character 148 in /var/www/html/stats/log/logque.php on line 255

Wrong parameters
Warning: pg_query(): Query failed: ERROR: syntax error at or near "," at character 148 in /var/www/html/stats/log/logque.php on line 255

Wrong parameters
The records above were added to the DB
Any ideas? Please help :-))


Thanks
Omar <omarnina at gmail dot com>
01 March 2006 22:34:01
Hello again,
The last problem was solved downloading again queue_stats.0.8.
the new problem is when I try to create te table queue_stats with the file db.sql, it gives me the following error

ERROR: relation "queues_stats_queue_stats_sid_seq" does not exist

Omar <omarnina at gmail dot com>
01 March 2006 22:31:46
Hello again,
The last problem was solved downloading again queue_stats.0.8.
the new problem is when I try to create te table queue_stats with the file db.sql, it gives me the following error

ERROR: relation "queues_stats_queue_stats_sid_seq" does not exist

Omar <omarnina at gmail dot com>
01 March 2006 21:49:29
I have apache 2.2.0, php 4.4.1 and I think that zend is installed correctly because when I use phpinfo(); I have the following

This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Zend Extension Manager v1.0.9, Copyright (c) 2003-2006, by Zend Technologies with Zend Optimizer v2.6.2, Copyright (c) 1998-2006, by Zend Technologies

I create the databese queues, and the tables. But when I try to use index.php I have the following error

Fatal error: Unable to read 2980 bytes in /opt/lampp/htdocs/queue_stats/public/menu_home.php on line 0

Please help?
Lokesh Kumar <lokesh at interacesso dot pt>
27 January 2006 20:49:14
Hello List,

After weeks of strruggle with queue stats..I gots working it. But not without any problem.It is having wierd problem.When I run ....log/logque.php file it gives me error like:-

Query failed: ERROR: syntax error at or near &quot;,&quot; at character 149 in /var/www/html/queue_stats.0.7/log/logque.php on line 249

Second wierd problem. I am getting duplicate entries under menu_details.php, when i clicks on
http://212.13.35.253/queue_stats.0.7/public/menu_details.php

It shows me too many entries duplicated.How it can be solved.

When I delete the last two entries from the logque.php file,then I am not getting error while executing .../log/logque.php file. but the duplicate entry remains there.

Please help.
Thanks a lot
Lokesh
Portugal
Dave Purks <dpurks at cogentco dot com>
26 January 2006 21:55:36
In case anyone else had the problem I detailed previously with missing sequence in db.sql, here's the missing line:

create sequence queue_stats_queue_stats_sid_seq increment 1 no minvalue no maxvalue no cycle;

I've now got a database and all the required software installed. However, when I run logque.php I get:

Database filler

The file /opt/apache/htdocs/queue_stats/data/queue_log was found and considered valid
Checking file content, please wait Reading line 1
Wrong parameters
Wrong parameters
Wrong parameters

over and over and over and over.....

The records above were added to the DB

When I then try to execute index.php:

The database is empty!

Help!!!

Mark Quitoriano <markquitoriano at gmail dot com>
24 January 2006 22:47:58
ok got it. hehe.. make sure your /var/lib/php/session groupid is the same user in your apache.

:) mine is set to asterisk
Mark Quitoriano <markquitoriano at gmail dot com>
24 January 2006 22:42:17
Hi im getting this when im viewing other option except general

There is no data for the selected period and callgroup /,

im using centos 4.2 with httpd-2.0.52-22, php-4.3.9-3.9 and postgresql-7.4.8
Kresimir <omadon at globalnet dot hr>
07 January 2006 19:07:56
Where can I download source. I would like to chnage some of the code (Answer time, I need 1, 2, 5 minutes interval not only seconds), plus i have some problem and with logque.php. When I rotate logs I get duplicate values in menu_details.php.

all things that I add I'll give back, if you need it of course...
I would also like to make translation to croatian...
ivan <support at asteriskguru dot com>
06 January 2006 08:24:19
Hello Lokesh,

First check your logger.conf file /etc/asterisk. In the [logfiles] part you must have a line like this:
queue_log =>
This way the data from the queue will be stored in a log file in /var/log/asterisk.

Afterwards set config.inc.php and run logque.php (in log directory of your queue_stats).

If you have all the other programs (ex. Zend Optimizer) the web interface shoud be working. For problems further on write again.
Lokesh Kumar <lokesh at interacesso dot pt>
05 January 2006 16:16:06
I am havng problems with queue_stats. I had installed postgre sql and its database with tables successfully. But the problem is asterisk is not making queue_log.x files, as mentioned in the tutorial. I had restarted asterisk lots of times with logger rotate command in asterisk CLI,but it didn't worked. The files in /var/log/asterisk are like this..


cdr-csv event_log.1 event_log.13 event_log.17 event_log.4 event_log.8 messages.1 messages.13 messages.17 messages.4 messages.8
cdr-custom event_log.10 event_log.14 event_log.18 event_log.5 event_log.9 messages.10 messages.14 messages.18 messages.5 messages.9
event_log event_log.11 event_log.15 event_log.2 event_log.6 messages messages.11 messages.15 messages.2 messages.6 queue_log
event_log.0 event_log.12 event_log.16 event_log.3 event_log.7 messages.0 messages.12 messages.16 messages.3 messages.7


And I am getting these errors on httpd logs..

[client 192.168.0.47] script '/var/www/html/queue_stats.0.7/public/log_queue.php' not found or unable to stat
[client 192.168.0.47] script '/var/www/html/queue_stats.0.7/public/log_que.php' not found or unable to stat
[client 192.168.0.47] script '/var/www/html/queue_stats.0.7/public/log_que.php' not found or unable to stat
[client 192.168.0.47] script '/var/www/html/queue_stats.0.7/log_que.php' not found or unable to stat
[client 192.168.0.47] script '/var/www/html/queue_stats.0.7/log_queue.php' not found or unable to stat
[Thu Jan 05 14:27:38 2006] [error] [client 212.13.42.65] Directory index forbidden by rule: /var/www/html/
[Thu Jan 05 14:27:39 2006] [error] [client 212.13.42.65] File does not exist: /var/www/html/favicon.ico
[Thu Jan 05 14:27:55 2006] [error] [client 212.13.42.65] File does not exist: /var/www/html/queue_stats.o.7
[client 192.168.0.47] script '/var/www/html/queue_stats.0.7/log_queue.php' not found or unable to stat
[client 192.168.0.47] script '/var/www/html/queue_stats.0.7/log_queue.php' not found or unable to stat
. I don't know which part is broken. Is queue_stats.0.7 version supports mysql.
log_que.php is present but there is no files named log_queue.php in queue_stats directory

Any help will be much appreciated.
Regards
Lokesh
lokeshatinteracesso.pt
Felix Deierlein <fd at epyron dot de>
03 January 2006 10:02:55
Hello,

while importing the data I get the following error:

8.1136278438|NONE|NONE|2253|AGENTCALLBACKLOGOFF|53@eP-In|66129|CommandLogoff
Warning: pg_query(): Query failed: ERROR: syntax error at or near "," at character 150 . in /srv/www/htdocs/stats/queue/log/logque.php on line 249

Wrong parameters
The records above were added to the DB

Any ideas?


Thanks


Felix
Wei <wcjiang at yahoo dot com>
02 January 2006 21:18:24
Looks like it always displays the time in EST (when I look under "Hour" , for example). Is it possible to set this to a local time?
Mimmus <viggiani at hotmail dot com>
02 January 2006 17:34:21
Under Red Hat, install php-pgsql too!
ivan <support at asteriskguru dot com>
20 December 2005 15:07:38
Hello Kong

What version of php and apache do you use. Do they meet the requirements subscribed in the tutorial.

The possible problem might be that you the session variables are disabled in the php settings or the cookies in your browser are disabled .
kong <kongzs at irepublics dot com>
20 December 2005 04:17:49
under menu general, there is data shown. once i click on other links like date, hour, details, it shows below.

There is no data for the selected period and callgroup /,
D Purks <dpurks at cogentco dot com>
16 December 2005 14:09:29
When I attempt to run the db.sql commands to set the database up, I get the following error:

ERROR: relation "queue_stats_queue_stats_sid_seq" does not exist

any ideas?

Thanks!
Rizwan <rizwan at gnspk dot com>
10 December 2005 11:09:02
New Queue Statistics version 0.7 is released
When we will see Installation guide of new release
I hope new version is supporting mysql
ivan <support at asteriskguru dot com>
09 December 2005 08:41:34
Hello Wei,

check the settings of your 'config.inc.php' file in directory 'include'. There you have to choose the operating system by commenting the one you are not going to use :
$os = "linux";
#$os = "windows";
This way your OS will be linux and the script will save the report images in '/tmp'. If you want to change the file just type the correct path and assign as value for the variable $image_path_lin in the same file.
Wei <wcjiang at yahoo dot com>
04 December 2005 21:19:15
When I clicked on View Report I got an error "Can't create or stream image to file C:/qimages/Answered ..." I installed this in Linux, why would it try to write to a C drive?! This is not defined in the jpg-config.inc file either, where can I change the path?
Wei <wcjiang at yahoo dot com>
04 December 2005 08:05:34
Hi,
Is it possible to use this without the MS fonts? I've spent hours trying to figure out how to install these fonts in Linux. Can the font family be changed to the Vera Bitstream TTF fonts? Thank you!
Ed Cross <ecross at 41cash dot com>
22 November 2005 17:06:28
any chance I can get the source code? I want to customize the application for our uses...
afridi <muwahhad at hotmail dot com>
26 October 2005 23:45:53
One last question! any chance I can get the source code as I want to customise the application?
afridi <muwahhad at hotmail dot com>
26 October 2005 21:09:13
ok! got it! thanks guys!
afridi <muwahhad at hotmail dot com>
26 October 2005 20:31:52
hi,

thanks for your help.

There is one problem however! On the server, where I have asterisk installed I do not have apache and php installed. So i will have to install that for the log thing to work.

Is there a way i can have the log and the queue thing on a totally seperate server? I want to do this mainly for testing purposes.

So basically I will take a copy from the asterisk server of the queue_log file and I want to place it on the other server where the application is installed.

Is this possible?
ivan tsankov <support at asteriskguru dot com>
26 October 2005 18:28:23
Hello Afridi, the answer of your question is YES it is possible. So what you have to do is to place the log directory on the server where is you asterisk with the log files. Then you can have the stats on different pc . You have just to set the config files on both the log part and the main part of the application pointing to the same database. This way the log part will find the queue_log files and will put the records to the database. The rest of the application will take the data from the DB - and show you the stats.
afridi <muwahhad at hotmail dot com>
26 October 2005 18:23:26
Ok I got the answer to that!

But I am still unsure as to how correctly specify the path. Lets say I have put the queue_log file in the directory /stats/log. How do i specify it in the config.inc.php file?
afridi <muwahhad at hotmail dot com>
26 October 2005 17:51:03
Hi guys,

After a lot of effort I have managed to get the application up and running on my local pc.

However the problem is I dont have asterisk running on the same machine. So all the tables are empty and there is no data.

Do I have to install this application on the same server thats running the asterisk server? Is it not possible to have this application on a seperate server, specify the path for the queue_log file and run it like that?

Another question I wanted to ask was is it possible to get the source code so that i am able to make some customisations and/or add extra features?
Ueberspasti <ueberspasti at gmail dot com>
19 October 2005 09:51:20
Hi..

I need to change the "Answer Time" under "General" to other values, can anyone tell my how?

Thx

ueberspasti
terchris <terchris at hotmail dot com>
19 October 2005 07:06:47
Hi
I hope someone can port it to mysql so that it can be included in Asterisk@Home. See http://sourceforge.net/forum/forum.php?thread_id=1367049&forum_id=420323

regards
terchris
Fernando Patzlaff <patzlaff at via-rs dot net>
07 October 2005 20:08:24
I have one register on the queue_log. When I execute the log_queue.php the following message appears at the browser:

The file /var/log/asterisk/queue_log was found and concerned valid.
Checking file content, please wait. Reading line 1
1.1126200250|1126200236.23|adm|Agent/53470|COMPLETEAGENT|8|6
The records above were added to the DB

But when I look at the postgres doesn't exist this register.

Anyone have a idea?

Fernando Patzlaff
Fernando Patzlaff <patzlaff at via-rs dot net>
07 October 2005 19:55:28
I like know what I need to do for the application put the informations on the queue_log to postgree.

When I execute the logque.php the following error occurs at the error_log (apache):


[Fri Oct 7 14:24:22 2005] [error] PHP Warning: pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: permission denied for sequence qname_qname_sid_seq in /usr/local/apache/htdocs/queue/log/logque.php on line 176
[Fri Oct 7 14:24:22 2005] [error] PHP Warning: pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: permission denied for sequence qagent_qagent_sid_seq in /usr/local/apache/htdocs/queue/log/logque.php on line 210
[Fri Oct 7 14:24:22 2005] [error] PHP Notice: Undefined variable: qname_id in /usr/local/apache/htdocs/queue/log/logque.php on line 240
[Fri Oct 7 14:24:22 2005] [error] PHP Notice: Undefined offset: 6 in /usr/local/apache/htdocs/queue/log/logque.php on line 240
[Fri Oct 7 14:24:22 2005] [error] PHP Notice: Undefined offset: 7 in /usr/local/apache/htdocs/queue/log/logque.php on line 240
[Fri Oct 7 14:24:22 2005] [error] PHP Warning: pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: syntax error at or near &quot;,&quot; at character 152 in /usr/local/apache/htdocs/queue/log/logque.php on line 241
[Fri Oct 7 14:24:22 2005] [error] PHP Notice: Undefined offset: 3 in /usr/local/apache/htdocs/queue/log/logque.php on line 141
[Fri Oct 7 14:24:22 2005] [error] PHP Notice: Undefined offset: 3 in /usr/local/apache/htdocs/queue/log/logque.php on line 142

My plataform:
-------------
Linux / Fecora Core 4
Asterisk 1.0.9
PostgreSQL 7.4.8-1
PHP 5.0.5

Anyone have any idea ?

Thanks,

Fernando Patzlaff

Nenad <nenadr at deltaplan dot co dot yu>
30 September 2005 21:49:23
Any news on MySQL support ? If not, I'm interested to try to port it from Postgresql to MySQL !
zoa <support at asteriskguru dot com>
30 September 2005 16:37:04
We plan on adding support for mysql in one of the next versions. (looking for a sponsor :)

Zoa.
Felix Deierlein <fd at epyron dot de>
30 September 2005 14:00:55
Hi,

could I also use the software with MySQL?


Regards

Felix
Luis Sierra <fernando dot sierra at bigfoot dot com>
29 September 2005 17:37:04
Thanks Ivan, I Upgrade to PHP 4.4.0 and works. I had some problems with PHP but finallly I can install it. Only the "Date" link shows an error:

Fatal error: Unable to read 3740 bytes in /var/www/html/webroot/testtest/public/asteriskguru/v.0.5/public/menu_date.php on line 0.

What's wrong?
Ivan <support at asteriskguru dot com>
16 September 2005 11:52:21
Luis, check you php first the required version is 4.3.5 or higher. Check you queue_stats directory structure. Try with another browser. If same problem download the tool again and if the problem continues write us again. I think is the main problem are the settings of your php.

Check out the things above and tell us the result

Ivan
Luis Sierra <fernando dot sierra at bigfoot dot com>
15 September 2005 20:32:36
Hi, I´m new in this, I'am trying to view the index.php but I received next error message:


Fatal error: Maximum execution time of 60 seconds exceeded in /var/www/html/queue_stats.0.5/webroot/testtest/public/asteriskguru/v.0.5/index.php on line 3

My plataform is:
Apache/2.0.46 (CentOS 2.4.21-32.ELsmp)
PHP Version 4.3.2
Zend Optimizer v2.5.0
postgresql-8.0.3

Where is the problem? Why take too much time?

Thanks!
Fabian <ftorres at millenium dot com dot co>
13 September 2005 19:39:02
Me gustaria saber como hago para cargar los datos en la base de datos. Si es automatico o hay que configurar algun archivo manual... Gracias..
Cliff Larson <larsonc at att dot net>
14 August 2005 16:44:32
It appears that their is either a BUG or an ISSUE with program. When you run the WEB PAGE that loads the data for the first time all DATA is loaded into the DATABASE just fine and you can run reports. When you tell Asterisk to ROTATE LOGS, it does it, but when you run the WEB PAGE to load the DATA, it says it :
Found Valid file to process - queue_log.2 but does not process any of the DATA.

I have tried this on 3 differnt systems with POSTGRESQL 8.0. The DATA is good from each QUEUE_LOG file as each time if I wipe out the DATABASE and recreate it, the new QUEUE_LOG file will load just fine.

Any help would be great. I have both PHP 4 and 5 loaded on various machines, I have Mandrake, SUSE and REDHAT OS's...

Thanks,

Cliff
Gabriel <gabrielbersano at uolsinectis dot com dot ar>
10 August 2005 22:30:17
Hi, I'm trying the "Queue Statistics" application. When I execute logque.php, it shows the following error: Found Valid file to

process - queue_log.1 Error occured

What's wrong ?


My plataform:
-------------
Linux / Fecora Core 4
Asterisk 1.0.8
PostgreSQL 8.0.3-1
PHP 5.0.4

Add Comment

Name:
Email:
Comment:
 

contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™