Yet another ip phone reporting MAC in the UserAgent (#2492)
This commit is contained in:
committed by
FusionPBX
parent
c437c20668
commit
a6b3c77976
@@ -87,6 +87,11 @@
|
|||||||
$mac = substr($_SERVER['HTTP_USER_AGENT'],-12);
|
$mac = substr($_SERVER['HTTP_USER_AGENT'],-12);
|
||||||
$mac = preg_replace("#[^a-fA-F0-9./]#", "", $mac);
|
$mac = preg_replace("#[^a-fA-F0-9./]#", "", $mac);
|
||||||
}
|
}
|
||||||
|
//Audiocodes: $_SERVER['HTTP_USER_AGENT'] = "AUDC-IPPhone/2.2.8.61 (440HDG-Rev0; 00908F602AAC)"
|
||||||
|
if (substr($_SERVER['HTTP_USER_AGENT'],0,12) == "AUDC-IPPhone") {
|
||||||
|
$mac = substr($_SERVER['HTTP_USER_AGENT'],-13);
|
||||||
|
$mac = preg_replace("#[^a-fA-F0-9./]#", "", $mac);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//prepare the mac address
|
//prepare the mac address
|
||||||
|
|||||||
Reference in New Issue
Block a user