From e025cf34051b3e1a742ee7dd5d0d7dd67a810081 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Wed, 23 Mar 2016 00:07:50 -0600 Subject: [PATCH] Replace the external ip with the internal nat ip address. --- app/registrations/status_registrations_inc.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/registrations/status_registrations_inc.php b/app/registrations/status_registrations_inc.php index 03fedb8c5e..46963d2838 100644 --- a/app/registrations/status_registrations_inc.php +++ b/app/registrations/status_registrations_inc.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2015 + Portions created by the Initial Developer are Copyright (C) 2008-2016 the Initial Developer. All Rights Reserved. Contributor(s): @@ -107,6 +107,12 @@ 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 + $call_id_array = explode('@', $row->{'call-id'}); + if (isset($call_id_array[1])) { + $registrations[$x]['network-ip'] = $call_id_array[1]; + } + //remove unrelated domains if (count($_SESSION["domains"]) > 1) { if (!(permission_exists('registration_all') && $show == "all")) {