Enhance Gigaset LAN IP (#2970)

GIGASET Sculpture CL750A puts _ in it's lan ip account for this and
perform a replacement
This commit is contained in:
Mafoo 2018-01-31 04:06:24 +00:00 committed by FusionPBX
parent 3e64a494fc
commit 07b0c2df79
1 changed files with 3 additions and 0 deletions

View File

@ -123,6 +123,9 @@ if (!class_exists('registrations')) {
array('0','1','2','3','4','5','6','7','8','9'),
$lan_ip);
}
elseif(1 === preg_match('/\ACL750A/', $agent)) {
$lan_ip = preg_replace('/_/', '.', $lan_ip);
}
$registrations[$id]['lan-ip'] = "<a href='http://".$lan_ip."' target='_blank'>".$lan_ip."</a>";
} else {
$registrations[$id]['lan-ip'] = "&nbsp;";