Allow provisioning with internal addressbook and update snom320 template for it

This commit is contained in:
Jörn Ott
2015-09-03 15:57:57 +02:00
parent d3a1e48c18
commit 66425ae25c
2 changed files with 32 additions and 13 deletions
@@ -661,6 +661,14 @@ include "root.php";
}
unset ($prep_statement);
//populate internal address book
$sql = "SELECT extension as , effective_caller_id_name, effective_caller_id_number, outbound_caller_id_name, outbound_caller_id_number, directory_full_name FROM v_extensions";
$prep_statement = $this->db->prepare(check_sql($sql));
$prep_statement->execute();
$internal_addressbook = $prep_statement->fetchAll(PDO::FETCH_NAMED);
$view->assign("internal_addressbook",$internal_addressbook);
unset ($prep_statement);
//set the mac address in the correct format
switch (strtolower($device_vendor)) {
case "aastra":