mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Yet another ip phone reporting MAC in the UserAgent (#2492)
This commit is contained in:
committed by
FusionPBX
parent
fff424a9b9
commit
35c139ddb8
@@ -87,6 +87,11 @@
|
||||
$mac = substr($_SERVER['HTTP_USER_AGENT'],-12);
|
||||
$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
|
||||
|
||||
Reference in New Issue
Block a user