Add. Support provision programmable keys for Escene devices. (#1674)
This commit is contained in:
committed by
FusionPBX
parent
e66c907fc9
commit
ede2f8f57d
@@ -1,18 +1,68 @@
|
||||
<all>
|
||||
{foreach $keys as $row}
|
||||
{if $row.device_key_line==""}
|
||||
{$row.device_key_line="127"}
|
||||
{/if}
|
||||
{/foreach}
|
||||
<hotlines>
|
||||
{$is_first_line='true'}
|
||||
{foreach $keys as $row}
|
||||
{if $row.device_key_category=="memory"}
|
||||
{if $row.device_key_id!=""}
|
||||
{if $row.device_key_line==""}
|
||||
{$row.device_key_line="127"}
|
||||
{/if}
|
||||
<hotline {if $is_first_line=='true'}ExternID="0"{$is_first_line='false'}{/if} id="{$row.device_key_id-1}" SipAccounts="{$row.device_key_line}" ID="{$row.device_key_id-1}" Type="{$row.device_key_type}" HotlineNum="{$row.device_key_value}" Name="{$row.device_key_label}"/>
|
||||
{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</hotlines>
|
||||
|
||||
<ProgramKeys>
|
||||
<!--
|
||||
keys:
|
||||
0-3 - SoftKey in Idle mode
|
||||
4 - Un
|
||||
5 - Down
|
||||
6 - Left
|
||||
7 - Right
|
||||
8 - OK
|
||||
9 - Conference
|
||||
10 - Redial
|
||||
11 - Transfer
|
||||
12 - Hold
|
||||
13 - Service
|
||||
14 - Directories
|
||||
15 - Menu
|
||||
16 - Mute
|
||||
17 - Message
|
||||
functions:
|
||||
0 - Default
|
||||
1 - Redial
|
||||
2 - DND
|
||||
3 - Contacts
|
||||
4 - Enterprise Phonebook
|
||||
5 - LDAP
|
||||
6 - Dir
|
||||
7 - Speed Dial
|
||||
8 - Call List
|
||||
9 - Missed Calls
|
||||
10 - Received Calls
|
||||
11 - Dialed Calls
|
||||
12 - Menu
|
||||
13 - SMS
|
||||
14 - New SMS
|
||||
15 - Call Forward
|
||||
16 - View Status
|
||||
17 - Enable/Disable SIP Account
|
||||
18 - XML Browser
|
||||
19 - Auto Provison Now
|
||||
20 - Hot Desking
|
||||
-->
|
||||
{foreach $keys as $row}
|
||||
{if $row.device_key_category=="programmable"}
|
||||
<ProgramKey id="{$row.device_key_id-1}" SipAccounts="{$row.device_key_line}" Type="{$row.device_key_type}" Num="{$row.device_key_value}" Name="{$row.device_key_label}"/>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ProgramKeys>
|
||||
|
||||
<Extensions>
|
||||
{foreach $keys as $row}
|
||||
{if $row.device_key_category=="expansion"}
|
||||
|
||||
Reference in New Issue
Block a user