Update registrations.php

Removed the encoding type changes changes as it broke XML parsing of the registrations.
This commit is contained in:
FusionPBX 2018-02-21 00:38:29 -07:00 committed by GitHub
parent 56e54f84c6
commit 42a9ec8535
1 changed files with 0 additions and 2 deletions

View File

@ -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 = "<error_msg>".$text['label-message']."</error_msg>"; }
$xml_response = str_replace("<profile-info>", "<profile_info>", $xml_response);
$xml_response = str_replace("</profile-info>", "</profile_info>", $xml_response);
if (strlen($xml_response) > 101) {
try {
$xml_response = str_ireplace("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>", "<?xml version=\"1.0\" encoding=\"UTF-8\"?>", $xml_response);
$xml = new SimpleXMLElement($xml_response);
}
catch(Exception $e) {