From ebfa022a90628f186ebac4b5fe8b49dff8e5769d Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Tue, 21 Nov 2017 19:09:57 +0300 Subject: [PATCH] Fix. Display domain name for inbound calls in `calls_active` app (#2917) --- app/calls_active/calls_active_inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/calls_active/calls_active_inc.php b/app/calls_active/calls_active_inc.php index d6c966706a..22bad2c608 100644 --- a/app/calls_active/calls_active_inc.php +++ b/app/calls_active/calls_active_inc.php @@ -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