Update provision.php

This commit is contained in:
FusionPBX
2017-11-22 18:18:56 -07:00
committed by GitHub
parent 722e82ef18
commit 237cf6f14d

View File

@@ -167,9 +167,11 @@ include "root.php";
case "grandstream":
$mac = strtolower($mac);
break;
case "yealink":
$mac = strtolower($mac);
break;
default:
$mac = strtolower($mac);
$mac = substr($mac, 0,2).'-'.substr($mac, 2,2).'-'.substr($mac, 4,2).'-'.substr($mac, 6,2).'-'.substr($mac, 8,2).'-'.substr($mac, 10,2);
}
return $mac;
}