Displaying 1 result from an estimated 1 matches for "asteriskstat".
Did you mean:
asteriskstar
2005 Jul 15
0
Queue_log stats
...nytext NOT NULL
#) TYPE=MyISAM;
use DBI;
use IO::File;
my $opt_debug = 0;
# if you want postgres change this to "Pg"
my $db_type = "mysql";
my $db_host = "127.0.0.1";
my $db_user_name = 'username';
my $db_password = 'password';
my $db_database = 'asteriskstat';
my $dbh = DBI->connect("DBI:$db_type:dbname=$db_database;host=
$db_host;", $db_user_name, $db_password);
open(FIFO, "< /var/log/asterisk/queue_log") or die "Can't open
queue_log : $!\n";
while (1) {
$message = <FIFO>;
next...