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 5beb80c294
commit 1157c2ba5d

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;";