Fix. Display domain name for inbound calls in `calls_active` app (#2917)
This commit is contained in:
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue