Add contact column to registration table (#2310)

Command "sofia xmlstatus profile internal reg" returns contact in this format:
"Contact Name" <sip:236@10.0.15.108:5060;>
Only Aastra phones send Contact name with REGISTER message. 
I tested Grandstream and Polycom phones, but contact name is missing. 
Adding just "	<td class='".$row_style[$c]."'>".$row['contact']."</td>\n"; will produce same visible result because <sip:....> portion will be hidden.
This commit is contained in:
sergey-mz
2017-04-22 16:42:32 -04:00
committed by FusionPBX
parent 3adbbc7d57
commit 498e054518

View File

@@ -133,6 +133,7 @@ require_once "resources/classes/status_registrations.php";
echo "<tr>\n";
echo " <th>".$text['label-user']."</th>\n";
echo " <th>".$text['label-agent']."</th>\n";
echo " <th>".$text['label-contact']."</th>\n";
echo " <th>".$text['label-lan_ip']."</th>\n";
echo " <th>".$text['label-ip']."</th>\n";
echo " <th>".$text['label-port']."</th>\n";
@@ -160,6 +161,7 @@ require_once "resources/classes/status_registrations.php";
echo "<tr>\n";
echo " <td class='".$row_style[$c]."'>".$row['user']."&nbsp;</td>\n";
echo " <td class='".$row_style[$c]."'>".htmlentities($row['agent'])."&nbsp;</td>\n";
echo " <td class='".$row_style[$c]."'>".explode('"',$row['contact'])[1]."</td>\n";
echo " <td class='".$row_style[$c]."'>".$row['lan-ip']."</td>\n";
echo " <td class='".$row_style[$c]."'>".$row['network-ip']."</td>\n";
echo " <td class='".$row_style[$c]."'>".$row['network-port']."</td>\n";