fix bug for registration count (#7293)

This commit is contained in:
frytimo 2025-03-06 18:46:17 -04:00 committed by GitHub
parent 8b95f62d39
commit fbeb65428e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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";