From b61cf0cff7a89d3142caf9c63fc39f24f0f625f1 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Fri, 29 Jan 2016 12:10:55 -0700 Subject: [PATCH] More work on the Mitel key handling. --- resources/templates/provision/mitel/5324/MN_{$mac}.cfg | 4 ++-- resources/templates/provision/mitel/5330/MN_{$mac}.cfg | 4 ++-- resources/templates/provision/mitel/5340/MN_{$mac}.cfg | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/templates/provision/mitel/5324/MN_{$mac}.cfg b/resources/templates/provision/mitel/5324/MN_{$mac}.cfg index 301b8f176a..d6a28f2e81 100644 --- a/resources/templates/provision/mitel/5324/MN_{$mac}.cfg +++ b/resources/templates/provision/mitel/5324/MN_{$mac}.cfg @@ -268,7 +268,7 @@ 0 {foreach $keys as $row} -{if $row.device_key_category == "line"} +{if $row.device_key_type == "6"} {if $row.device_key_line == "1"}{$feature = "6"}{$user_id = $user_id_1}{/if} {if $row.device_key_line == "2"}{$feature = "7"}{$user_id = $user_id_2}{/if} {if $row.device_key_line == "3"}{$feature = "8"}{$user_id = $user_id_3}{/if} @@ -278,7 +278,7 @@ {if $row.device_key_line == "7"}{$feature = "12"}{$user_id = $user_id_7}{/if} {if $row.device_key_line == "8"}{$feature = "13"}{$user_id = $user_id_8}{/if} -{/if}{if $row.device_key_category != "line"} +{/if}{if $row.device_key_type != "6"} {/if} {/foreach} diff --git a/resources/templates/provision/mitel/5330/MN_{$mac}.cfg b/resources/templates/provision/mitel/5330/MN_{$mac}.cfg index 73489e7aa4..0c585c1d81 100644 --- a/resources/templates/provision/mitel/5330/MN_{$mac}.cfg +++ b/resources/templates/provision/mitel/5330/MN_{$mac}.cfg @@ -268,7 +268,7 @@ 0 {foreach $keys as $row} -{if $row.device_key_category == "line"} +{if $row.device_key_type == "6"} {if $row.device_key_line == "1"}{$feature = "6"}{$user_id = $user_id_1}{/if} {if $row.device_key_line == "2"}{$feature = "7"}{$user_id = $user_id_2}{/if} {if $row.device_key_line == "3"}{$feature = "8"}{$user_id = $user_id_3}{/if} @@ -278,7 +278,7 @@ {if $row.device_key_line == "7"}{$feature = "12"}{$user_id = $user_id_7}{/if} {if $row.device_key_line == "8"}{$feature = "13"}{$user_id = $user_id_8}{/if} -{/if}{if $row.device_key_category != "line"} +{/if}{if $row.device_key_type != "6"} {/if} {/foreach} diff --git a/resources/templates/provision/mitel/5340/MN_{$mac}.cfg b/resources/templates/provision/mitel/5340/MN_{$mac}.cfg index 73489e7aa4..0c585c1d81 100644 --- a/resources/templates/provision/mitel/5340/MN_{$mac}.cfg +++ b/resources/templates/provision/mitel/5340/MN_{$mac}.cfg @@ -268,7 +268,7 @@ 0 {foreach $keys as $row} -{if $row.device_key_category == "line"} +{if $row.device_key_type == "6"} {if $row.device_key_line == "1"}{$feature = "6"}{$user_id = $user_id_1}{/if} {if $row.device_key_line == "2"}{$feature = "7"}{$user_id = $user_id_2}{/if} {if $row.device_key_line == "3"}{$feature = "8"}{$user_id = $user_id_3}{/if} @@ -278,7 +278,7 @@ {if $row.device_key_line == "7"}{$feature = "12"}{$user_id = $user_id_7}{/if} {if $row.device_key_line == "8"}{$feature = "13"}{$user_id = $user_id_8}{/if} -{/if}{if $row.device_key_category != "line"} +{/if}{if $row.device_key_type != "6"} {/if} {/foreach}