mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
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:
@@ -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']." </td>\n";
|
||||
echo " <td class='".$row_style[$c]."'>".htmlentities($row['agent'])." </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";
|
||||
|
||||
Reference in New Issue
Block a user