Skip to content

Commit

Permalink
Merge pull request #5851 from kovacsrobi77/master
Browse files Browse the repository at this point in the history
Registrations list is empty
  • Loading branch information
markjcrane committed Apr 8, 2021
2 parents 2a70701 + 40ac4ff commit 74b26dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/registrations/resources/classes/registrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function get($profile) {
//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);
Expand Down

0 comments on commit 74b26dd

Please sign in to comment.