yealink needs mac without dashes
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
|
Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
|
||||||
*/
|
*/
|
||||||
include "root.php";
|
include "root.php";
|
||||||
|
|
||||||
@@ -466,6 +467,9 @@ include "root.php";
|
|||||||
case "snom":
|
case "snom":
|
||||||
$mac = strtolower($mac);
|
$mac = strtolower($mac);
|
||||||
break;
|
break;
|
||||||
|
case "yealink":
|
||||||
|
$mac = strtolower($mac);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
$mac = strtolower($mac);
|
$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);
|
$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);
|
||||||
@@ -646,4 +650,4 @@ include "root.php";
|
|||||||
} //end write function
|
} //end write function
|
||||||
} //end provision class
|
} //end provision class
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user