Fix. Operator panel with extension with number alias.
This commit is contained in:
@@ -204,6 +204,7 @@ require_once "resources/header.php";
|
|||||||
|
|
||||||
function refresh_start() {
|
function refresh_start() {
|
||||||
if (document.getElementById('refresh_state')) { document.getElementById('refresh_state').innerHTML = "<img src='resources/images/refresh_active.gif' style='width: 16px; height: 16px; border: none; margin-top: 3px; cursor: pointer;' alt=\"<?php echo $text['label-refresh_pause']?>\" title=\"<?php echo $text['label-refresh_pause']?>\">"; }
|
if (document.getElementById('refresh_state')) { document.getElementById('refresh_state').innerHTML = "<img src='resources/images/refresh_active.gif' style='width: 16px; height: 16px; border: none; margin-top: 3px; cursor: pointer;' alt=\"<?php echo $text['label-refresh_pause']?>\" title=\"<?php echo $text['label-refresh_pause']?>\">"; }
|
||||||
|
refresh_stop();
|
||||||
interval_timer_id = setInterval( function() {
|
interval_timer_id = setInterval( function() {
|
||||||
url = source_url;
|
url = source_url;
|
||||||
url += '&vd_ext_from=' + document.getElementById('vd_ext_from').value;
|
url += '&vd_ext_from=' + document.getElementById('vd_ext_from').value;
|
||||||
|
|||||||
@@ -45,6 +45,11 @@ function get_call_activity() {
|
|||||||
//build the response
|
//build the response
|
||||||
$x = 0;
|
$x = 0;
|
||||||
foreach($extensions as &$row) {
|
foreach($extensions as &$row) {
|
||||||
|
$user = $row['extension'];
|
||||||
|
if (strlen($row['number_alias']) >0 ) {
|
||||||
|
$user = $row['number_alias'];
|
||||||
|
}
|
||||||
|
|
||||||
//add the extension details
|
//add the extension details
|
||||||
$array[$x] = $row;
|
$array[$x] = $row;
|
||||||
|
|
||||||
@@ -88,7 +93,7 @@ function get_call_activity() {
|
|||||||
$presence = explode("@", $presence_id);
|
$presence = explode("@", $presence_id);
|
||||||
$presence_id = $presence[0];
|
$presence_id = $presence[0];
|
||||||
$presence_domain = $presence[1];
|
$presence_domain = $presence[1];
|
||||||
if ($row['extension'] == $presence_id) {
|
if ($user == $presence_id) {
|
||||||
if ($presence_domain == $_SESSION['domain_name']) {
|
if ($presence_domain == $_SESSION['domain_name']) {
|
||||||
$found = true;
|
$found = true;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user