diff --git a/resources/templates/provision/grandstream/gxv3240/{$mac}.xml b/resources/templates/provision/grandstream/gxv3240/{$mac}.xml index 7772722bcb..f2c92825ce 100644 --- a/resources/templates/provision/grandstream/gxv3240/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxv3240/{$mac}.xml @@ -1,4 +1,4 @@ - + {$mac|replace:'-':''} @@ -57,10 +57,10 @@ - +{$account.1.outbound_proxy_primary} - +{$account.2.outbound_proxy_secondary} @@ -286,7 +286,39 @@ -0 + + + + +{$fixed_keys=5} +{if $template == "grandstream/gxp3240"}{$fixed_keys=5}{/if} + +{$start_id=1363} +{assign var=key_types value=["none"=>-1,"line"=>0,"shared line"=>1,"speed dial"=>10, "blf"=>11, "presence watcher"=>12, "eventlist blf"=>13,"speed dial active"=>14,"dial dtmf"=>15,"voicemail"=>16,"call return"=>17,"transfer"=>18,"call park"=>19,"intercom"=>20,"ldap search"=>21,"multicast paging"=>23,"record"=>24,"call log"=>25,"monitored call park"=>26,"menu"=>27]} + +{for $line=1 to 6} +{$pid=$line*2-2} +{if isset($keys.line.$line.device_key_category) && isset($keys.line.$line.device_key_type) && isset($key_types[$keys.line.$line.device_key_type])} +{if $line <= $fixed_keys} +{$key_types[$keys.line.$line.device_key_type]} +{else} +{$key_types[$keys.line.$line.device_key_type]-10} +{/if} +{$keys.line.$line.device_key_line} +{$keys.line.$line.device_key_label} +{$keys.line.$line.device_key_value} +{else} +{if $line <= $fixed_keys} +0 +{$line-1} + + +{else} +-1 +{/if} +{/if} + +{/for} @@ -750,10 +782,10 @@ - +{$account.2.outbound_proxy_primary} - +{$account.2.outbound_proxy_secondary} @@ -1388,10 +1420,10 @@ - +{$account.3.outbound_proxy_primary} - +{$account.3.outbound_proxy_secondary} @@ -2026,10 +2058,10 @@ - +{$account.4.outbound_proxy_primary} - +{$account.4.outbound_proxy_secondary} @@ -2668,10 +2700,10 @@ - +{$account.5.outbound_proxy_primary} - +{$account.5.outbound_proxy_secondary} @@ -3308,10 +3340,10 @@ - +{$account.6.outbound_proxy_primary} - +{$account.6.outbound_proxy_secondary} @@ -4755,13 +4787,13 @@ -1 +2 {if isset($grandstream_firmware_path) && isset($firmware_version)} -{$grandstream_firmware_path}/gxv3240/{$firmware_version} +{$grandstream_firmware_path}/{$firmware_version} {elseif isset($grandstream_firmware_path)} -{$grandstream_firmware_path}/gxv3240 +{$grandstream_firmware_path}/ {else} {$domain_name}{$project_path}/app/provision {/if}