yealink needs mac without dashes

This commit is contained in:
luis daniel lucio quiroz 2014-12-22 23:47:41 +00:00
parent e522a14e56
commit c3ba078878
1 changed files with 5 additions and 1 deletions

View File

@ -22,6 +22,7 @@
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
*/
include "root.php";
@ -466,6 +467,9 @@ include "root.php";
case "snom":
$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);
@ -646,4 +650,4 @@ include "root.php";
} //end write function
} //end provision class
?>
?>