mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
fix bug for registration count (#7293)
This commit is contained in:
@@ -137,8 +137,8 @@
|
|||||||
//use a while loop to ensure the event socket stays connected while communicating
|
//use a while loop to ensure the event socket stays connected while communicating
|
||||||
$count = count($sip_profiles);
|
$count = count($sip_profiles);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
while ($event_socket->is_connected() && $i++ < $count) {
|
while ($event_socket->is_connected() && $i < $count) {
|
||||||
$field = $sip_profiles[$i];
|
$field = $sip_profiles[$i++];
|
||||||
|
|
||||||
//get sofia status profile information including registrations
|
//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";
|
||||||
|
|||||||
Reference in New Issue
Block a user