{$mac|replace:'-':''} {if isset($account.1.password)} 1 {else} 0 {/if} {$account.1.display_name} {if $account.1.sip_transport != 'dns srv'} {$account.1.server_address}:{$account.1.sip_port} {else} {$account.1.server_address} {/if} {if $account.1.sip_transport != 'dns srv' && isset($account.1.server_address_secondary)} {$account.1.server_address_secondary}:{$account.1.sip_port} {else} {$account.1.server_address_secondary} {/if} {if $account.1.sip_transport != 'dns srv' && isset($account.1.outbound_proxy_primary)} {$account.1.outbound_proxy_primary}:{$account.1.sip_port} {else} {$account.1.outbound_proxy_primary} {/if} {if $account.1.sip_transport != 'dns srv' && isset($account.1.outbound_proxy_secondary)} {$account.1.outbound_proxy_secondary}:{$account.1.sip_port} {else} {$account.1.outbound_proxy_secondary} {/if} {$account.1.user_id} {$account.1.auth_id} {$account.1.password} {$account.1.display_name} {$voicemail_number} {if isset($grandstream_dns_mode_1) } {$grandstream_dns_mode_1} {else} 0 {/if} {if isset($account.1.nat_traversal) } {$account.1.nat_traversal} {else} 0 {/if} 0 1 0 3 60 0 1 30 3 5060 20 50 400 {$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} 1 0 0 1 {if isset($subscribe_mwi)} 1 {else} 0 {/if} 0 0 0 0 0 0 1 1 1 15 0 ** 0 {if $nway_conference == 'true'}nway{$account.1.user_id}@{$account.1.server_address}{/if} 100 0 0 0 0 0 1 180 90 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 101 0 8 18 2 9 2 98 0 0 0 0 0 2 0 0 1 97 1 2 0 0 {if isset($grandstream_dial_plan) } {$grandstream_dial_plan} {else} {literal}{x+|*x+|*++|\p\a\r\k\+*x+|\p\a\r\k\+x+|\f\l\o\w\+*x+}{/literal} {/if} 20 1 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 4 1 *78 *79 0 0 {if isset($account.2.password)} 1 {else} 0 {/if} {$account.2.display_name} {if $account.2.sip_transport != 'dns srv'} {$account.2.server_address}:{$account.2.sip_port} {else} {$account.2.server_address} {/if} {if $account.2.sip_transport != 'dns srv' && isset($account.2.server_address_secondary)} {$account.2.server_address_secondary}:{$account.2.sip_port} {else} {$account.2.server_address_secondary} {/if} {if $account.2.sip_transport != 'dns srv' && isset($account.2.outbound_proxy_primary)} {$account.2.outbound_proxy_primary}:{$account.2.sip_port} {else} {$account.2.outbound_proxy_primary} {/if} {if $account.2.sip_transport != 'dns srv' && isset($account.2.outbound_proxy_secondary)} {$account.2.outbound_proxy_secondary}:{$account.2.sip_port} {else} {$account.2.outbound_proxy_secondary} {/if} {$account.2.user_id} {$account.2.auth_id} {$account.2.password} {$account.2.display_name} {$voicemail_number} {if isset($account.2.dns_mode) } {$account.2.dns_mode} {else} 0 {/if} {if isset($account.2.nat_traversal) } {$account.2.nat_traversal} {else} 0 {/if} 0 1 0 3 60 0 0 30 3 5062 20 50 400 {$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} 1 0 0 1 {if isset($subscribe_mwi)} 1 {else} 0 {/if} 0 0 0 0 0 0 1 1 1 15 0 ** 0 {if $nway_conference == 'true'}nway{$account.2.user_id}@{$account.2.server_address}{/if} 100 0 0 0 0 0 1 180 90 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 101 0 8 18 9 2 2 2 0 0 0 0 0 2 0 0 1 97 1 2 0 0 { x+ | *x+ | *xx | *xxx | *xxxx | *xxxxx | *xxxxxx | **xx | **xxx | **xxxx | **xxxxx | **xxxxxx | **xxxxxxx | **xxxxxxxx | *xx*x+ } 20 1 0 0 0 0 0 60 0 0 0 0 0 0 0 4 1 *78 *79 0 0 {if $template == "grandstream/gxp1630"} {if isset($account.3.password)} 1 {else} 0 {/if} {$account.3.display_name} {if $account.3.sip_transport != 'dns srv'} {$account.3.server_address}:{$account.3.sip_port} {else} {$account.3.server_address} {/if} {if $account.3.sip_transport != 'dns srv' && isset($account.3.server_address_secondary)} {$account.3.server_address_secondary}:{$account.3.sip_port} {else} {$account.3.server_address_secondary} {/if} {if $account.3.sip_transport != 'dns srv' && isset($account.3.outbound_proxy_primary)} {$account.3.outbound_proxy_primary}:{$account.3.sip_port} {else} {$account.3.outbound_proxy_primary} {/if} {if $account.3.sip_transport != 'dns srv' && isset($account.3.outbound_proxy_secondary)} {$account.3.outbound_proxy_secondary}:{$account.3.sip_port} {else} {$account.3.outbound_proxy_secondary} {/if} {$account.3.user_id} {$account.3.auth_id} {$account.3.password} {$account.3.display_name} {$voicemail_number} {if isset($account.3.dns_mode) } {$account.3.dns_mode} {else} 0 {/if} {if isset($account.3.nat_traversal) } {$account.3.nat_traversal} {else} 0 {/if} 0 1 0 60 60 0 0 30 3 5064 20 50 400 {$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} 1 0 0 1 {if isset($subscribe_mwi)} 1 {else} 0 {/if} 0 0 0 0 0 0 1 1 1 15 0 {if $nway_conference == 'true'}nway{$account.3.user_id}@{$account.3.server_address}{/if} ** 0 100 0 0 0 0 0 1 180 90 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 101 0 8 18 9 2 2 2 0 0 0 0 0 2 0 1 97 1 2 0 0 { x+ | *x+ | *xx | *xxx | *xxxx | *xxxxx | *xxxxxx | **xx | **xxx | **xxxx | **xxxxx | **xxxxxx | **xxxxxxx | **xxxxxxxx | *xx*x+ } 20 1 0 0 {$grandstream_distinctive_ringtone_name_1} 0 0 0 60 0 0 0 0 0 0 0 4 1 *78 *79 0 0 {/if} {if isset($grandstream_ipv_mode)}{$grandstream_ipv_mode}{else}0{/if} 0 192 168 0 160 255 255 255 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 1500 0 1194 {$user_password} {$admin_password} 0 0 0 {if isset($grandstream_dhcp_option_override)}{$grandstream_dhcp_option_override}{else}1{/if} {if isset($grandstream_dhcp_option_additional_override)}{$grandstream_dhcp_option_additional_override}{else}0{/if} {if isset($grandstream_dhcp_option_override_sip_server)}{$grandstream_dhcp_option_override_sip_server}{else}0{/if} 1 2 60 1 1 0 0 2 {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 2 {if isset($grandstream_firmware_path) && isset($firmware_version)} {$grandstream_firmware_path}/gxp16xx/{$firmware_version} {elseif isset($grandstream_firmware_path)} {$grandstream_firmware_path}/gxp16xx {else} {$domain_name}{$project_path}/app/provision {/if} {$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} {if isset($grandstream_display_language) } {$grandstream_display_language} {else} auto {/if} 0 86400 7547 0 0 1 80 443 0 5 {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} 120 1 0 {if isset($contact_grandstream)} 3 {else} 0 {/if} {$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 50 30 0 1 1 givenName sn 5004 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} 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 300 200 1 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; 7 {if isset($grandstream_headset_key_mode)} {$grandstream_headset_key_mode} {/if} {if isset($grandstream_headset_type)} {$grandstream_headset_type} {$grandstream_headset_type} {/if} {if isset($grandstream_headset_ring)} {$grandstream_headset_ring} {/if} 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} 0 6 2 3 0 0 {if isset($ntp_server_primary)} {$ntp_server_primary} {else} pool.ntp.org {/if} 1 {$grandstream_gxp_time_zone} 1 0 0 1 0 0 0 {$start_id=1363} {assign var=key_types value=["line"=>0,"shared line"=>1,"speed dial"=>10, "speed dial active"=>14,"dial dtmf"=>15,"voicemail"=>16,"call return"=>17,"transfer"=>18,"intercom"=>20,"ldap search"=>21]} {for $line=1 to 2} {$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])} {$key_types[$keys.line.$line.device_key_type]} {$keys.line.$line.device_key_line} {$keys.line.$line.device_key_label} {$keys.line.$line.device_key_value} {else} 0 0 {/if} {/for} {assign var=key_types value=["speed dial"=>10, "speed dial active"=>14,"voicemail"=>16,"call return"=>17,"intercom"=>20,"ldap search"=>21]} {$prog=1} {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} {assign var=key_types value=["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]} {$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} {$mem=8} {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} 0 0 {/if} 0 0 0 0 0 0 0 0 0 0