mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Remove the uuid_exists from call center activity page to fix a problem it caused and improve the call center efficiency
This commit is contained in:
@@ -286,69 +286,66 @@ else {
|
|||||||
$q_answered=0;
|
$q_answered=0;
|
||||||
|
|
||||||
foreach ($result as $row) {
|
foreach ($result as $row) {
|
||||||
$switch_cmd = 'uuid_exists '.$row['session_uuid'];
|
$queue = $row['queue'];
|
||||||
if (trim(event_socket_request($fp, 'api '.$switch_cmd)) == "true") {
|
$system = $row['system'];
|
||||||
$queue = $row['queue'];
|
$uuid = $row['uuid'];
|
||||||
$system = $row['system'];
|
$session_uuid = $row['session_uuid'];
|
||||||
$uuid = $row['uuid'];
|
$caller_number = $row['cid_number'];
|
||||||
$session_uuid = $row['session_uuid'];
|
$caller_name = $row['cid_name'];
|
||||||
$caller_number = $row['cid_number'];
|
$system_epoch = $row['system_epoch'];
|
||||||
$caller_name = $row['cid_name'];
|
$joined_epoch = $row['joined_epoch'];
|
||||||
$system_epoch = $row['system_epoch'];
|
$rejoined_epoch = $row['rejoined_epoch'];
|
||||||
$joined_epoch = $row['joined_epoch'];
|
$bridge_epoch = $row['bridge_epoch'];
|
||||||
$rejoined_epoch = $row['rejoined_epoch'];
|
$abandoned_epoch = $row['abandoned_epoch'];
|
||||||
$bridge_epoch = $row['bridge_epoch'];
|
$base_score = $row['base_score'];
|
||||||
$abandoned_epoch = $row['abandoned_epoch'];
|
$skill_score = $row['skill_score'];
|
||||||
$base_score = $row['base_score'];
|
$serving_agent = $row['serving_agent'];
|
||||||
$skill_score = $row['skill_score'];
|
$serving_system = $row['serving_system'];
|
||||||
$serving_agent = $row['serving_agent'];
|
$state = $row['state'];
|
||||||
$serving_system = $row['serving_system'];
|
if ($state=="Trying") {$q_trying = $q_trying + 1;}
|
||||||
$state = $row['state'];
|
if ($state=="Waiting") {$q_waiting = $q_waiting + 1;}
|
||||||
if ($state=="Trying") {$q_trying = $q_trying + 1;}
|
if ($state=="Answered") {$q_answered = $q_answered + 1;}
|
||||||
if ($state=="Waiting") {$q_waiting = $q_waiting + 1;}
|
|
||||||
if ($state=="Answered") {$q_answered = $q_answered + 1;}
|
|
||||||
|
|
||||||
$joined_seconds = time() - $joined_epoch;
|
$joined_seconds = time() - $joined_epoch;
|
||||||
$joined_length_hour = floor($joined_seconds/3600);
|
$joined_length_hour = floor($joined_seconds/3600);
|
||||||
$joined_length_min = floor($joined_seconds/60 - ($joined_length_hour * 60));
|
$joined_length_min = floor($joined_seconds/60 - ($joined_length_hour * 60));
|
||||||
$joined_length_sec = $joined_seconds - (($joined_length_hour * 3600) + ($joined_length_min * 60));
|
$joined_length_sec = $joined_seconds - (($joined_length_hour * 3600) + ($joined_length_min * 60));
|
||||||
$joined_length_min = sprintf("%02d", $joined_length_min);
|
$joined_length_min = sprintf("%02d", $joined_length_min);
|
||||||
$joined_length_sec = sprintf("%02d", $joined_length_sec);
|
$joined_length_sec = sprintf("%02d", $joined_length_sec);
|
||||||
$joined_length = $joined_length_hour.':'.$joined_length_min.':'.$joined_length_sec;
|
$joined_length = $joined_length_hour.':'.$joined_length_min.':'.$joined_length_sec;
|
||||||
|
|
||||||
//$system_seconds = time() - $system_epoch;
|
//$system_seconds = time() - $system_epoch;
|
||||||
//$system_length_hour = floor($system_seconds/3600);
|
//$system_length_hour = floor($system_seconds/3600);
|
||||||
//$system_length_min = floor($system_seconds/60 - ($system_length_hour * 60));
|
//$system_length_min = floor($system_seconds/60 - ($system_length_hour * 60));
|
||||||
//$system_length_sec = $system_seconds - (($system_length_hour * 3600) + ($system_length_min * 60));
|
//$system_length_sec = $system_seconds - (($system_length_hour * 3600) + ($system_length_min * 60));
|
||||||
//$system_length_min = sprintf("%02d", $system_length_min);
|
//$system_length_min = sprintf("%02d", $system_length_min);
|
||||||
//$system_length_sec = sprintf("%02d", $system_length_sec);
|
//$system_length_sec = sprintf("%02d", $system_length_sec);
|
||||||
//$system_length = $system_length_hour.':'.$system_length_min.':'.$system_length_sec;
|
//$system_length = $system_length_hour.':'.$system_length_min.':'.$system_length_sec;
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td valign='top' class='".$row_style[$c]."'>".$joined_length."</td>\n";
|
echo "<td valign='top' class='".$row_style[$c]."'>".$joined_length."</td>\n";
|
||||||
//echo "<td valign='top' class='".$row_style[$c]."'>".$system_length."</td>\n";
|
//echo "<td valign='top' class='".$row_style[$c]."'>".$system_length."</td>\n";
|
||||||
echo "<td valign='top' class='".$row_style[$c]."'>".$caller_name." </td>\n";
|
echo "<td valign='top' class='".$row_style[$c]."'>".$caller_name." </td>\n";
|
||||||
echo "<td valign='top' class='".$row_style[$c]."'>".$caller_number." </td>\n";
|
echo "<td valign='top' class='".$row_style[$c]."'>".$caller_number." </td>\n";
|
||||||
echo "<td valign='top' class='".$row_style[$c]."'>".$state."</td>\n";
|
echo "<td valign='top' class='".$row_style[$c]."'>".$state."</td>\n";
|
||||||
if (if_group("admin") || if_group("superadmin")) {
|
if (if_group("admin") || if_group("superadmin")) {
|
||||||
echo "<td valign='top' class='".$row_style[$c]."'>";
|
echo "<td valign='top' class='".$row_style[$c]."'>";
|
||||||
|
|
||||||
$q_caller_number = urlencode($caller_number);
|
$q_caller_number = urlencode($caller_number);
|
||||||
$orig_command="{origination_caller_id_name=eavesdrop,origination_caller_id_number=".$q_caller_number."}user/".$_SESSION['user']['extension'][0]['user']."@".$_SESSION['domain_name']." %26eavesdrop(".$session_uuid.")";
|
$orig_command="{origination_caller_id_name=eavesdrop,origination_caller_id_number=".$q_caller_number."}user/".$_SESSION['user']['extension'][0]['user']."@".$_SESSION['domain_name']." %26eavesdrop(".$session_uuid.")";
|
||||||
|
|
||||||
//debug
|
//debug
|
||||||
//echo $orig_command;
|
//echo $orig_command;
|
||||||
//echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"confirm_response = confirm('".$text['message-confirm']."');if (confirm_response){send_cmd('call_center_exec.php?cmd=log+".$orig_command.")');}\">log_cmd</a> \n";
|
//echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"confirm_response = confirm('".$text['message-confirm']."');if (confirm_response){send_cmd('call_center_exec.php?cmd=log+".$orig_command.")');}\">log_cmd</a> \n";
|
||||||
|
|
||||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"confirm_response = confirm('".$text['message-confirm']."');if (confirm_response){send_cmd('call_center_exec.php?cmd=originate+".$orig_command.")');}\">".$text['label-eavesdrop']."</a> \n";
|
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"confirm_response = confirm('".$text['message-confirm']."');if (confirm_response){send_cmd('call_center_exec.php?cmd=originate+".$orig_command.")');}\">".$text['label-eavesdrop']."</a> \n";
|
||||||
|
|
||||||
|
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
}
|
}
|
||||||
echo "<td valign='top' class='".$row_style[$c]."'>".$serving_agent." </td>\n";
|
echo "<td valign='top' class='".$row_style[$c]."'>".$serving_agent." </td>\n";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
if ($c==0) { $c=1; } else { $c=0; }
|
if ($c==0) { $c=1; } else { $c=0; }
|
||||||
} //end if uuid_exists
|
|
||||||
}
|
}
|
||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
echo "</br>";
|
echo "</br>";
|
||||||
|
|||||||
Reference in New Issue
Block a user