1
Running QueueMetrics / Re: About agentname in queue_log file.
« on: November 24, 2007, 04:31:59 »
hehe, I want to know how do you deal with this problem.
Can you tell me?
Can you tell me?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
$rowdata[0] = ($rowdata[0] * 1.0) + $timezone_offset;
#--- I insert code begin here: ------------------------
my @temp_agent = ((split /\-/, $rowdata[3]), ( "", "")) ;
$rowdata[3] = $temp_agent[0];
#---- I insert code end of here! ------------------------
my $tst = $rowdata[0];
my ($tst, $cid, $que, $age, $verb, $d1, $d2, $d3) = map { myQuote($_) } (((split /\|/, $_)), ( "", "", "", "", "", "", "")) ;
#--- I insert code begin here: ------------------------
my @temp_agent = ((split /\'/, $age), ( "", "", "")) ;
@temp_agent = ((split /\-/, $temp_agent[1]), ( "", "")) ;
$age = "'".$temp_agent[0]."'";
#---- I insert code end of here! ------------------------
............................
1192928572|1192928554.3|991|IAX2/902-2|CONNECT|3
............................
1192928868|1192928554.3|991|IAX2/902-2|COMPLETECALLER|3|296
1192928878|1192928778.5|991|IAX2/902-6|CONNECT|86
1192929093|1192928778.5|991|IAX2/902-6|COMPLETECALLER|86|215
............................
1192930770|1192930753.23|991|IAX2/902-1|CONNECT|2
............................
1192931160|1192930753.23|991|IAX2/902-1|COMPLETECALLER|2|390
............................
1192931496|1192931478.36|991|IAX2/902-3|CONNECT|4
1192931566|1192931478.36|991|IAX2/902-3|COMPLETECALLER|4|70
/var/log/asterisk/*log {
missingok
rotate 5
weekly
create 0640 asterisk asterisk
postrotate
/usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
/etc/init.d/qloaderd restart > /dev/null 2> /dev/null
endscript
}