From adbb9f9fd850a6953be162748fcc6d0c7a232221 Mon Sep 17 00:00:00 2001 From: Antonio Fernandez Date: Fri, 5 Jul 2024 22:01:30 -0400 Subject: [PATCH] fix for Avaya buttons (#7038) --- resources/templates/provision/avaya/J169/{$mac}.cfg | 10 +++++----- resources/templates/provision/avaya/J179/{$mac}.cfg | 10 +++++----- resources/templates/provision/avaya/J189/{$mac}.cfg | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/resources/templates/provision/avaya/J169/{$mac}.cfg b/resources/templates/provision/avaya/J169/{$mac}.cfg index 421e32ff53..70d7ec2502 100644 --- a/resources/templates/provision/avaya/J169/{$mac}.cfg +++ b/resources/templates/provision/avaya/J169/{$mac}.cfg @@ -183,19 +183,19 @@ SET SIMULTANEOUS_REGISTRATIONS 1 {foreach $keys["line"] as $row} {if in_array($row.device_key_type, array("callfwd", "callfwdna", "callfwdbusy", "dnd" , "autoanswer"))} -SET PHONEKEY "Key={$row.device_key_id+1};Type=feature;Name={$row.device_key_type};Label={$row.device_key_label};Forced" +SET PHONEKEY "Key={$row.device_key_id+3};Type=feature;Name={$row.device_key_type};Label={$row.device_key_label};Forced" {elseif in_array($row.device_key_type, array("blf"))} -SET PHONEKEY "Key={$row.device_key_id+1};Type=feature;Name={$row.device_key_type};Label={$row.device_key_label};attr1={$row.device_key_value};attr2={$row.device_key_value};Forced" +SET PHONEKEY "Key={$row.device_key_id+3};Type=feature;Name={$row.device_key_type};Label={$row.device_key_label};attr1={$row.device_key_value};attr2={$row.device_key_value};Forced" {elseif in_array($row.device_key_type, array("lock", "logout", "screensaver"))} -SET PHONEKEY "Key={$row.device_key_id+1};Type=application;Name={$row.device_key_type};Label={$row.device_key_label};Forced" +SET PHONEKEY "Key={$row.device_key_id+3};Type=application;Name={$row.device_key_type};Label={$row.device_key_label};Forced" {elseif in_array($row.device_key_type, array("primary"))} -SET PHONEKEY "Key={$row.device_key_id+1};Type=line;Name={$row.device_key_type};attr1={$row.device_key_line};Forced" +SET PHONEKEY "Key={$row.device_key_id+3};Type=line;Name={$row.device_key_type};attr1={$row.device_key_line};Forced" {elseif in_array($row.device_key_type, array("autodial"))} -SET PHONEKEY "Key={$row.device_key_id+1};Type=autodial;Name={$row.device_key_type};attr1={$row.device_key_value};Label={$row.device_key_label};Forced" +SET PHONEKEY "Key={$row.device_key_id+3};Type=autodial;Name={$row.device_key_type};attr1={$row.device_key_value};Label={$row.device_key_label};Forced" {/if} {/foreach} diff --git a/resources/templates/provision/avaya/J179/{$mac}.cfg b/resources/templates/provision/avaya/J179/{$mac}.cfg index a97be627c7..8b8309307c 100644 --- a/resources/templates/provision/avaya/J179/{$mac}.cfg +++ b/resources/templates/provision/avaya/J179/{$mac}.cfg @@ -183,19 +183,19 @@ SET SIMULTANEOUS_REGISTRATIONS 1 {foreach $keys["line"] as $row} {if in_array($row.device_key_type, array("callfwd", "callfwdna", "callfwdbusy", "dnd" , "autoanswer"))} -SET PHONEKEY "Key={$row.device_key_id+1};Type=feature;Name={$row.device_key_type};Label={$row.device_key_label};Forced" +SET PHONEKEY "Key={$row.device_key_id+3};Type=feature;Name={$row.device_key_type};Label={$row.device_key_label};Forced" {elseif in_array($row.device_key_type, array("blf"))} -SET PHONEKEY "Key={$row.device_key_id+1};Type=feature;Name={$row.device_key_type};Label={$row.device_key_label};attr1={$row.device_key_value};attr2={$row.device_key_value};Forced" +SET PHONEKEY "Key={$row.device_key_id+3};Type=feature;Name={$row.device_key_type};Label={$row.device_key_label};attr1={$row.device_key_value};attr2={$row.device_key_value};Forced" {elseif in_array($row.device_key_type, array("lock", "logout", "screensaver"))} -SET PHONEKEY "Key={$row.device_key_id+1};Type=application;Name={$row.device_key_type};Label={$row.device_key_label};Forced" +SET PHONEKEY "Key={$row.device_key_id+3};Type=application;Name={$row.device_key_type};Label={$row.device_key_label};Forced" {elseif in_array($row.device_key_type, array("primary"))} -SET PHONEKEY "Key={$row.device_key_id+1};Type=line;Name={$row.device_key_type};attr1={$row.device_key_line};Forced" +SET PHONEKEY "Key={$row.device_key_id+3};Type=line;Name={$row.device_key_type};attr1={$row.device_key_line};Forced" {elseif in_array($row.device_key_type, array("autodial"))} -SET PHONEKEY "Key={$row.device_key_id+1};Type=autodial;Name={$row.device_key_type};attr1={$row.device_key_value};Label={$row.device_key_label};Forced" +SET PHONEKEY "Key={$row.device_key_id+3};Type=autodial;Name={$row.device_key_type};attr1={$row.device_key_value};Label={$row.device_key_label};Forced" {/if} {/foreach} diff --git a/resources/templates/provision/avaya/J189/{$mac}.cfg b/resources/templates/provision/avaya/J189/{$mac}.cfg index 920f261b71..1758454b62 100644 --- a/resources/templates/provision/avaya/J189/{$mac}.cfg +++ b/resources/templates/provision/avaya/J189/{$mac}.cfg @@ -188,19 +188,19 @@ SET SIMULTANEOUS_REGISTRATIONS 1 {foreach $keys["line"] as $row} {if in_array($row.device_key_type, array("callfwd", "callfwdna", "callfwdbusy", "dnd" , "autoanswer"))} -SET PHONEKEY "Key={$row.device_key_id+1};Type=feature;Name={$row.device_key_type};Label={$row.device_key_label};Forced" +SET PHONEKEY "Key={$row.device_key_id+3};Type=feature;Name={$row.device_key_type};Label={$row.device_key_label};Forced" {elseif in_array($row.device_key_type, array("blf"))} -SET PHONEKEY "Key={$row.device_key_id+1};Type=feature;Name={$row.device_key_type};Label={$row.device_key_label};attr1={$row.device_key_value};attr2={$row.device_key_value};Forced" +SET PHONEKEY "Key={$row.device_key_id+3};Type=feature;Name={$row.device_key_type};Label={$row.device_key_label};attr1={$row.device_key_value};attr2={$row.device_key_value};Forced" {elseif in_array($row.device_key_type, array("lock", "logout", "screensaver"))} -SET PHONEKEY "Key={$row.device_key_id+1};Type=application;Name={$row.device_key_type};Label={$row.device_key_label};Forced" +SET PHONEKEY "Key={$row.device_key_id+3};Type=application;Name={$row.device_key_type};Label={$row.device_key_label};Forced" {elseif in_array($row.device_key_type, array("primary"))} -SET PHONEKEY "Key={$row.device_key_id+1};Type=line;Name={$row.device_key_type};attr1={$row.device_key_line};Forced" +SET PHONEKEY "Key={$row.device_key_id+3};Type=line;Name={$row.device_key_type};attr1={$row.device_key_line};Forced" {elseif in_array($row.device_key_type, array("autodial"))} -SET PHONEKEY "Key={$row.device_key_id+1};Type=autodial;Name={$row.device_key_type};attr1={$row.device_key_value};Label={$row.device_key_label};Forced" +SET PHONEKEY "Key={$row.device_key_id+3};Type=autodial;Name={$row.device_key_type};attr1={$row.device_key_value};Label={$row.device_key_label};Forced" {/if} {/foreach}