From a37b5a94ca3222a52d7fd823bf47ceb1f3ac4aa9 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 8 Aug 2020 15:13:35 -0600 Subject: [PATCH] Get the domain_name from the presence_id. --- app/calls_active/calls_active_inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/calls_active/calls_active_inc.php b/app/calls_active/calls_active_inc.php index c2c480ba10..10a326a620 100644 --- a/app/calls_active/calls_active_inc.php +++ b/app/calls_active/calls_active_inc.php @@ -66,7 +66,7 @@ if (isset($results["rows"])) { foreach ($results["rows"] as &$row) { //get the domain - if (strlen($row['context']) > 0 and $row['context'] != "public") { + if (strlen($row['context']) > 0 && $row['context'] != "public" && $row['context'] != "default") { if (substr_count($row['context'], '@') > 0) { $context_array = explode('@', $row['context']); $row['domain_name'] = $context_array[1]; @@ -77,7 +77,7 @@ } else if (substr_count($row['presence_id'], '@') > 0) { $presence_id_array = explode('@', $row['presence_id']); - $row['domain_name'] = $presence_id_array[1].' '.__line__.' '.$row['presence_id']; + $row['domain_name'] = $presence_id_array[1]; } //add the row to the array if (($show == 'all' && permission_exists('call_active_all'))) {