From 776302265dc0275481d3b095eb2e7daef79e39ac Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 17 Aug 2020 13:42:38 -0600 Subject: [PATCH] Allow SIP profiles with a space in the name. --- app/registrations/resources/classes/registrations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/registrations/resources/classes/registrations.php b/app/registrations/resources/classes/registrations.php index 0791c919bb..df076b2cda 100644 --- a/app/registrations/resources/classes/registrations.php +++ b/app/registrations/resources/classes/registrations.php @@ -86,7 +86,7 @@ if (!class_exists('registrations')) { foreach ($sip_profiles as $field) { //get sofia status profile information including registrations - $cmd = "api sofia xmlstatus profile ".$field['sip_profile_name']." reg"; + $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); } $xml_response = preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/u', '', $xml_response);