mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update call_center_agents.php
This commit is contained in:
@@ -92,7 +92,7 @@
|
||||
|
||||
//send the agent status status to mod_call_center
|
||||
$cmd = "callcenter_config agent set status ".$agent_uuid." '".$agent_status."'";
|
||||
$response = event_socket::api($cmd);
|
||||
$response = event_socket::api($cmd);
|
||||
|
||||
//add or delete agents from the queue assigned by the tier
|
||||
foreach ($_POST['agents'] as $row) {
|
||||
@@ -148,7 +148,7 @@
|
||||
unset($sql, $parameters);
|
||||
|
||||
//get the call center queues from the database
|
||||
if (!empty($_SESSION['call_center']['queue_login']['text']) && $_SESSION['call_center']['queue_login']['text'] == 'dynamic') {
|
||||
//if ($settings->get('call_center, queue_login', '') == 'dynamic') {
|
||||
$sql = "select * from v_call_center_queues ";
|
||||
$sql .= "where domain_uuid = :domain_uuid ";
|
||||
$sql .= "and call_center_queue_uuid in ( ";
|
||||
@@ -161,7 +161,7 @@
|
||||
$call_center_queues = $database->select($sql, $parameters, 'all');
|
||||
$num_rows = !is_array($call_center_queues) ? 0 : @sizeof($call_center_queues);
|
||||
unset($sql, $parameters);
|
||||
}
|
||||
//}
|
||||
|
||||
//get the agent details from event socket
|
||||
$switch_cmd = 'callcenter_config agent list '.($agent['call_center_agent_uuid'] ?? null);
|
||||
|
||||
Reference in New Issue
Block a user