diff --git a/app/registrations/app_languages.php b/app/registrations/app_languages.php index c6f7f4f160..dedf84b34d 100644 --- a/app/registrations/app_languages.php +++ b/app/registrations/app_languages.php @@ -60,6 +60,16 @@ $text['label-port']['sv-se'] = "Port"; $text['label-port']['uk'] = "Порт"; $text['label-port']['de-at'] = "Port"; +$text['label-ping']['en-us'] = "Ping"; +$text['label-ping']['es-cl'] = "Silbido"; +$text['label-ping']['pt-pt'] = "Sibilo"; +$text['label-ping']['fr-fr'] = "Ping"; +$text['label-ping']['pt-br'] = "Sibilo"; +$text['label-ping']['pl'] = "Świst"; +$text['label-ping']['sv-se'] = "Ping"; +$text['label-ping']['uk'] = "пінг"; +$text['label-ping']['de-at'] = "Klingeln"; + $text['label-message']['en-us'] = "Invalid Profile!"; $text['label-message']['es-cl'] = "¡Perfil Inválido!"; $text['label-message']['pt-pt'] = "Perfil Inválido!"; diff --git a/app/registrations/status_registrations_inc.php b/app/registrations/status_registrations_inc.php index aa867dbabc..25bb78210d 100644 --- a/app/registrations/status_registrations_inc.php +++ b/app/registrations/status_registrations_inc.php @@ -94,25 +94,32 @@ require_once "resources/check_auth.php"; $x = 0; foreach ($xml->registrations->registration as $row) { //get the values from xml and set them to the channel array - $registrations[$x]['user'] = $row->{'user'}; + $registrations[$x]['user'] = $row->{'user'} ?: " "; $user_array = explode('@', $row->{'user'}); - $registrations[$x]['call-id'] = $row->{'call-id'}; - $registrations[$x]['contact'] = $row->{'contact'}; - $registrations[$x]['sip-auth-user'] = $row->{'sip-auth-user'}; - $registrations[$x]['agent'] = $row->{'agent'}; - $registrations[$x]['host'] = $row->{'host'}; - $registrations[$x]['network-ip'] = $row->{'network-ip'}; - $registrations[$x]['network-port'] = $row->{'network-port'}; - $registrations[$x]['sip-auth-realm'] = $row->{'sip-auth-realm'}; - $registrations[$x]['mwi-account'] = $row->{'mwi-account'}; - $registrations[$x]['status'] = $row->{'status'}; + $registrations[$x]['call-id'] = $row->{'call-id'} ?: " "; + $registrations[$x]['contact'] = $row->{'contact'} ?: " "; + $registrations[$x]['sip-auth-user'] = $row->{'sip-auth-user'} ?: " "; + $registrations[$x]['agent'] = $row->{'agent'} ?: " "; + $registrations[$x]['host'] = $row->{'host'} ?: " "; + $registrations[$x]['network-port'] = $row->{'network-port'} ?: " "; + $registrations[$x]['sip-auth-realm'] = $row->{'sip-auth-realm'} ?: " "; + $registrations[$x]['mwi-account'] = $row->{'mwi-account'} ?: " "; + $registrations[$x]['status'] = $row->{'status'} ?: " "; + $registrations[$x]['ping-time'] = $row->{'ping-time'} ?: " "; + //get network-ip to url or blank + if(isset($row->{'network-ip'})) { + $registrations[$x]['network-ip'] = "".$row->{'network-ip'}.""; + }else{ + $registrations[$x]['network-ip'] = " "; + } //get the LAN IP address if it exists replace the external ip $call_id_array = explode('@', $row->{'call-id'}); if (isset($call_id_array[1])) { - $registrations[$x]['lan-ip'] = $call_id_array[1]; + $registrations[$x]['lan-ip'] = "".$call_id_array[1].""; + }else{ + $registrations[$x]['lan-ip'] = " "; } - //remove unrelated domains if (count($_SESSION["domains"]) > 1) { if (!(permission_exists('registration_all') && $show == "all")) { @@ -161,6 +168,7 @@ require_once "resources/check_auth.php"; echo "