Fix. Operator panel with extension with number alias.

This commit is contained in:
Alexey Melnichuk
2015-08-14 15:10:21 +04:00
parent d5592672f0
commit a4b609c746
2 changed files with 7 additions and 1 deletions

View File

@@ -45,6 +45,11 @@ function get_call_activity() {
//build the response
$x = 0;
foreach($extensions as &$row) {
$user = $row['extension'];
if (strlen($row['number_alias']) >0 ) {
$user = $row['number_alias'];
}
//add the extension details
$array[$x] = $row;
@@ -88,7 +93,7 @@ function get_call_activity() {
$presence = explode("@", $presence_id);
$presence_id = $presence[0];
$presence_domain = $presence[1];
if ($row['extension'] == $presence_id) {
if ($user == $presence_id) {
if ($presence_domain == $_SESSION['domain_name']) {
$found = true;
break;