diff --git a/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml b/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml index 63be439319..a76deb0480 100644 --- a/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml @@ -3590,18 +3590,27 @@ Outgoing calls. 0 - No, 1 - Yes. Default is 0 --> {$memory_key_value_18} - -{$start_type_id = 23000} -{$start_line_id = 23001} -{$start_label_id = 23002} -{$start_value_id = 23003} + +{$start_id = 23000} {foreach $keys as $row} {if $row.device_key_category == "expansion"} - {$key_id = $row.device_key_id - 1} - {$line_id = $start_line_id + ($key_id * 5)} - {$type_id = $start_type_id + ($key_id * 5)} - {$label_id = $start_label_id + ($key_id * 5)} - {$value_id = $start_value_id + ($key_id * 5)} +{$key_id = $row.device_key_id - 1} +{$type_id = $start_id + ($key_id * 5)} +{$line_id = ($start_id + 1) + ($key_id * 5)} +{$label_id = ($start_id + 2) ($key_id * 5)} +{$value_id = ($start_id + 3) + ($key_id * 5)} +{if $row.device_key_type == "speed dial"}0{/if} +{if $row.device_key_type == "blf"}1{/if} +{if $row.device_key_type == "presence watcher"}2{/if} +{if $row.device_key_type == "eventlist blf"}3{/if} +{if $row.device_key_type == "speed dial active"}4{/if} +{if $row.device_key_type == "dial dtmf"}5{/if} +{if $row.device_key_type == "voicemail"}6{/if} +{if $row.device_key_type == "call return"}7{/if} +{if $row.device_key_type == "transfer"}8{/if} +{if $row.device_key_type == "call park"}9{/if} +{if $row.device_key_type == "intercom"}10{/if} +{if $row.device_key_type == "ldap search"}11{/if} {$row.device_key_type} {$row.device_key_line} {$row.device_key_label}