QueueMetrics forum

QueueMetrics => Running QueueMetrics => Topic started by: bluekite on November 07, 2007, 18:02:49

Title: About agentname in queue_log file.
Post by: bluekite on November 07, 2007, 18:02:49
I define 902 of extension in iax.conf file, it can be login and log out, but in queue_log file display lots of "902-X", "X" is in 1...n, I want to know why?
thank you very much!
Code: [Select]
............................
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



why?
Title: Re: About agentname in queue_log file.
Post by: QueueMetrics on November 09, 2007, 17:12:50
This is because a trace iof the actual channels used is kept. But QM should strip away the trailing digits. Doesn't it?
Title: Re: About agentname in queue_log file.
Post by: bluekite on November 10, 2007, 02:44:54
Now, I want to know how strip away the trailing digits.
What can I do ??
Thanks.
Title: Re: About agentname in queue_log file.
Post by: QueueMetrics on November 10, 2007, 09:59:11
Looks like a bug to me. I filed it as bug #230. Being a very small change, this is due to be released in 1.4.3, that is in a couple of weeks.
Title: Re: About agentname in queue_log file.
Post by: QueueMetrics on November 10, 2007, 12:19:42
I confirm this was a bug and has been fixed.
Title: Re: About agentname in queue_log file.
Post by: bluekite on November 22, 2007, 15:53:45
I  had been fixed this bug. I modify "qloader.pl"  and "queueloader.pl" files.

Code: [Select]
$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];

Code: [Select]
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!  ------------------------

 ;) ;)
Title: Re: About agentname in queue_log file.
Post by: QueueMetrics on November 22, 2007, 17:06:34
You can anyway use the basic qloader with the upcoming version 1.4.3. Beware of doing the stripping yourself, some channel names are pretty picky!  ;D
Title: Re: About agentname in queue_log file.
Post by: bluekite on November 24, 2007, 04:31:59
hehe, I want to know how do you deal with this problem.
 ???    ;)

Can you tell me?
Title: Re: About agentname in queue_log file.
Post by: QueueMetrics on November 25, 2007, 15:04:10
Simple: next week we will release a version of Qm that solves this bug.