mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
Add option to get the mac address from &name=SEPxxxxx
This commit is contained in:
@@ -42,6 +42,15 @@ openlog("fusion-provisioning", LOG_PID | LOG_PERROR, LOG_LOCAL0);
|
||||
// $device_template = check_str($_REQUEST['template']);
|
||||
//}
|
||||
|
||||
//get the mac address for Cisco 79xx in the URL as &name=SEP000000000000
|
||||
if (empty($mac)){
|
||||
$name = check_str($_REQUEST['name']);
|
||||
if (substr($name, 0, 3) == "SEP") {
|
||||
$mac = substr($name, 3, 12);
|
||||
unset($name);
|
||||
}
|
||||
}
|
||||
|
||||
//check alternate MAC source
|
||||
if (empty($mac)){
|
||||
//set the http user agent
|
||||
|
||||
Reference in New Issue
Block a user