Add ooma to decode the IP address

This commit is contained in:
FusionPBX
2025-06-12 10:15:27 -06:00
committed by GitHub
parent 9c2f6aa70c
commit 229bdc23de

View File

@@ -181,7 +181,7 @@ if (!class_exists('registrations')) {
if (isset($call_id_array[1])) {
$agent = $row['agent'];
$lan_ip = $call_id_array[1];
if (!empty($agent) && false !== stripos($agent, 'grandstream')) {
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'),