Update registrations.php

This commit is contained in:
FusionPBX
2025-06-12 10:16:03 -06:00
committed by GitHub
parent a71201487e
commit 793a58ba1c

View File

@@ -218,7 +218,7 @@
if (isset($call_id_array[1])) {
$agent = $row['agent'];
$lan_ip = $call_id_array[1];
if (!empty($agent) && false !== stripos($agent, 'grandstream') || false !== stripos($agent, 'ooma')) {
if (!empty($agent) && (false !== stripos($agent, 'grandstream') || false !== stripos($agent, 'ooma'))) {
$lan_ip = str_ireplace(
array('A','B','C','D','E','F','G','H','I','J'),
array('0','1','2','3','4','5','6','7','8','9'),