mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix. Display domain name for inbound calls in calls_active app (#2917)
This commit is contained in:
committed by
FusionPBX
parent
7029d3c74f
commit
ebfa022a90
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user