From 3a6f1e7efa71e525103c1b6157fc05cebab68eaf Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 21 Feb 2018 00:38:29 -0700 Subject: [PATCH] Update registrations.php Removed the encoding type changes changes as it broke XML parsing of the registrations. --- app/registrations/resources/classes/registrations.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/registrations/resources/classes/registrations.php b/app/registrations/resources/classes/registrations.php index e488814aee..e23d83afb4 100644 --- a/app/registrations/resources/classes/registrations.php +++ b/app/registrations/resources/classes/registrations.php @@ -62,13 +62,11 @@ if (!class_exists('registrations')) { //get sofia status profile information including registrations $cmd = "api sofia xmlstatus profile ".$field['sip_profile_name']." reg"; $xml_response = trim(event_socket_request($fp, $cmd)); - if ($xml_response == "Invalid Profile!") { $xml_response = "".$text['label-message'].""; } $xml_response = str_replace("", "", $xml_response); $xml_response = str_replace("", "", $xml_response); if (strlen($xml_response) > 101) { try { - $xml_response = str_ireplace("", "", $xml_response); $xml = new SimpleXMLElement($xml_response); } catch(Exception $e) {