More work on the Mitel key handling.

This commit is contained in:
markjcrane
2016-01-29 12:10:55 -07:00
parent 6b2949e9b2
commit b61cf0cff7
3 changed files with 6 additions and 6 deletions

View File

@@ -268,7 +268,7 @@
<srtp>0</srtp>
<pkDescription>
{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}
<Key Line="{$row.device_key_id}" Fea="{$feature}" Des="{$row.device_key_label}" Addr="{$row.device_key_value}" Addr2="" Mode="1" Mode2="1" UserID="{$user_id}"></Key>
{/if}{if $row.device_key_category != "line"}
{/if}{if $row.device_key_type != "6"}
<Key Line="{$row.device_key_id}" Fea="{$row.device_key_type}" Des="{$row.device_key_label}" Addr="{$row.device_key_value}" Addr2="" Mode="1" Mode2="1" UserID="{$user_id}"></Key>
{/if}
{/foreach}

View File

@@ -268,7 +268,7 @@
<srtp>0</srtp>
<pkDescription>
{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}
<Key Line="{$row.device_key_id}" Fea="{$feature}" Des="{$row.device_key_label}" Addr="{$row.device_key_value}" Addr2="" Mode="1" Mode2="1" UserID="{$user_id}"></Key>
{/if}{if $row.device_key_category != "line"}
{/if}{if $row.device_key_type != "6"}
<Key Line="{$row.device_key_id}" Fea="{$row.device_key_type}" Des="{$row.device_key_label}" Addr="{$row.device_key_value}" Addr2="" Mode="1" Mode2="1" UserID="{$user_id}"></Key>
{/if}
{/foreach}

View File

@@ -268,7 +268,7 @@
<srtp>0</srtp>
<pkDescription>
{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}
<Key Line="{$row.device_key_id}" Fea="{$feature}" Des="{$row.device_key_label}" Addr="{$row.device_key_value}" Addr2="" Mode="1" Mode2="1" UserID="{$user_id}"></Key>
{/if}{if $row.device_key_category != "line"}
{/if}{if $row.device_key_type != "6"}
<Key Line="{$row.device_key_id}" Fea="{$row.device_key_type}" Des="{$row.device_key_label}" Addr="{$row.device_key_value}" Addr2="" Mode="1" Mode2="1" UserID="{$user_id}"></Key>
{/if}
{/foreach}