Thank you for your follow up.
But at least the total agent hours come from the same source (vicidial_agent_log table's)
Being more specific:
Variable $AGENTsec,
file: AST_VDADstats.php
Line 482
This is the query:
$stmt="SELECT sum(pause_sec + wait_sec + talk_sec + dispo_sec) from vicidial_agent_log where event_time >= '$query_date_BEGIN' and event_time <= '$query_date_END' $group_SQLand and pause_sec<36000 and wait_sec<36000 and talk_sec<36000 and dispo_sec<36000;";
and in the AST_agent_performance_detail.php, line 228:
$stmt="select count(*) as calls,sum(talk_sec) as talk,full_name,vicidial_users.user,sum(pause_sec),sum(wait_sec),sum(dispo_sec),status from vicidial_users,vicidial_agent_log where event_time <= '$query_date_END' and event_time >= '$query_date_BEGIN' and vicidial_users.user=vicidial_agent_log.user and campaign_id='" . mysql_real_escape_string($group) . "' and pause_sec<36000 and wait_sec<36000 and talk_sec<36000 and dispo_sec<36000 $ugSQL group by user,full_name,status order by full_name,user,status desc limit 500000;";
If you put same filters in both querys you will see same results.
I'm newbie in vicidial, but I really like the system.
I'm just to trying be of help.
![Very Happy :D](./images/smilies/icon_biggrin.gif)