From 254d58f6148ef92e0acd439a05cbf73a5dd4c601 Mon Sep 17 00:00:00 2001 From: jonathanblack1000 <42976845+jonathanblack1000@users.noreply.github.com> Date: Tue, 29 Aug 2023 11:55:19 -0500 Subject: [PATCH] Second try fixing line keys on GXP2135 (#6793) GXP2135 requires special handling on keys to handle line key vs BLF/Speed dial vs blank. --- resources/templates/provision/grandstream/gxp2135/{$mac}.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml index a5579db1b4..4addd0f028 100644 --- a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml @@ -8603,14 +8603,13 @@ - {$fixed_keys=4} {if $template == "grandstream/gxp2130"}{$fixed_keys=3}{/if} {if $template == "grandstream/gxp2140"}{$fixed_keys=4}{/if} {if $template == "grandstream/gxp2160"}{$fixed_keys=6}{/if} {if $template == "grandstream/gxp2170"}{$fixed_keys=12}{/if} -{if $template == "grandstream/gxp2135"}{$fixed_keys=4}{/if} +{if $template == "grandstream/gxp2135"}{$fixed_keys=8}{/if} {$start_id=1363} {assign var=key_types value=["none"=>-1,"line"=>0,"shared line"=>1,"speed dial"=>10, "blf"=>11, "presence watcher"=>12, "eventlist blf"=>13,"speed dial active"=>14,"dial dtmf"=>15,"voicemail"=>16,"call return"=>17,"transfer"=>18,"call park"=>19,"intercom"=>20,"ldap search"=>21,"multicast paging"=>23,"record"=>24,"call log"=>25,"monitored call park"=>26,"menu"=>27]} @@ -8627,7 +8626,7 @@
{$keys.line.$line.device_key_label}
{$keys.line.$line.device_key_value}
{else} -{if $line <= $fixed_keys} +{if $line <= 4 }0
{$line-1}