From 023a724c3ff812f7e0f3235126ba0f06022b2f6b Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 1 Oct 2019 12:37:52 -0600 Subject: [PATCH] Update call_edit.php --- app/calls/call_edit.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/app/calls/call_edit.php b/app/calls/call_edit.php index 7244005c58..86aced99cc 100644 --- a/app/calls/call_edit.php +++ b/app/calls/call_edit.php @@ -85,6 +85,7 @@ $row = $database->select($sql, $parameters, 'row'); if (is_array($row) && sizeof($row) != 0) { $extension = $row["extension"]; + $number_alias = $row["number_alias"]; $accountcode = $row["accountcode"]; $effective_caller_id_name = $row["effective_caller_id_name"]; $effective_caller_id_number = $row["effective_caller_id_number"]; @@ -369,19 +370,22 @@ //workaround for freeswitch not sending NOTIFY when destination values are nil. Send 0. if ($forward_all_destination == "") { $feature_event_notify->forward_all_destination = "0"; - } else { + } + else { $feature_event_notify->forward_all_destination = $forward_all_destination; } if ($forward_busy_destination == "") { $feature_event_notify->forward_busy_destination = "0"; - } else { + } + else { $feature_event_notify->forward_busy_destination = $forward_busy_destination; } if ($forward_no_answer_destination == "") { $feature_event_notify->forward_no_answer_destination = "0"; - } else { + } + else { $feature_event_notify->forward_no_answer_destination = $forward_no_answer_destination; } $feature_event_notify->send_notify(); @@ -399,7 +403,7 @@ //clear the cache $cache = new cache; $cache->delete("directory:".$extension."@".$_SESSION['domain_name']); - if(strlen($number_alias) > 0){ + if (strlen($number_alias) > 0) { $cache->delete("directory:".$number_alias."@".$_SESSION['domain_name']); } @@ -446,7 +450,7 @@ } } -//get the extensions array +//get the extensions array - used with autocomplete $sql = "select * from v_extensions "; $sql .= "where domain_uuid = :domain_uuid "; $sql .= "order by extension, number_alias asc ";