From bb379b997e0540e7ce50874fa1bf14812718211e Mon Sep 17 00:00:00 2001 From: markjcrane Date: Wed, 23 Mar 2016 00:14:30 -0600 Subject: [PATCH] Show both LAN and WAN IP in the registrations. --- app/registrations/app_languages.php | 10 ++++++++++ app/registrations/status_registrations_inc.php | 6 ++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/app/registrations/app_languages.php b/app/registrations/app_languages.php index f849143372..c6f7f4f160 100644 --- a/app/registrations/app_languages.php +++ b/app/registrations/app_languages.php @@ -70,6 +70,16 @@ $text['label-message']['sv-se'] = "Ogiltig Profil!"; $text['label-message']['uk'] = "Хибний профіль!"; $text['label-message']['de-at'] = "Ungültiges Profil!"; +$text['label-lan_ip']['en-us'] = "LAN IP"; +$text['label-lan_ip']['es-cl'] = "LAN IP"; +$text['label-lan_ip']['pt-pt'] = "LAN IP"; +$text['label-lan_ip']['fr-fr'] = "LAN IP"; +$text['label-lan_ip']['pt-br'] = "LAN IP"; +$text['label-lan_ip']['pl'] = "LAN IP"; +$text['label-lan_ip']['sv-se'] = "LAN IP"; +$text['label-lan_ip']['uk'] = "LAN IP"; +$text['label-lan_ip']['de-at'] = "LAN IP"; + $text['label-ip']['en-us'] = "IP"; $text['label-ip']['es-cl'] = "IP"; $text['label-ip']['pt-pt'] = "IP"; diff --git a/app/registrations/status_registrations_inc.php b/app/registrations/status_registrations_inc.php index 46963d2838..aa867dbabc 100644 --- a/app/registrations/status_registrations_inc.php +++ b/app/registrations/status_registrations_inc.php @@ -107,10 +107,10 @@ require_once "resources/check_auth.php"; $registrations[$x]['mwi-account'] = $row->{'mwi-account'}; $registrations[$x]['status'] = $row->{'status'}; - //get the NAT ip address if it exists replace the external 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]['network-ip'] = $call_id_array[1]; + $registrations[$x]['lan-ip'] = $call_id_array[1]; } //remove unrelated domains @@ -156,6 +156,7 @@ require_once "resources/check_auth.php"; echo "\n"; echo " ".$text['label-user']."\n"; echo " ".$text['label-agent']."\n"; + echo " ".$text['label-lan_ip']."\n"; echo " ".$text['label-ip']."\n"; echo " ".$text['label-port']."\n"; echo " ".$text['label-hostname']."\n"; @@ -178,6 +179,7 @@ require_once "resources/check_auth.php"; echo "\n"; echo " ".$row['user']." \n"; echo " ".htmlentities($row['agent'])." \n"; + echo " ".$row['lan-ip']." \n"; echo " ".$row['network-ip']." \n"; echo " ".$row['network-port']." \n"; echo " ".$row['host']." \n";