mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update snom, grandstream and mitel templates.
This commit is contained in:
@@ -3592,8 +3592,7 @@ Outgoing calls. 0 - No, 1 - Yes. Default is 0 -->
|
||||
<!-- Extension Boards FOR GXP2110 and GXP2120 ONLY -->
|
||||
<!-- Extension Board 1 Settings. mode 23000, line 23001, label, 23002, value 23003 -->
|
||||
{$start_id = 23000}
|
||||
{foreach $keys as $row}
|
||||
{if $row.device_key_category == "expansion"}
|
||||
{foreach $keys["expansion"] as $row}
|
||||
{$key_id = $row.device_key_id - 1}
|
||||
{$type_id = $start_id + ($key_id * 5)}
|
||||
{$line_id = ($start_id + 1) + ($key_id * 5)}
|
||||
@@ -3615,7 +3614,6 @@ Outgoing calls. 0 - No, 1 - Yes. Default is 0 -->
|
||||
<P{$line_id}>{$row.device_key_line}</P{$line_id}>
|
||||
<P{$label_id}>{$row.device_key_label}</P{$label_id}>
|
||||
<P{$value_id}>{$row.device_key_value}</P{$value_id}>
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
</config>
|
||||
|
||||
@@ -267,7 +267,7 @@
|
||||
<snmp>0</snmp>
|
||||
<srtp>0</srtp>
|
||||
<pkDescription>
|
||||
{foreach $keys as $row}
|
||||
{foreach $keys["line"] as $row}
|
||||
{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}
|
||||
|
||||
@@ -267,7 +267,7 @@
|
||||
<snmp>0</snmp>
|
||||
<srtp>0</srtp>
|
||||
<pkDescription>
|
||||
{foreach $keys as $row}
|
||||
{foreach $keys["line"] as $row}
|
||||
{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}
|
||||
|
||||
@@ -267,7 +267,7 @@
|
||||
<snmp>0</snmp>
|
||||
<srtp>0</srtp>
|
||||
<pkDescription>
|
||||
{foreach $keys as $row}
|
||||
{foreach $keys["line"] as $row}
|
||||
{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}
|
||||
|
||||
@@ -85,19 +85,19 @@
|
||||
<codec_priority_list idx="12" perm="">g722,pcmu,pcma,gsm,g726-32,aal2-g726-32,g723,g729,telephone-event</codec_priority_list>
|
||||
</phone-settings>
|
||||
<functionKeys e="2">
|
||||
{foreach $keys as $row}
|
||||
{foreach $keys["line"] as $row}
|
||||
{if $row.device_key_line == ""}
|
||||
{if $row.device_key_category == "line"}
|
||||
<fkey idx="{$row.device_key_id-1}" context="active" label="{$row.device_key_label}" perm="">{$row.device_key_type} {$row.device_key_value} {$row.device_key_extension}</fkey>
|
||||
{else}
|
||||
<fkey idx="{$row.device_key_id}" context="active" label="" perm="">line</fkey>
|
||||
{/if}
|
||||
{if $row.device_key_type == "line"}
|
||||
<fkey idx="{$row.device_key_id}" context="active" label="" perm="">line</fkey>
|
||||
{else}
|
||||
<fkey idx="{$row.device_key_id-1}" context="active" label="{$row.device_key_label}" perm="">{$row.device_key_type} {$row.device_key_value} {$row.device_key_extension}</fkey>
|
||||
{/if}
|
||||
{else}
|
||||
{if $row.device_key_category == "line"}
|
||||
<fkey idx="{$row.device_key_id-1}" context="{$row.device_key_line}" label="{$row.device_key_label}" perm="">{$row.device_key_type} {$row.device_key_value} {$row.device_key_extension}</fkey>
|
||||
{else}
|
||||
<fkey idx="{$row.device_key_id}" context="active" label="" perm="">line</fkey>
|
||||
{/if}
|
||||
{if $row.device_key_type == "line"}
|
||||
<fkey idx="{$row.device_key_id}" context="active" label="" perm="">line</fkey>
|
||||
{else}
|
||||
<fkey idx="{$row.device_key_id-1}" context="{$row.device_key_line}" label="{$row.device_key_label}" perm="">{$row.device_key_type} {$row.device_key_value} {$row.device_key_extension}</fkey>
|
||||
{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</functionKeys>
|
||||
|
||||
@@ -90,19 +90,9 @@
|
||||
<codec_priority_list idx="12" perm="">g722,pcmu,pcma,gsm,g726-32,aal2-g726-32,g723,g729,telephone-event</codec_priority_list>
|
||||
</phone-settings>
|
||||
<functionKeys e="2">
|
||||
{foreach $keys as $row}
|
||||
{foreach $keys["line"] as $row}
|
||||
{if $row.device_key_line == ""}
|
||||
{if $row.device_key_category == "line"}
|
||||
<fkey idx="{$row.device_key_id-1}" context="active" label="{$row.device_key_label}" perm="">{$row.device_key_type} {$row.device_key_value} {$row.device_key_extension}</fkey>
|
||||
{else}
|
||||
<fkey idx="{$row.device_key_id}" context="active" label="" perm="">line</fkey>
|
||||
{/if}
|
||||
{else}
|
||||
{if $row.device_key_category == "line"}
|
||||
<fkey idx="{$row.device_key_id-1}" context="{$row.device_key_line}" label="{$row.device_key_label}" perm="">{$row.device_key_type} {$row.device_key_value} {$row.device_key_extension}</fkey>
|
||||
{else}
|
||||
<fkey idx="{$row.device_key_id}" context="active" label="" perm="">line</fkey>
|
||||
{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</functionKeys>
|
||||
|
||||
@@ -85,19 +85,19 @@
|
||||
<codec_priority_list idx="12" perm="">g722,pcmu,pcma,gsm,g726-32,aal2-g726-32,g723,g729,telephone-event</codec_priority_list>
|
||||
</phone-settings>
|
||||
<functionKeys e="2">
|
||||
{foreach $keys as $row}
|
||||
{foreach $keys["line"] as $row}
|
||||
{if $row.device_key_line == ""}
|
||||
{if $row.device_key_category == "line"}
|
||||
<fkey idx="{$row.device_key_id-1}" context="active" label="{$row.device_key_label}" perm="">{$row.device_key_type} {$row.device_key_value} {$row.device_key_extension}</fkey>
|
||||
{else}
|
||||
<fkey idx="{$row.device_key_id}" context="active" label="" perm="">line</fkey>
|
||||
{/if}
|
||||
{if $row.device_key_type == "line"}
|
||||
<fkey idx="{$row.device_key_id}" context="active" label="" perm="">line</fkey>
|
||||
{else}
|
||||
<fkey idx="{$row.device_key_id-1}" context="active" label="{$row.device_key_label}" perm="">{$row.device_key_type} {$row.device_key_value} {$row.device_key_extension}</fkey>
|
||||
{/if}
|
||||
{else}
|
||||
{if $row.device_key_category == "line"}
|
||||
<fkey idx="{$row.device_key_id-1}" context="{$row.device_key_line}" label="{$row.device_key_label}" perm="">{$row.device_key_type} {$row.device_key_value} {$row.device_key_extension}</fkey>
|
||||
{else}
|
||||
<fkey idx="{$row.device_key_id}" context="active" label="" perm="">line</fkey>
|
||||
{/if}
|
||||
{if $row.device_key_type == "line"}
|
||||
<fkey idx="{$row.device_key_id}" context="active" label="" perm="">line</fkey>
|
||||
{else}
|
||||
<fkey idx="{$row.device_key_id-1}" context="{$row.device_key_line}" label="{$row.device_key_label}" perm="">{$row.device_key_type} {$row.device_key_value} {$row.device_key_extension}</fkey>
|
||||
{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</functionKeys>
|
||||
|
||||
Reference in New Issue
Block a user