Fix the mode definition for the Grandstream expansion keys.

This commit is contained in:
markjcrane 2015-11-30 13:09:02 -07:00
parent 675544a655
commit 8b3e6e7a96
1 changed files with 15 additions and 15 deletions

View File

@ -664,21 +664,21 @@ include "root.php";
case "ldap search": $device_key_type = "21"; break; case "ldap search": $device_key_type = "21"; break;
} }
} }
if ($device_key_category == "memory") { if ($device_key_category == "memory" || $device_key_category == "expansion") {
switch ($device_key_type) { switch ($device_key_type) {
case "speed dial": $device_key_type = "0"; break; case "speed dial": $device_key_type = "0"; break;
case "blf": $device_key_type = "1"; break; case "blf": $device_key_type = "1"; break;
case "presence watcher": $device_key_type = "2"; break; case "presence watcher": $device_key_type = "2"; break;
case "eventlist blf": $device_key_type = "3"; break; case "eventlist blf": $device_key_type = "3"; break;
case "speed dial active": $device_key_type = "4"; break; case "speed dial active": $device_key_type = "4"; break;
case "dial dtmf": $device_key_type = "5"; break; case "dial dtmf": $device_key_type = "5"; break;
case "voicemail": $device_key_type = "6"; break; case "voicemail": $device_key_type = "6"; break;
case "call return": $device_key_type = "7"; break; case "call return": $device_key_type = "7"; break;
case "transfer": $device_key_type = "8"; break; case "transfer": $device_key_type = "8"; break;
case "call park": $device_key_type = "9"; break; case "call park": $device_key_type = "9"; break;
case "intercom": $device_key_type = "10"; break; case "intercom": $device_key_type = "10"; break;
case "ldap search": $device_key_type = "11"; break; case "ldap search": $device_key_type = "11"; break;
} }
} }
} }