f
{if isset($user_password_1)}
1
{else}
0
{/if}
{$display_name_1}
{$server_address_1}
{$secondary_server_address_1}
{$outbound_proxy_1}
{$outbound_proxy_secondary_1}
{$user_id_1}
{$auth_id_1}
{$user_password_1}
{$display_name_1}
{if isset($grandstream_voicemail_id) }
{$grandstream_voicemail_id}
{else}
*97
{/if}
{if isset($grandstream_dns_mode_1) }
{$grandstream_dns_mode_1}
{else}
0
{/if}
0
{if isset($grandstream_nat_traversal_1) }
{$grandstream_nat_traversal_1}
{else}
0
{/if}
0
1
0
{$register_expires_1}
60
0
5060
20
50
400
{$tp=0}
{if $sip_transport_1 == 'udp'}{$tp=0}{/if}
{if $sip_transport_1 == 'tcp'}{$tp=1}{/if}
{if $sip_transport_1 == 'tls'}{$tp=2}{/if}
{if $sip_transport_1 == 'dns srv'}{$tp=1}{/if}
{$tp}
0
1
0
0
1
{if isset($subscribe_mwi)}
1
{else}
0
{/if}
0
0
0
0
0
0
0
0
1
1
1
15
0
0
**
0
0
100
0
0
0
0
0
0
1
180
90
0
0
0
0
1
0
0
0
0
0
1
0
0
8
4
18
9
98
2
123
0
0
0
0
0
0
0
1
2
2
1
0
1
97
123
101
0
1
0
250
0
{$grandstream_dial_plan}
0
{if isset($grandstream_account_ring_tone_1)||$grandstream_account_ring_tone_1==0}
{$grandstream_account_ring_tone_1}
{/if}
{if isset($grandstream_ring_tone_caller_id_1_1)}
{$grandstream_ring_tone_caller_id_1_1}
{/if}
{if isset($grandstream_ring_tone_1_1)||$grandstream_ring_tone_1_1==0}
{$grandstream_ring_tone_1_1}
{/if}
{if isset($grandstream_ring_tone_caller_id_2_1)}
{$grandstream_ring_tone_caller_id_2_1}
{/if}
{if isset($grandstream_ring_tone_2_1)||$grandstream_ring_tone_2_1==0}
{$grandstream_ring_tone_2_1}
{/if}
{if isset($grandstream_ring_tone_caller_id_3_1)}
{$grandstream_ring_tone_caller_id_3_1}
{/if}
{if isset($grandstream_ring_tone_3_1)||$grandstream_ring_tone_2_1==0}
{$grandstream_ring_tone_3_1}
{/if}
60
0
0
0
0
0
0
0
1
4
1
0
0
*78
*79
*72
*73
20
{if isset($user_password_2)}
1
{else}
0
{/if}
{$display_name_2}
{$server_address_2}
{$outbound_proxy_2}
{$outbound_proxy_secondary_2}
{$user_id_2}
{$auth_id_2}
{$user_password_2}
{$display_name_2}
*97
{if isset($grandstream_dns_modee_2) }
{$grandstream_dns_modee_2}
{else}
0
{/if}
0
{if isset($grandstream_nat_traversal_2) }
{$grandstream_nat_traversal_2}
{else}
0
{/if}
0
1
0
{$register_expires_2}
60
0
5062
20
50
400
{$tp=0}
{if $sip_transport_2 == 'udp'}{$tp=0}{/if}
{if $sip_transport_2 == 'tcp'}{$tp=1}{/if}
{if $sip_transport_2 == 'tls'}{$tp=2}{/if}
{if $sip_transport_2 == 'dns srv'}{$tp=1}{/if}
{$tp}
0
1
0
0
1
{if isset($subscribe_mwi)}
1
{else}
0
{/if}
0
0
0
0
0
0
0
0
1
1
1
15
0
0
**
0
0
100
0
0
0
0
0
0
1
180
90
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
123
101
0
8
4
18
9
98
2
125
0
0
0
0
0
0
2
1
0
1
97
1
2
0
250
0
{ x+ | *x+ | *xx | *xxx | *xxxx | *xxxxx | *xxxxxx | **xx | **xxx | **xxxx | **xxxxx | **xxxxxx | **xxxxxxx | **xxxxxxxx | *xx*x+ | \+x+ | \p\a\r\k\+*x+ }
0
{if isset($grandstream_account_ring_tone_2)||$grandstream_account_ring_tone_2==0}
{$grandstream_account_ring_tone_2}
{/if}
0
0
0
60
0
0
0
0
0
0
0
0
4
1
0
1
*79
*79
*72
*73
{if isset($user_password_3)}
1
{else}
0
{/if}
{$display_name_3}
{$server_address_3}
{$outbound_proxy_3}
{$outbound_proxy_secondary_3}
{$user_id_3}
{$auth_id_3}
{$user_password_3}
{$display_name_3}
*97
{if isset($grandstream_dns_modee_3) }
{$grandstream_dns_modee_3}
{else}
0
{/if}
0
{if isset($grandstream_nat_traversal_3) }
{$grandstream_nat_traversal_3}
{else}
0
{/if}
0
1
0
{$register_expires_3}
60
0
5064
20
50
400
{$tp=0}
{if $sip_transport_3 == 'udp'}{$tp=0}{/if}
{if $sip_transport_3 == 'tcp'}{$tp=1}{/if}
{if $sip_transport_3 == 'tls'}{$tp=2}{/if}
{if $sip_transport_3 == 'dns srv'}{$tp=1}{/if}
{$tp}
0
1
0
0
1
{if isset($subscribe_mwi)}
1
{else}
0
{/if}
0
0
0
0
0
0
0
0
1
1
1
15
0
0
**
0
0
100
0
0
0
0
0
0
1
180
90
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
123
101
0
8
4
18
9
98
2
125
0
0
0
0
0
0
2
1
0
1
97
1
2
0
250
0
{ x+ | *x+ | *xx | *xxx | *xxxx | *xxxxx | *xxxxxx | **xx | **xxx | **xxxx | **xxxxx | **xxxxxx | **xxxxxxx | **xxxxxxxx | *xx*x+ | \+x+ | \p\a\r\k\+*x+ }
0
{if isset($grandstream_account_ring_tone_3)||$grandstream_account_ring_tone_3==0}
{$grandstream_account_ring_tone_3}
{/if}
0
0
0
60
0
0
0
0
0
0
0
0
4
1
0
1
*78
*79
*72
*73
{if isset($user_password_4)}
1
{else}
0
{/if}
{$display_name_4}
{$server_address_4}
{$outbound_proxy_4}
{$outbound_proxy_secondary_4}
{$user_id_4}
{$auth_id_4}
{$user_password_4}
{$display_name_4}
*97
{if isset($grandstream_dns_modee_4) }
{$grandstream_dns_modee_4}
{else}
0
{/if}
0
{if isset($grandstream_nat_traversal_4) }
{$grandstream_nat_traversal_4}
{else}
0
{/if}
0
1
0
{$register_expires_4}
60
0
5066
20
50
400
{$tp=0}
{if $sip_transport_4 == 'udp'}{$tp=0}{/if}
{if $sip_transport_4 == 'tcp'}{$tp=1}{/if}
{if $sip_transport_4 == 'tls'}{$tp=2}{/if}
{if $sip_transport_4 == 'dns srv'}{$tp=1}{/if}
{$tp}
0
1
0
0
1
{if isset($subscribe_mwi)}
1
{else}
0
{/if}
0
0
0
0
0
0
0
0
1
1
1
15
0
0
**
0
0
100
0
0
0
0
0
0
1
180
90
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
123
101
0
8
4
18
9
98
2
125
0
0
0
0
0
0
2
1
0
1
97
1
2
0
250
0
{ x+ | *x+ | *xx | *xxx | *xxxx | *xxxxx | *xxxxxx | **xx | **xxx | **xxxx | **xxxxx | **xxxxxx | **xxxxxxx | **xxxxxxxx | *xx*x+ | \+x+ | \p\a\r\k\+*x+ }
0
{if isset($grandstream_account_ring_tone_4)||$grandstream_account_ring_tone_4==0}
{$grandstream_account_ring_tone_4}
{/if}
0
0
0
60
0
0
0
0
0
0
0
0
4
1
0
1
*78
*79
*72
*73
{if isset($user_password_5)}
1
{else}
0
{/if}
{$display_name_5}
{$server_address_5}
{$outbound_proxy_5}
{$outbound_proxy_secondary_5}
{$user_id_5}
{$auth_id_5}
{$user_password_5}
{$display_name_5}
*97
{if isset($grandstream_dns_modee_5) }
{$grandstream_dns_modee_5}
{else}
0
{/if}
0
{if isset($grandstream_nat_traversal_5) }
{$grandstream_nat_traversal_5}
{else}
0
{/if}
0
1
0
{$register_expires_5}
60
0
5068
20
50
400
{$tp=0}
{if $sip_transport_5 == 'udp'}{$tp=0}{/if}
{if $sip_transport_5 == 'tcp'}{$tp=1}{/if}
{if $sip_transport_5 == 'tls'}{$tp=2}{/if}
{if $sip_transport_5 == 'dns srv'}{$tp=1}{/if}
{$tp}
0
1
0
0
1
{if isset($subscribe_mwi)}
1
{else}
0
{/if}
0
0
0
0
0
0
0
0
1
1
1
15
0
0
**
0
0
100
0
0
0
0
0
0
1
180
90
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
123
101
0
8
4
18
9
98
2
125
0
0
0
0
0
0
2
1
0
1
97
1
2
0
250
0
{ x+ | *x+ | *xx | *xxx | *xxxx | *xxxxx | *xxxxxx | **xx | **xxx | **xxxx | **xxxxx | **xxxxxx | **xxxxxxx | **xxxxxxxx | *xx*x+ | \+x+ | \p\a\r\k\+*x+ }
0
{if isset($grandstream_account_ring_tone_5)||$grandstream_account_ring_tone_5==0}
{$grandstream_account_ring_tone_5}
{/if}
0
0
0
60
0
0
0
0
0
0
0
0
4
1
0
1
*78
*79
*72
*73
{if isset($user_password_6)}
1
{else}
0
{/if}
{$display_name_6}
{$server_address_6}
{$outbound_proxy_6}
{$outbound_proxy_secondary_6}
{$user_id_6}
{$auth_id_6}
{$user_password_6}
{$display_name_6}
*97
{if isset($grandstream_dns_modee_6) }
{$grandstream_dns_modee_6}
{else}
0
{/if}
0
{if isset($grandstream_nat_traversal_6) }
{$grandstream_nat_traversal_6}
{else}
0
{/if}
0
1
0
{$register_expires_6}
60
0
5070
20
50
400
{$tp=0}
{if $sip_transport_6 == 'udp'}{$tp=0}{/if}
{if $sip_transport_6 == 'tcp'}{$tp=1}{/if}
{if $sip_transport_6 == 'tls'}{$tp=2}{/if}
{if $sip_transport_6 == 'dns srv'}{$tp=1}{/if}
{$tp}
0
1
0
0
1
{if isset($subscribe_mwi)}
1
{else}
0
{/if}
0
0
0
0
0
0
0
0
1
1
1
15
0
0
**
0
0
100
0
0
0
0
0
0
1
180
90
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
123
101
0
8
4
18
9
98
2
125
0
0
0
0
0
0
2
1
0
1
97
1
2
0
250
0
{ x+ | *x+ | *xx | *xxx | *xxxx | *xxxxx | *xxxxxx | **xx | **xxx | **xxxx | **xxxxx | **xxxxxx | **xxxxxxx | **xxxxxxxx | *xx*x+ | \+x+ | \p\a\r\k\+*x+ }
0
{if isset($grandstream_account_ring_tone_6)||$grandstream_account_ring_tone_6==0}
{$grandstream_account_ring_tone_6}
{/if}
0
0
0
60
0
0
0
0
0
0
0
0
4
1
0
1
*78
*79
*72
*73
0
0
0
0
26
46
0
{if isset($grandstream_lan_port_vlan) }
{$grandstream_lan_port_vlan}
{else}
0
{/if}
0
0
{if isset($grandstream_pc_port_vlan) }
{$grandstream_pc_port_vlan}
{else}
1
{/if}
0
1
30
0
0
1194
0
{$user_password}
{$admin_password}
0
{$http_auth_username}
{$http_auth_password}
0
2
{if isset($grandstream_firmware_path) && isset($firmware_version)}
{$grandstream_firmware_path}/gxp2135/{$firmware_version}
{elseif isset($grandstream_firmware_path)}
{$grandstream_firmware_path}/gxp2135
{else}
{$domain_name}{$project_path}/app/provision
{/if}
{if $grandstream_config_server_path=="none"}
{elseif isset($grandstream_config_server_path)}
{$grandstream_config_server_path}
{else}
{$domain_name}{$project_path}/app/provision
{/if}
1
0
0
1
0
10080
1
1
0
0
{$grandstream_syslog_server}
{if isset($grandstream_syslog_level)}
{$grandstream_syslog_level}
{else}
0
{/if}
{if isset($grandstream_send_sip_log)}
{$grandstream_send_sip_log}
{else}
0
{/if}
1
Auto
0
0
0
86400
0
0
0
1
0
80
443
5
0
0
{if isset($contact_grandstream)}
1
{else}
0
{/if}
{if isset($contact_grandstream)}
{$grandstream_phonebook_xml_server_path}{$mac}/
{elseif isset($grandstream_phonebook_xml_server_path)}
{$grandstream_phonebook_xml_server_path}
{else}
{/if}
{if isset($grandstream_phonebook_download_interval)}
{$grandstream_phonebook_download_interval}
{else}
0
{/if}
1
1
{if isset($contact_grandstream)}
2
{else}
0
{/if}
0
0
{$grandstream_ldap_server}
389
{$grandstream_ldap_base_dn}
{$ldap_username}
{$ldap_password}
{$grandstream_ldap_number_filter}
{$grandstream_ldap_name_filter}
3
{$grandstream_ldap_name_attr}
{$grandstream_ldap_number_attr}
givenName sn title
50
30
0
1
1
givenName sn title
5004
200
5204
0
20
{if isset($public_mode) }
{if $public_mode|strtolower == 'true'}
1
{elseif $public_mode|strtolower == 'yes'}
1
{elseif $public_mode == '1'}
1
{else}
0
{/if}
{else}
0
{/if}
0
30
0
0
0
0
0
1
0
0
0
0
0
0
{if isset($grandstream_auto_attended_transfer) }
{$grandstream_auto_attended_transfer}
{else}
1
{/if}
0
0
0
0
0
0
0
0
0
0
0
10
0
0
0
0
0
f1=440,f2=480,c=200/400;
f1=350,f2=440;
f1=350,f2=440;
f1=350,f2=440,c=10/10;
f1=440,f2=480,c=200/400;
f1=440,f2=440,c=25/525;
0
f1=480,f2=620,c=50/50;
f1=480,f2=620,c=25/25;
0
0
0
1
0
0
{if isset($grandstream_handset_tx_gain) }
{$grandstream_handset_tx_gain}
{else}
0
{/if}
100
60
5
0
0
0
1
{if isset($grandstream_wallpaper_url)}
1
{$grandstream_wallpaper_url}
{else}
0
{/if}
#000000
0
0
3
0
0
0
{if isset($ntp_server_primary)}
{$ntp_server_primary}
{else}
pool.ntp.org
{/if}
1440
1
{if isset($grandstream_timezone) }
{$grandstream_timezone}
{elseif isset($grandstream_gxp_time_zone) }
{$grandstream_gxp_time_zone}
{else}
auto
{/if}
0
PST+8PDT,M3.2.0,M11.1.0
3
0
1
1
{if isset($grandstream_city_code)}
0
{else}
1
{/if}
{$grandstream_city_code}
15
{if isset($grandstream_temp_unit)}
{$grandstream_temp_unit}
{else}
auto
{/if}
1
CAD/USD;CAD/EUR;CAD/GBP;CAD/AUD;CAD/CNY;CAD/JPY
XMLApp
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
{if isset($grandstream_bluetooth_power)}
{$grandstream_bluetooth_power}
{/if}
{if isset($grandstream_bluetooth_handsfree)}
{$grandstream_bluetooth_handsfree}
{/if}
{$fixed_keys=4}
{if $template == "grandstream/gxp2130"}{$fixed_keys=3}{/if}
{if $template == "grandstream/gxp2140"}{$fixed_keys=4}{/if}
{if $template == "grandstream/gxp2160"}{$fixed_keys=6}{/if}
{if $template == "grandstream/gxp2170"}{$fixed_keys=12}{/if}
{if $template == "grandstream/gxp2135"}{$fixed_keys=8}{/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}
{$start_id=23800}
{for $line=7 to 32}
{$pid=($line-6)*4-4}
{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}
-1
0
{else}
-1
{/if}
{/if}
{/for}
{assign var=key_types value=["speed dial"=>10, "speed dial active"=>14,"voicemail"=>16,"call return"=>17,"intercom"=>20,"ldap search"=>21,"menu"=>17]}
{$start_id=2987}
{for $prog=1 to 3}
{$pid=$prog*4-4}
{if isset($keys.programmable.$prog.device_key_category) && isset($keys.programmable.$prog.device_key_type) && $keys.programmable.$prog.device_key_type|in_array:$key_types}
{$key_types[$keys.programmable.$prog.device_key_type]}
{$keys.programmable.$prog.device_key_line}
{$keys.programmable.$prog.device_key_label}
{$keys.programmable.$prog.device_key_value}
{else}
0
0
{/if}
{/for}
{assign var=key_types value=["none"=>-1,"speed dial"=>0, "blf"=>1, "presence watcher"=>2, "eventlist blf"=>3,"speed dial active"=>4,"dial dtmf"=>5,"voicemail"=>6,"call return"=>7,"transfer"=>8,"call park"=>9,"intercom"=>10,"ldap search"=>11,"conference"=>12,"multicast paging"=>13,"record"=>14,"call log"=>15,"monitored call park"=>16,"menu"=>17]}
{$start_id=323}
{for $mem=1 to 7}
{$pid=$mem*3-3}
{if isset($keys.memory.$mem.device_key_category) && isset($keys.memory.$mem.device_key_type) && $keys.memory.$mem.device_key_type|in_array:$key_types}
{$key_types[$keys.memory.$mem.device_key_type]}
{$keys.memory.$mem.device_key_line}
{$keys.memory.$mem.device_key_label}
{$keys.memory.$mem.device_key_value}
{else}
-1
0
{/if}
{/for}
{$start_id=353}
{for $mem=8 to 18}
{$pid=($mem-7)*4-4}
{if isset($keys.memory.$mem.device_key_category) && isset($keys.memory.$mem.device_key_type) && $keys.line.$line.device_key_type|in_array:$key_types}
{$key_types[$keys.memory.$mem.device_key_type]}
{$keys.memory.$mem.device_key_line}
{$keys.memory.$mem.device_key_label}
{$keys.memory.$mem.device_key_value}
{else}
-1
0
{/if}
{/for}
{$start_id=1440}
{for $mem=19 to 24}
{$pid=($mem-18)*4-4}
{if isset($keys.memory.$mem.device_key_category) && isset($keys.memory.$mem.device_key_type) && $keys.line.$line.device_key_type|in_array:$key_types}
{$key_types[$keys.memory.$mem.device_key_type]}
{$keys.memory.$mem.device_key_line}
{$keys.memory.$mem.device_key_label}
{$keys.memory.$mem.device_key_value}
{else}
-1
0
{/if}
{/for}
{if $template == "grandstream/gxp2140"||$template == "grandstream/gxp2170"}
{assign var=key_types value=["none"=>-1,"speed dial"=>0, "blf"=>1, "presence watcher"=>2, "eventlist blf"=>3,"speed dial active"=>4,"dial dtmf"=>5,"voicemail"=>6,"call return"=>7,"transfer"=>8,"call park"=>9,"intercom"=>10,"ldap search"=>11,"multicast paging"=>13,"record"=>14,"call log"=>15,"monitored call park"=>16,"menu"=>17]}
{$start_id=23000}
{for $exp=1 to 160}
{$pid=$exp*5-5}
{if isset($keys.expansion.$exp.device_key_category) && isset($keys.expansion.$exp.device_key_type) && $keys.expansion.$exp.device_key_type|in_array:$key_types}
{$key_types[$keys.expansion.$exp.device_key_type]}
{$keys.expansion.$exp.device_key_line}
{$keys.expansion.$exp.device_key_label}
{$keys.expansion.$exp.device_key_value}
{else}
-1
0
{/if}
{/for}
{/if}