diff --git a/app/call_center_active/call_center_active_inc.php b/app/call_center_active/call_center_active_inc.php
index 28c48fc8fc..7902e39d58 100644
--- a/app/call_center_active/call_center_active_inc.php
+++ b/app/call_center_active/call_center_active_inc.php
@@ -44,7 +44,7 @@
$text = $language->get();
//get the queue_name and set it as a variable
- $queue_name = $_GET[queue_name];
+ $queue_name = $_GET['queue_name'];
//convert the string to a named array
function str_to_named_array($tmp_str, $tmp_delimiter) {
@@ -159,14 +159,13 @@
if (isset($agent_result)) foreach ($agent_result as $agent_row) {
if ($tier_row['agent'] == $agent_row['name']) {
$name = $agent_row['name'];
- $name = str_replace('@'.$_SESSION['domain_name'], '', $name);
//$system = $agent_row['system'];
- $a_uuid = $agent_row['uuid'];
+ $agent_uuid = $agent_row['uuid'];
//$type = $agent_row['type'];
$contact = $agent_row['contact'];
- $a_exten = preg_replace("/user\//", "", $contact);
- $a_exten = preg_replace("/@.*/", "", $a_exten);
- $a_exten = preg_replace("/{.*}/", "", $a_exten);
+ $agent_extension = preg_replace("/user\//", "", $contact);
+ $agent_extension = preg_replace("/@.*/", "", $agent_extension);
+ $agent_extension = preg_replace("/{.*}/", "", $agent_extension);
$status = $agent_row['status'];
$state = $agent_row['state'];
$max_no_answer = $agent_row['max_no_answer'];
@@ -199,8 +198,8 @@
$last_status_change_length = $last_status_change_length_hour.':'.$last_status_change_length_min.':'.$last_status_change_length_sec;
echo "
\n";
- echo "| ".$name." | \n";
- echo "".$a_exten." | \n";
+ echo "".$agent_row['name']." | \n";
+ echo "".$agent_extension." | \n";
echo "".$status." | \n";
echo "".$state." | \n";
echo "".$last_status_change_length." | \n";
@@ -216,20 +215,20 @@
//need to check state to so only waiting gets call, and trying/answer gets eavesdrop
if ($tier_state == "Offering" || $tier_state == "Active Inbound") {
- $orig_command="{origination_caller_id_name=eavesdrop,origination_caller_id_number=".$a_exten."}user/".$_SESSION['user']['extension'][0]['user']."@".$_SESSION['domain_name']." %26eavesdrop(".$a_uuid.")";
+ $orig_command="{origination_caller_id_name=eavesdrop,origination_caller_id_number=".$agent_extension."}user/".$_SESSION['user']['extension'][0]['user']."@".$_SESSION['domain_name']." %26eavesdrop(".$agent_uuid.")";
//debug
//echo $orig_command;
//echo " log_cmd \n";
echo " ".$text['label-eavesdrop']." \n";
- $xfer_command = $a_uuid." -bleg ".$_SESSION['user']['extension'][0]['user']." XML ".$_SESSION['domain_name'];
- //$xfer_command = $a_uuid." ".$_SESSION['user']['extension'][0]['user']." XML default";
+ $xfer_command = $agent_uuid." -bleg ".$_SESSION['user']['extension'][0]['user']." XML ".$_SESSION['domain_name'];
+ //$xfer_command = $agent_uuid." ".$_SESSION['user']['extension'][0]['user']." XML default";
$xfer_command = urlencode($xfer_command);
echo " ".$text['label-transfer']." \n";
}
else {
- $orig_call="{origination_caller_id_name=c2c-".urlencode($name).",origination_caller_id_number=".$a_exten."}user/".$_SESSION['user']['extension'][0]['user']."@".$_SESSION['domain_name']." %26bridge(user/".$a_exten."@".$_SESSION['domain_name'].")";
+ $orig_call="{origination_caller_id_name=c2c-".urlencode($name).",origination_caller_id_number=".$agent_extension."}user/".$_SESSION['user']['extension'][0]['user']."@".$_SESSION['domain_name']." %26bridge(user/".$agent_extension."@".$_SESSION['domain_name'].")";
echo " ".$text['label-call']." \n";
}
echo "";
@@ -263,7 +262,7 @@
echo "\n";
echo " \n";
- echo " ".$text['label-queue'].": ".ucfirst($_GET[queue_name])." \n";
+ echo " | ".$text['label-queue'].": ".ucfirst($_GET['name'])." \n";
echo " ".$text['description-queue']." \n";
echo " | \n";
echo " ";
|