{$mac|replace:'-':''} {if isset($account.1.password)} 1 {else} 0 {/if} {$account.1.display_name} {$account.1.server_address} {$account.1.user_id} {$account.1.user_id} {$account.1.password} {$voicemail_number} {$account.1.display_name} 0 0 {$account.1.outbound_proxy_primary} {$account.2.outbound_proxy_secondary} 1 {if isset($grandstream_nat_traversal_1)} {$grandstream_nat_traversal_1} {else} 0 {/if} 1 2 {$account.1.register_expires} 0 20 5060 {if isset($subscribe_mwi)} 1 {else} 0 {/if} 1 30 3 180 90 0 1 0 0 0 0 0 0 0 0 {$tp=0} {if $account.1.sip_transport == 'udp'}{$tp=0}{/if} {if $account.1.sip_transport == 'tcp'}{$tp=1}{/if} {if $account.1.sip_transport == 'tls'}{$tp=2}{/if} {if $account.1.sip_transport == 'dns srv'}{$tp=1}{/if} {$tp} 0 0 0 0 1 {if isset($grandstream_validate_incoming_sip)} 1 {else} 0 {/if} {if isset($grandstream_check_sip_user_id)} 1 {else} 0 {/if} 0 0 {if isset($grandstream_sip_only_known_servers)} 1 {else} 0 {/if} 0 50 400 0 0 0 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} 0 1 15 0 1 0 101 0 8 4 18 9 98 2 123 99 34 1 0 1 0 126 123 1 1 0 120 1 9 0 0 2048 1 99 0 0 0 0 0 2 0 0 0 1 0 {$grandstream_dial_plan} 0 0 0 0 0 100 0 0 0 4 60 -1 0 1 *78 *79 {if $nway_conference == 'true'}nway{$account.1.user_id}@{$account.1.server_address}{/if} 0 0 0 {if isset($grandstream_account_ring_tone_1)||$grandstream_account_ring_tone_1==0} {$grandstream_account_ring_tone_1} {else} content://settings/system/ringtone {/if} 0 20 {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} 0 {if isset($account.2.password)} 1 {else} 0 {/if} {$account.2.display_name} {$account.2.server_address} {$account.2.user_id} {$account.2.user_id} {$account.2.password} {$voicemail_number} {$account.2.display_name} 0 0 {$account.2.outbound_proxy_primary} {$account.2.outbound_proxy_secondary} 0 0 1 0 {$account.2.register_expires} 0 20 5062 {if isset($subscribe_mwi)} 1 {else} 0 {/if} 0 30 3 180 90 0 1 0 0 0 0 0 0 0 0 {$tp=0} {if $account.2.sip_transport == 'udp'}{$tp=0}{/if} {if $account.2.sip_transport == 'tcp'}{$tp=1}{/if} {if $account.2.sip_transport == 'tls'}{$tp=2}{/if} {if $account.2.sip_transport == 'dns srv'}{$tp=1}{/if} {$tp} 0 0 0 0 1 0 0 0 0 0 0 50 400 0 0 0 0 0 0 1 15 0 1 0 101 0 8 9 9 9 9 9 9 99 99 1 0 1 0 126 123 1 1 0 120 1 9 0 0 2048 1 99 0 0 0 0 0 2 1 0 0 1 0 { x+ | *x+ | *xx | *xxx | *xxxx | *xxxxx | *xxxxxx | **xx | **xxx | **xxxx | **xxxxx | **xxxxxx | **xxxxxxx | **xxxxxxxx | *xx*x+ | \+x+ | \p\a\r\k\+*x+ | \p\a\r\k\+x+ } 0 0 0 0 0 100 0 0 0 4 60 -1 0 1 *78 *79 {if $nway_conference == 'true'}nway{$account.2.user_id}@{$account.2.server_address}{/if} 0 0 0 content://settings/system/ringtone 0 20 content://settings/system/ringtone content://settings/system/ringtone content://settings/system/ringtone 0 {if isset($account.3.password)} 1 {else} 0 {/if} {$account.3.display_name} {$account.3.server_address} {$account.3.user_id} {$account.3.user_id} {$account.3.password} {$voicemail_number} {$account.3.display_name} 0 0 {$account.3.outbound_proxy_primary} {$account.3.outbound_proxy_secondary} 0 0 1 0 {$account.3.register_expires} 0 20 5064 {if isset($subscribe_mwi)} 1 {else} 0 {/if} 0 30 3 180 90 0 1 0 0 0 0 0 0 0 0 {$tp=0} {if $account.3.sip_transport == 'udp'}{$tp=0}{/if} {if $account.3.sip_transport == 'tcp'}{$tp=1}{/if} {if $account.3.sip_transport == 'tls'}{$tp=2}{/if} {if $account.3.sip_transport == 'dns srv'}{$tp=1}{/if} {$tp} 0 0 0 0 1 0 0 0 0 0 0 50 400 0 0 0 0 0 0 1 15 0 1 0 101 0 8 9 9 9 9 9 9 99 99 1 0 1 0 126 123 1 1 0 120 1 9 0 0 2048 1 99 0 0 0 0 0 2 1 0 0 1 0 { x+ | *x+ | *xx | *xxx | *xxxx | *xxxxx | *xxxxxx | **xx | **xxx | **xxxx | **xxxxx | **xxxxxx | **xxxxxxx | **xxxxxxxx | *xx*x+ | \+x+ | \p\a\r\k\+*x+ | \p\a\r\k\+x+ } 0 0 0 0 0 100 0 0 0 4 60 -1 0 1 *78 *79 {if $nway_conference == 'true'}nway{$account.3.user_id}@{$account.3.server_address}{/if} 0 0 0 content://settings/system/ringtone 0 20 {$grandstream_distinctive_ringtone_name_1} content://settings/system/ringtone content://settings/system/ringtone content://settings/system/ringtone 0 {if isset($account.4.password)} 1 {else} 0 {/if} {$account.4.display_name} {$account.4.server_address} {$account.4.user_id} {$account.4.user_id} {$account.4.password} {$voicemail_number} {$account.4.display_name} 0 {$account.4.outbound_proxy_primary} {$account.4.outbound_proxy_secondary} 0 0 1 0 {$account.4.register_expires} 0 20 5066 {if isset($subscribe_mwi)} 1 {else} 0 {/if} 0 30 3 180 90 0 1 0 0 0 0 0 0 0 0 {$tp=0} {if $account.4.sip_transport == 'udp'}{$tp=0}{/if} {if $account.4.sip_transport == 'tcp'}{$tp=1}{/if} {if $account.4.sip_transport == 'tls'}{$tp=2}{/if} {if $account.4.sip_transport == 'dns srv'}{$tp=1}{/if} {$tp} 0 0 0 0 1 0 0 0 0 0 0 50 400 0 0 0 0 0 0 1 15 0 1 0 101 0 8 9 9 9 9 9 9 99 99 1 0 1 0 126 123 1 1 0 120 1 9 0 0 2048 1 99 0 0 0 0 0 2 1 0 0 1 0 { x+ | *x+ | *xx | *xxx | *xxxx | *xxxxx | *xxxxxx | **xx | **xxx | **xxxx | **xxxxx | **xxxxxx | **xxxxxxx | **xxxxxxxx | *xx*x+ | \+x+ | \p\a\r\k\+*x+ | \p\a\r\k\+x+ } 0 0 0 0 0 100 0 0 0 4 60 -1 0 1 *78 *79 {if $nway_conference == 'true'}nway{$account.4.user_id}@{$account.4.server_address}{/if} 0 content://settings/system/ringtone 0 20 0 0 content://settings/system/ringtone content://settings/system/ringtone content://settings/system/ringtone 0 {if isset($account.5.password)} 1 {else} 0 {/if} {$account.5.display_name} {$account.5.server_address} {$account.5.user_id} {$account.5.user_id} {$account.5.password} {$voicemail_number} {$account.5.display_name} 0 0 {$account.5.outbound_proxy_primary} {$account.5.outbound_proxy_secondary} 0 0 1 0 {$account.5.register_expires} 0 20 5068 {if isset($subscribe_mwi)} 1 {else} 0 {/if} 0 30 3 180 90 0 1 0 0 0 0 0 0 0 0 {$tp=0} {if $account.5.sip_transport == 'udp'}{$tp=0}{/if} {if $account.5.sip_transport == 'tcp'}{$tp=1}{/if} {if $account.5.sip_transport == 'tls'}{$tp=2}{/if} {if $account.5.sip_transport == 'dns srv'}{$tp=1}{/if} {$tp} 0 0 0 0 1 0 0 0 0 0 0 50 400 0 0 0 0 0 0 1 15 0 1 0 101 0 8 9 9 9 9 9 9 99 99 1 0 1 0 126 123 1 1 0 120 1 9 0 0 2048 1 99 0 0 0 0 0 2 1 0 0 1 0 { x+ | *x+ | *xx | *xxx | *xxxx | *xxxxx | *xxxxxx | **xx | **xxx | **xxxx | **xxxxx | **xxxxxx | **xxxxxxx | **xxxxxxxx | *xx*x+ | \+x+ | \p\a\r\k\+*x+ | \p\a\r\k\+x+ } 0 0 0 0 0 100 0 0 0 4 -1 60 0 1 *78 *79 {if $nway_conference == 'true'}nway{$account.5.user_id}@{$account.5.server_address}{/if} 0 0 0 20 0 content://settings/system/ringtone content://settings/system/ringtone content://settings/system/ringtone content://settings/system/ringtone 0 {if isset($account.6.password)} 1 {else} 0 {/if} {$account.6.display_name} {$account.6.server_address} {$account.6.user_id} {$account.6.user_id} {$account.6.password} {$voicemail_number} {$account.6.display_name} 0 0 {$account.6.outbound_proxy_primary} {$account.6.outbound_proxy_secondary} 0 0 1 0 {$account.6.register_expires} 0 20 5070 {if isset($subscribe_mwi)} 1 {else} 0 {/if} 0 30 3 180 90 0 1 0 0 0 0 0 0 0 0 {$tp=0} {if $account.6.sip_transport == 'udp'}{$tp=0}{/if} {if $account.6.sip_transport == 'tcp'}{$tp=1}{/if} {if $account.6.sip_transport == 'tls'}{$tp=2}{/if} {if $account.6.sip_transport == 'dns srv'}{$tp=1}{/if} {$tp} 0 0 0 0 1 0 0 0 0 0 0 50 400 0 0 0 0 0 0 1 15 0 1 0 101 0 8 9 9 9 9 9 9 99 99 1 0 1 0 126 123 1 1 0 120 1 9 0 0 2048 1 99 0 0 0 0 0 2 1 0 0 1 0 { x+ | *x+ | *xx | *xxx | *xxxx | *xxxxx | *xxxxxx | **xx | **xxx | **xxxx | **xxxxx | **xxxxxx | **xxxxxxx | **xxxxxxxx | *xx*x+ | \+x+ | \p\a\r\k\+*x+ | \p\a\r\k\+x+ } 0 0 0 0 0 100 0 0 0 4 -1 60 0 1 *78 *79 {if $nway_conference == 'true'}nway{$account.6.user_id}@{$account.6.server_address}{/if} 0 0 0 20 0 content://settings/system/ringtone content://settings/system/ringtone content://settings/system/ringtone content://settings/system/ringtone 0 5004 0 0 0 20 {if isset($grandstream_stun_server) } {$grandstream_stun_server} {else} {/if} 0 0 0 s1pphone {if isset($grandstream_headset_ring)} {$grandstream_headset_ring} {/if} 0 0 0 0 0 0 0 0 0 0 0 0 {if isset($grandstream_disable_active_mpk_page)} {$grandstream_disable_active_mpk_page} {else} 0 {/if} 1 30 0 0 15 1 1 0 f1=350@-13,f2=440@-13,c=0/0; f1=440@-19,f2=480@-19,c=2000/4000; f1=480@-24,f2=620@-24,c=500/500; f1=480@-24,f2=620@-24,c=250/250; f1=350@-11,f2=440@-11,c=100/100-100/100-100/100; f1=440@-13,c=300/10000-300/10000-0/0; 0 f1=480@-32,f2=620@-32,c=500/500; c=2000/4000; 0 0 0 0 99 1 256 15 1 99 1 ** 0 0 ** 0 0 ** 0 0 ** 0 0 ** 0 0 ** 0 0 0 {if isset($grandstream_ipv_mode)}{$grandstream_ipv_mode}{else}0{/if} 0 0 0 Grandstream GXV3240 0 1 60 0 48 48 48 {if isset($grandstream_lan_port_vlan) } {$grandstream_lan_port_vlan} {$grandstream_lan_port_vlan} {else} 0 0 {/if} 0 0 0 0 {if isset($grandstream_pc_port_vlan) } {$grandstream_pc_port_vlan} {else} 1 {/if} 0 0 Grandstream GXV3275 1.0.3.75 0 0 64 {if isset($ntp_server_primary)} {$ntp_server_primary} {else} pool.ntp.org {/if} 1 0 {$grandstream_gxp_time_zone} 0 0 0 0 0 80 {$admin_password} {$user_password} 2 {if isset($grandstream_firmware_path) && isset($firmware_version)} {$grandstream_firmware_path}/{$firmware_version} {elseif isset($grandstream_firmware_path)} {$grandstream_firmware_path}/ {else} {$domain_name}{$project_path}/app/provision {/if} 1 {if $grandstream_config_server_path=="none"} {elseif isset($grandstream_config_server_path)} {$grandstream_config_server_path} {elseif isset($domain_name)} {$domain_name}{$project_path}/app/provision {/if} {$http_auth_username} {$http_auth_password} 0 1 fm.grandstream.com/gs 0 0 0 0 1 {if isset($grandstream_dhcp_option_override)}{$grandstream_dhcp_option_override}{else}1{/if} {if isset($grandstream_dhcp_option_override_sip_server)}{$grandstream_dhcp_option_override_sip_server}{else}{if isset($grandstream_dhcp_option_override_sip_server)}{$grandstream_dhcp_option_override_sip_server}{else}0{/if}{/if} 1 0 1 {if isset($grandstream_auto_upgrade)} {$grandstream_auto_upgrade} {else} 0 {/if} 10080 1 1 0 0 1 {$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} 0 0 86400 1 2 911 1 0 2 UTF-8 {if isset($contact_grandstream)} {$grandstream_phonebook_xml_server_path}{$mac}/ {elseif isset($grandstream_phonebook_xml_server_path)} {$grandstream_phonebook_xml_server_path} {else} {/if} 720 0 {$grandstream_ldap_server} 389 {$grandstream_ldap_base_dn} {$ldap_username} {$ldap_password} {$grandstream_ldap_name_attr} {$grandstream_ldap_number_attr} {$grandstream_ldap_mail_attr} {$grandstream_ldap_name_filter} {$grandstream_ldap_number_filter} {$grandstream_ldap_mail_filter} givenName sn title 50 4 1 1 0 0 1 1 1 1 1 0 1 1 1 0 0 0 0 0 0 0 {if isset($grandstream_headset_tx_gain)} {$grandstream_headset_tx_gain} {else} 0 {/if} {if isset($grandstream_headset_rx_gain)} {$grandstream_headset_rx_gain} {else} 0 {/if} {if isset($grandstream_headset_type)} {$grandstream_headset_type} {$grandstream_headset_type} {/if} {if isset($grandstream_headset_key_mode)} {$grandstream_headset_key_mode} {/if} 0 0 {assign var=key_types value=["speed dial"=>0, "blf"=>1, "eventlist blf"=>3,"speed dial active"=>4,"dial dtmf"=>5,"transfer"=>8,"call park"=>9,"intercom"=>10,"multicast paging"=>13,"call log"=>15]} {$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} 0 0 {/if} {/for} 1 1 1 1