From fbeb65428e22ba85018ce44c93e75e1f99f98542 Mon Sep 17 00:00:00 2001 From: frytimo Date: Thu, 6 Mar 2025 18:46:17 -0400 Subject: [PATCH] fix bug for registration count (#7293) --- app/registrations/resources/classes/registrations.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/registrations/resources/classes/registrations.php b/app/registrations/resources/classes/registrations.php index 7c9558b87d..8a66543289 100644 --- a/app/registrations/resources/classes/registrations.php +++ b/app/registrations/resources/classes/registrations.php @@ -137,8 +137,8 @@ //use a while loop to ensure the event socket stays connected while communicating $count = count($sip_profiles); $i = 0; - while ($event_socket->is_connected() && $i++ < $count) { - $field = $sip_profiles[$i]; + while ($event_socket->is_connected() && $i < $count) { + $field = $sip_profiles[$i++]; //get sofia status profile information including registrations $cmd = "api sofia xmlstatus profile '".$field['sip_profile_name']."' reg";