From 498e054518004997d88772d205c5555e3b2345e2 Mon Sep 17 00:00:00 2001 From: sergey-mz Date: Sat, 22 Apr 2017 16:42:32 -0400 Subject: [PATCH] Add contact column to registration table (#2310) Command "sofia xmlstatus profile internal reg" returns contact in this format: "Contact Name" Only Aastra phones send Contact name with REGISTER message. I tested Grandstream and Polycom phones, but contact name is missing. Adding just " ".$row['contact']."\n"; will produce same visible result because portion will be hidden. --- app/registrations/status_registrations_inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/registrations/status_registrations_inc.php b/app/registrations/status_registrations_inc.php index b6506c75cf..2823d45429 100644 --- a/app/registrations/status_registrations_inc.php +++ b/app/registrations/status_registrations_inc.php @@ -133,6 +133,7 @@ require_once "resources/classes/status_registrations.php"; echo "\n"; echo " ".$text['label-user']."\n"; echo " ".$text['label-agent']."\n"; + echo " ".$text['label-contact']."\n"; echo " ".$text['label-lan_ip']."\n"; echo " ".$text['label-ip']."\n"; echo " ".$text['label-port']."\n"; @@ -160,6 +161,7 @@ require_once "resources/classes/status_registrations.php"; echo "\n"; echo " ".$row['user']." \n"; echo " ".htmlentities($row['agent'])." \n"; + echo " ".explode('"',$row['contact'])[1]."\n"; echo " ".$row['lan-ip']."\n"; echo " ".$row['network-ip']."\n"; echo " ".$row['network-port']."\n";