mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Add ooma to decode the IP address
This commit is contained in:
@@ -218,7 +218,7 @@
|
|||||||
if (isset($call_id_array[1])) {
|
if (isset($call_id_array[1])) {
|
||||||
$agent = $row['agent'];
|
$agent = $row['agent'];
|
||||||
$lan_ip = $call_id_array[1];
|
$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(
|
$lan_ip = str_ireplace(
|
||||||
array('A','B','C','D','E','F','G','H','I','J'),
|
array('A','B','C','D','E','F','G','H','I','J'),
|
||||||
array('0','1','2','3','4','5','6','7','8','9'),
|
array('0','1','2','3','4','5','6','7','8','9'),
|
||||||
|
|||||||
Reference in New Issue
Block a user