Correct ignore to IGNORE in iconv paramter.

This commit is contained in:
kovacsrobi
2021-03-26 23:31:51 +01:00
parent 414954ff22
commit 40ac4ff212

View File

@@ -88,7 +88,7 @@ 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 (function_exists('iconv')) { $xml_response = iconv("utf-8", "utf-8//ignore", $xml_response); }
if (function_exists('iconv')) { $xml_response = iconv("utf-8", "utf-8//IGNORE", $xml_response); }
$xml_response = preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/u', '', $xml_response);
if ($xml_response == "Invalid Profile!") { $xml_response = "<error_msg>".$text['label-message']."</error_msg>"; }
$xml_response = str_replace("<profile-info>", "<profile_info>", $xml_response);