Fix. Display domain name for inbound calls in `calls_active` app (#2917)

This commit is contained in:
Alexey Melnichuk 2017-11-21 19:09:57 +03:00 committed by FusionPBX
parent 7029d3c74f
commit ebfa022a90
1 changed files with 3 additions and 2 deletions

View File

@ -65,6 +65,7 @@
$rows = array();
if (isset($results["rows"])) {
foreach ($results["rows"] as &$row) {
$context = $row['context'];
//get the domain
if (substr_count($row['presence_id'], '@') > 0) {
$presence_id_array = explode('@', $row['presence_id']);
@ -76,7 +77,7 @@
$row['domain_name'] = $context_array[1];
}
else {
$row['domain_name'] = $row['context'];
$row['domain_name'] = $context;
}
}
//add the row to the array
@ -89,7 +90,7 @@
}
}
}
unset($results);
unset($results, $context);
}
//set the alternating color for each row