[call_center_active] Queue pickup (#6521)
This commit is contained in:
parent
68f7ca517e
commit
2a0616b050
|
|
@ -322,7 +322,7 @@
|
||||||
echo "<th>".$text['label-name']."</th>\n";
|
echo "<th>".$text['label-name']."</th>\n";
|
||||||
echo "<th>".$text['label-number']."</th>\n";
|
echo "<th>".$text['label-number']."</th>\n";
|
||||||
echo "<th>".$text['label-status']."</th>\n";
|
echo "<th>".$text['label-status']."</th>\n";
|
||||||
if ((if_group("admin") || if_group("superadmin"))) {
|
if (permission_exists('call_center_active_options')) {
|
||||||
echo "<th>".$text['label-options']."</th>\n";
|
echo "<th>".$text['label-options']."</th>\n";
|
||||||
}
|
}
|
||||||
echo "<th>".$text['label-agent']."</th>\n";
|
echo "<th>".$text['label-agent']."</th>\n";
|
||||||
|
|
@ -370,11 +370,12 @@
|
||||||
echo "<td>".escape($caller_name)." </td>\n";
|
echo "<td>".escape($caller_name)." </td>\n";
|
||||||
echo "<td>".escape($caller_number)." </td>\n";
|
echo "<td>".escape($caller_number)." </td>\n";
|
||||||
echo "<td>".escape($state)."</td>\n";
|
echo "<td>".escape($state)."</td>\n";
|
||||||
if (if_group("admin") || if_group("superadmin")) {
|
if (permission_exists('call_center_active_options')) {
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
if ($state != "Abandoned") {
|
if ($state != "Abandoned") {
|
||||||
$orig_command="{origination_caller_id_name=eavesdrop,origination_caller_id_number=".escape($q_caller_number)."}user/".escape($_SESSION['user']['extension'][0]['user'])."@".escape($_SESSION['domain_name'])." %26eavesdrop(".escape($session_uuid).")";
|
$orig_command="{origination_caller_id_name=eavesdrop,origination_caller_id_number=".escape($q_caller_number)."}user/".escape($_SESSION['user']['extension'][0]['user'])."@".escape($_SESSION['domain_name'])." %26eavesdrop(".escape($session_uuid).")";
|
||||||
echo button::create(['type'=>'button','class'=>'link','label'=>$text['label-eavesdrop'],'onclick'=>"if (confirm('".$text['message-confirm']."')) { send_command('call_center_exec.php?command=eavesdrop&caller_id_number=".urlencode($caller_number)."&uuid=".urlencode($session_uuid)."'); } else { this.blur(); return false; }"]);
|
echo button::create(['type'=>'button','class'=>'link','label'=>$text['label-eavesdrop'],'onclick'=>"if (confirm('".$text['message-confirm']."')) { send_command('call_center_exec.php?command=eavesdrop&caller_id_number=".urlencode($caller_number)."&uuid=".urlencode($session_uuid)."'); } else { this.blur(); return false; }"]);
|
||||||
|
echo button::create(['type'=>'button','class'=>'link','label'=>$text['label-transfer'],'style'=>'margin-left: 15px;','onclick'=>"if (confirm('".$text['message-confirm']."')) { send_command('call_center_exec.php?command=uuid_pickup&uuid=".urlencode($session_uuid)."'); } else { this.blur(); return false; }"]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo " ";
|
echo " ";
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
require_once "resources/check_auth.php";
|
require_once "resources/check_auth.php";
|
||||||
|
|
||||||
//check permissions
|
//check permissions
|
||||||
if (permission_exists('call_center_active_view')) {
|
if (permission_exists('call_center_active_options')) {
|
||||||
//access granted
|
//access granted
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
@ -81,6 +81,9 @@
|
||||||
case "uuid_transfer":
|
case "uuid_transfer":
|
||||||
$switch_command = "uuid_transfer ".$uuid." -bleg ".$_SESSION['user']['extension'][0]['user']." XML ".$_SESSION['domain_name'];
|
$switch_command = "uuid_transfer ".$uuid." -bleg ".$_SESSION['user']['extension'][0]['user']." XML ".$_SESSION['domain_name'];
|
||||||
break;
|
break;
|
||||||
|
case "uuid_pickup":
|
||||||
|
$switch_command = "uuid_transfer ".$uuid." ".$_SESSION['user']['extension'][0]['user']." XML ".$_SESSION['domain_name'];
|
||||||
|
break;
|
||||||
case "bridge":
|
case "bridge":
|
||||||
$switch_command = "originate {origination_caller_id_name=".$caller_id_name.",origination_caller_id_number=".$caller_id_number."}user/".$_SESSION['user']['extension'][0]['user']."@".$_SESSION['domain_name']." bridge(user/".$extension."@".$_SESSION['domain_name'].")";
|
$switch_command = "originate {origination_caller_id_name=".$caller_id_name.",origination_caller_id_number=".$caller_id_number."}user/".$_SESSION['user']['extension'][0]['user']."@".$_SESSION['domain_name']." bridge(user/".$extension."@".$_SESSION['domain_name'].")";
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue