Key assignment and Aastra provisioning (#1814)

* Update device_profile_edit.php

Changed maximum key number to be able to program phones with multiple expansion boards

* Raised Device Key Maximum Number

Changed maximum key number to be able to program phones with multiple expansion boards
Also replaced while loop with for loop to match device_profile_edit.php

* Added code for all key types

Added code for all programmable key types, Hard Keys, Soft Keys, Top Keys and Expansion keys.
Also added logic to handle key assigrnment for multiple expansion boards

* Enabled time server and disabled auto discovery settings

Enabled time servers and used system variable from default settings to set time server
Disabled Link-Layer Discovery and Universal Plug and Play because why do you need to re-discover the server after the phone is provisioned

* Updated the key number option generation line

* Updated the key number option generation line
This commit is contained in:
minotaur01
2016-08-13 10:55:54 -04:00
committed by FusionPBX
parent 8e0f5b1f7e
commit c5d4c74631
3 changed files with 43 additions and 13 deletions

View File

@@ -436,8 +436,8 @@
echo "<td valign='top' align='left' nowrap='nowrap'>\n";
echo " <select class='formfld' name='device_keys[".$x."][device_key_id]'>\n";
echo " <option value=''></option>\n";
for ($i = 1; $i <= 99; $i++) {
echo " <option value='".$i."' ".(($row['device_key_id'] == $i) ? "selected='selected'" : null).">".$i."</option>\n";
for ($i = 1; $i <= 255; $i++) {
echo " <option value='$i' ".($row['device_key_id'] == $i ? "selected":null).">$i</option>\n";
}
echo " </select>\n";
echo "</td>\n";