diff --git a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml index 01c39737c8..927ed14a8b 100644 --- a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml @@ -76,11 +76,10 @@ - {if isset($grandstream_dns_mode)} -{$grandstream_dns_mode} + {$grandstream_dns_mode} {else} -0 + 0 {/if} @@ -103,11 +102,10 @@ - {if isset($grandstream_nat_traversal)} -{$grandstream_nat_traversal} + {$grandstream_nat_traversal} {else} -0 + 0 {/if} @@ -197,13 +195,12 @@ - {$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} + {$tp} @@ -236,9 +233,9 @@ {if isset($subscribe_mwi)} -1 + 1 {else} -0 + 0 {/if} @@ -567,12 +564,11 @@ {if isset($grandstream_srtp)} -{$grandstream_srtp} + {$grandstream_srtp} {else} -0 + 0 {/if} - @@ -676,11 +672,10 @@ - {if isset($grandstream_dial_plan) } -{$grandstream_dial_plan} + {$grandstream_dial_plan} {else} -{literal}{x+|*x+|*++|\p\a\r\k\+*x+| \f\l\o\w\+*x+}{/literal} + {literal}{x+|*x+|*++|\p\a\r\k\+*x+| \f\l\o\w\+*x+}{/literal} {/if} @@ -765,9 +760,8 @@ - {if isset($grandstream_account_ring_tone_1)} -{$grandstream_account_ring_tone_1} + {$grandstream_account_ring_tone_1} {/if} @@ -956,11 +950,10 @@ - {if isset($account.2.password)} -1 + 1 {else} -0 + 0 {/if} @@ -1019,9 +1012,9 @@ {if isset($grandstream_dns_mode)} -{$grandstream_dns_mode} + {$grandstream_dns_mode} {else} -0 + 0 {/if} @@ -1045,12 +1038,11 @@ {if isset($grandstream_nat_traversal)} -{$grandstream_nat_traversal} + {$grandstream_nat_traversal} {else} -0 + 0 {/if} - @@ -1143,8 +1135,7 @@ {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} - + {$tp} @@ -1176,12 +1167,11 @@ {if isset($subscribe_mwi)} -1 + 1 {else} -0 + 0 {/if} - @@ -1507,12 +1497,11 @@ {if isset($grandstream_srtp)} -{$grandstream_srtp} + {$grandstream_srtp} {else} -0 + 0 {/if} - @@ -1616,11 +1605,10 @@ - {if isset($grandstream_dial_plan) } -{$grandstream_dial_plan} + {$grandstream_dial_plan} {else} -{literal}{x+|*x+|*++|\p\a\r\k\+*x+| \f\l\o\w\+*x+}{/literal} + {literal}{x+|*x+|*++|\p\a\r\k\+*x+| \f\l\o\w\+*x+}{/literal} {/if} @@ -1635,9 +1623,8 @@ - {if isset($grandstream_account_ring_tone_2)} -{$grandstream_account_ring_tone_2} + {$grandstream_account_ring_tone_2} {/if} @@ -1895,12 +1882,11 @@ - - {if isset($account.3.password)} -1 +{if isset($account.3.password)} + 1 {else} -0 + 0 {/if} @@ -1958,11 +1944,10 @@ - - {if isset($grandstream_dns_mode)} -{$grandstream_dns_mode} +{if isset($grandstream_dns_mode)} + {$grandstream_dns_mode} {else} -0 + 0 {/if} @@ -1985,11 +1970,10 @@ - - {if isset($grandstream_nat_traversal)} -{$grandstream_nat_traversal} + {if isset($grandstream_nat_traversal)} + {$grandstream_nat_traversal} {else} -0 + 0 {/if} @@ -2079,13 +2063,12 @@ - - {$tp=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} + {$tp} @@ -2116,11 +2099,10 @@ - - {if isset($subscribe_mwi)} -1 +{if isset($subscribe_mwi)} + 1 {else} -0 + 0 {/if} @@ -2466,11 +2448,10 @@ - - {if isset($grandstream_srtp)} -{$grandstream_srtp} +{if isset($grandstream_srtp)} + {$grandstream_srtp} {else} -0 + 0 {/if} @@ -2556,11 +2537,10 @@ - {if isset($grandstream_dial_plan) } -{$grandstream_dial_plan} + {$grandstream_dial_plan} {else} -{literal}{x+|*x+|*++|\p\a\r\k\+*x+| \f\l\o\w\+*x+}{/literal} + {literal}{x+|*x+|*++|\p\a\r\k\+*x+| \f\l\o\w\+*x+}{/literal} {/if} @@ -2575,9 +2555,8 @@ - - {if isset($grandstream_account_ring_tone_3)} -{$grandstream_account_ring_tone_3} +{if isset($grandstream_account_ring_tone_3)} + {$grandstream_account_ring_tone_3} {/if} @@ -2837,11 +2816,10 @@ - - {if isset($account.4.password)} -1 +{if isset($account.4.password)} + 1 {else} -0 + 0 {/if} @@ -2899,11 +2877,10 @@ - - {if isset($grandstream_dns_mode)} -{$grandstream_dns_mode} +{if isset($grandstream_dns_mode)} + {$grandstream_dns_mode} {else} -0 + 0 {/if} @@ -2926,11 +2903,10 @@ - - {if isset($grandstream_nat_traversal)} -{$grandstream_nat_traversal} +{if isset($grandstream_nat_traversal)} + {$grandstream_nat_traversal} {else} -0 + 0 {/if} @@ -2963,7 +2939,6 @@ - {$account.4.register_expires} @@ -3022,12 +2997,12 @@ - {$tp=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} + {$tp} @@ -3058,11 +3033,10 @@ - - {if isset($subscribe_mwi)} -1 +{if isset($subscribe_mwi)} + 1 {else} -0 + 0 {/if} @@ -3409,11 +3383,10 @@ - - {if isset($grandstream_srtp)} -{$grandstream_srtp} +{if isset($grandstream_srtp)} + {$grandstream_srtp} {else} -0 + 0 {/if} @@ -3500,11 +3473,10 @@ - - {if isset($grandstream_dial_plan) } -{$grandstream_dial_plan} +{if isset($grandstream_dial_plan) } + {$grandstream_dial_plan} {else} -{literal}{x+|*x+|*++|\p\a\r\k\+*x+| \f\l\o\w\+*x+}{/literal} + {literal}{x+|*x+|*++|\p\a\r\k\+*x+| \f\l\o\w\+*x+}{/literal} {/if} @@ -3519,9 +3491,8 @@ - - {if isset($grandstream_account_ring_tone_4)} -{$grandstream_account_ring_tone_4} +{if isset($grandstream_account_ring_tone_4)} + {$grandstream_account_ring_tone_4} {/if} @@ -3781,11 +3752,10 @@ - - {if isset($account.5.password)} -1 +{if isset($account.5.password)} + 1 {else} -0 + 0 {/if} @@ -3843,11 +3813,10 @@ - - {if isset($grandstream_dns_mode)} -{$grandstream_dns_mode} +{if isset($grandstream_dns_mode)} + {$grandstream_dns_mode} {else} -0 + 0 {/if} @@ -3870,11 +3839,10 @@ - - {if isset($grandstream_nat_traversal)} -{$grandstream_nat_traversal} +{if isset($grandstream_nat_traversal)} + {$grandstream_nat_traversal} {else} -0 + 0 {/if} @@ -3964,12 +3932,12 @@ - {$tp=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} + {$tp} @@ -4000,11 +3968,10 @@ - - {if isset($subscribe_mwi)} -1 +{if isset($subscribe_mwi)} + 1 {else} -0 + 0 {/if} @@ -4350,11 +4317,10 @@ - - {if isset($grandstream_srtp)} -{$grandstream_srtp} +{if isset($grandstream_srtp)} + {$grandstream_srtp} {else} -0 + 0 {/if} @@ -4440,11 +4406,10 @@ - - {if isset($grandstream_dial_plan) } -{$grandstream_dial_plan} +{if isset($grandstream_dial_plan) } + {$grandstream_dial_plan} {else} -{literal}{x+|*x+|*++|\p\a\r\k\+*x+| \f\l\o\w\+*x+}{/literal} + {literal}{x+|*x+|*++|\p\a\r\k\+*x+| \f\l\o\w\+*x+}{/literal} {/if} @@ -4459,9 +4424,8 @@ - - {if isset($grandstream_account_ring_tone_5)} -{$grandstream_account_ring_tone_5} +{if isset($grandstream_account_ring_tone_5)} + {$grandstream_account_ring_tone_5} {/if} @@ -4721,11 +4685,10 @@ - - {if isset($account.6.password)} -1 +{if isset($account.6.password)} + 1 {else} -0 + 0 {/if} @@ -4766,7 +4729,7 @@ - {$display_name_6} + {$account.6.display_name} @@ -4783,11 +4746,10 @@ - - {if isset($grandstream_dns_mode)} -{$grandstream_dns_mode} +{if isset($grandstream_dns_mode)} + {$grandstream_dns_mode} {else} -0 + 0 {/if} @@ -4810,11 +4772,10 @@ - - {if isset($grandstream_nat_traversal)} +{if isset($grandstream_nat_traversal)} {$grandstream_nat_traversal} {else} -0 + 0 {/if} @@ -4905,13 +4866,12 @@ - - {$tp=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} + {$tp} @@ -4942,11 +4902,11 @@ - - {if isset($subscribe_mwi)} -1 + +{if isset($subscribe_mwi)} + 1 {else} -0 + 0 {/if} @@ -5294,11 +5254,10 @@ - - {if isset($grandstream_srtp)} -{$grandstream_srtp} +{if isset($grandstream_srtp)} + {$grandstream_srtp} {else} -0 + 0 {/if} @@ -5384,11 +5343,10 @@ - {if isset($grandstream_dial_plan) } -{$grandstream_dial_plan} + {$grandstream_dial_plan} {else} -{literal}{x+|*x+|*++|\p\a\r\k\+*x+| \f\l\o\w\+*x+}{/literal} + {literal}{x+|*x+|*++|\p\a\r\k\+*x+| \f\l\o\w\+*x+}{/literal} {/if} @@ -5403,9 +5361,8 @@ - - {if isset($grandstream_account_ring_tone_6)} -{$grandstream_account_ring_tone_6} +{if isset($grandstream_account_ring_tone_6)} + {$grandstream_account_ring_tone_6} {/if} @@ -5672,10 +5629,8 @@ - phone-{$mac|replace:'-':''} - @@ -5880,10 +5835,10 @@ - {if isset($grandstream_lan_port_vlan) } -{$grandstream_lan_port_vlan} +{if isset($grandstream_lan_port_vlan) } + {$grandstream_lan_port_vlan} {else} -0 + 0 {/if} @@ -5899,10 +5854,10 @@ - {if isset($grandstream_pc_port_vlan) } -{$grandstream_pc_port_vlan} +{if isset($grandstream_pc_port_vlan) } + {$grandstream_pc_port_vlan} {else} -0 + 0 {/if} @@ -5977,17 +5932,15 @@ - - {if isset($grandstream_bluetooth_power)} -{$grandstream_bluetooth_power} +{if isset($grandstream_bluetooth_power)} + {$grandstream_bluetooth_power} {/if} - - {if isset($grandstream_bluetooth_handsfree)} -{$grandstream_bluetooth_handsfree} +{if isset($grandstream_bluetooth_handsfree)} + {$grandstream_bluetooth_handsfree} {/if} @@ -6152,14 +6105,12 @@ - - {if $admin_password=="none"} - + {elseif isset($admin_password)} -{$admin_password} + {$admin_password} {else} -adminadmin + adminadmin {/if} @@ -6251,23 +6202,20 @@ - {if $grandstream_config_server_path=="none"} - + {elseif isset($grandstream_config_server_path)} -{$grandstream_config_server_path} + {$grandstream_config_server_path} {else} -{$domain_name}{$project_path}/app/provision + {$domain_name}{$project_path}/app/provision {/if} - {$http_auth_username} - {$http_auth_password} @@ -6305,16 +6253,14 @@ - {if isset($grandstream_firmware_path) && isset($firmware_version)} -{$grandstream_firmware_path}/gxp2170/{$firmware_version} + {$grandstream_firmware_path}/gxp2170/{$firmware_version} {elseif isset($grandstream_firmware_path)} -{$grandstream_firmware_path}/gxp2170 + {$grandstream_firmware_path}/gxp2170 {else} -{$domain_name}{$project_path}/app/provision + {$domain_name}{$project_path}/app/provision {/if} - @@ -6341,17 +6287,15 @@ - {$grandstream_syslog_server} - - {if isset($grandstream_syslog_level)} -{$grandstream_syslog_level} +{if isset($grandstream_syslog_level)} + {$grandstream_syslog_level} {else} -0 + 0 {/if} @@ -6361,11 +6305,10 @@ - - {if isset($grandstream_send_sip_log)} -{$grandstream_send_sip_log} +{if isset($grandstream_send_sip_log)} + {$grandstream_send_sip_log} {else} -0 + 0 {/if} @@ -6595,9 +6538,9 @@ {if isset($contact_grandstream)} -1 + 1 {else} -0 + 0 {/if} @@ -6613,24 +6556,21 @@ - {if isset($contact_grandstream)} -{$grandstream_phonebook_xml_server_path}{$mac}/ + {$grandstream_phonebook_xml_server_path}{$mac}/ {elseif isset($grandstream_phonebook_xml_server_path)} -{$grandstream_phonebook_xml_server_path} + {$grandstream_phonebook_xml_server_path} {else} - + {/if} - - {if isset($grandstream_phonebook_download_interval)} -{$grandstream_phonebook_download_interval} + {$grandstream_phonebook_download_interval} {else} -0 + 0 {/if} @@ -6652,9 +6592,9 @@ {if isset($contact_grandstream)} -2 + 2 {else} -0 + 0 {/if} @@ -6788,17 +6728,17 @@ {if isset($public_mode) } - {if $public_mode|strtolower == 'true'} - 1 - {elseif $public_mode|strtolower == 'yes'} - 1 - {elseif $public_mode == '1'} - 1 - {else} - 0 - {/if} +{if $public_mode|strtolower == 'true'} + 1 +{elseif $public_mode|strtolower == 'yes'} + 1 +{elseif $public_mode == '1'} + 1 {else} -0 + 0 +{/if} +{else} + 0 {/if} @@ -7345,28 +7285,25 @@ - - {if isset($grandstream_call_waiting)} -{if $grandstream_call_waiting == "1"}0{/if} -{if $grandstream_call_waiting == "2"}1{/if} +{if isset($grandstream_call_waiting)} +{if $grandstream_call_waiting == "1"} 0{/if} +{if $grandstream_call_waiting == "2"} 1{/if} {/if} - - {if isset($grandstream_call_waiting)} -{if $grandstream_call_waiting == "1"}0{/if} -{if $grandstream_call_waiting == "2"}1{/if} +{if isset($grandstream_call_waiting)} +{if $grandstream_call_waiting == "1"} 0{/if} +{if $grandstream_call_waiting == "2"} 1{/if} {/if} - - {if isset($grandstream_call_waiting)} -{if $grandstream_call_waiting == "1"}0{/if} -{if $grandstream_call_waiting == "2"}1{/if} +{if isset($grandstream_call_waiting)} +{if $grandstream_call_waiting == "1"} 0{/if} +{if $grandstream_call_waiting == "2"} 1{/if} {/if} @@ -7441,11 +7378,10 @@ - {if isset($grandstream_auto_attended_transfer)} -{$grandstream_auto_attended_transfer} + {$grandstream_auto_attended_transfer} {else} -1 + 1 {/if} @@ -7913,19 +7849,18 @@ - {if isset($ntp_server_primary)} -{$ntp_server_primary} + {$ntp_server_primary} {else} -pool.ntp.org + pool.ntp.org {/if} {if isset($ntp_server_secondary)} -{$ntp_server_secondary} + {$ntp_server_secondary} {else} -2.us.pool.ntp.org + 2.us.pool.ntp.org {/if} @@ -8005,11 +7940,11 @@ {if isset($grandstream_timezone) } -{$grandstream_timezone} + {$grandstream_timezone} {elseif isset($grandstream_gxp_time_zone) } -{$grandstream_gxp_time_zone} + {$grandstream_gxp_time_zone} {else} -auto + auto {/if} @@ -8076,11 +8011,11 @@ {if isset($grandstream_wallpaper_url)} -1 -{$grandstream_wallpaper_url} + 1 + {$grandstream_wallpaper_url} {else} -0 - + 0 + {/if} @@ -8090,58 +8025,55 @@ - - {if isset($grandstream_screensaver)} -{$grandstream_screensaver} +{if isset($grandstream_screensaver)} + {$grandstream_screensaver} {else} -1 + 1 {/if} - - {if isset($grandstream_screensaver_source)} -{$grandstream_screensaver_source} +{if isset($grandstream_screensaver_source)} + {$grandstream_screensaver_source} {else} -0 + 0 {/if} - + {if isset($grandstream_screensaver_show_date_time)} -{$grandstream_screensaver_show_date_time} + {$grandstream_screensaver_show_date_time} {else} -1 + 1 {/if} - {if isset($grandstream_screensaver_timeout)} -{$grandstream_screensaver_timeout} + {$grandstream_screensaver_timeout} {else} -3 + 3 {/if} {if isset($grandstream_screensaver_server_path)} -{$grandstream_screensaver_server_path} + {$grandstream_screensaver_server_path} {else} - + {/if} {if isset($grandstream_screensaver_xml_download_interval)} -{$grandstream_screensaver_xml_download_interval} + {$grandstream_screensaver_xml_download_interval} {else} -0 + 0 {/if} @@ -8229,9 +8161,8 @@ - - {if isset($grandstream_default_ringtone)} -{$grandstream_default_ringtone} +{if isset($grandstream_default_ringtone)} + {$grandstream_default_ringtone} {/if} @@ -8254,15 +8185,15 @@ - - {if isset($grandstream_city_code)} -0 + +{if isset($grandstream_city_code)} + 0 {/if} - {if isset($grandstream_city_code)} -{$grandstream_city_code} +{if isset($grandstream_city_code)} + {$grandstream_city_code} {/if} @@ -8274,7 +8205,7 @@ {if isset ($grandstream_temp_unit)} -{$grandstream_temp_unit} + {$grandstream_temp_unit} {/if} @@ -12186,7 +12117,7 @@ - + {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} @@ -12251,7 +12182,7 @@ {/if} -{/for} +{/for} @@ -12935,8 +12866,7 @@ - - {assign var=key_types value=["speed dial"=>10, "speed dial active"=>14,"voicemail"=>16,"call return"=>17,"intercom"=>20,"ldap search"=>21,"menu"=>27]} +{assign var=key_types value=["speed dial"=>10, "speed dial active"=>14,"voicemail"=>16,"call return"=>17,"intercom"=>20,"ldap search"=>21,"menu"=>27]} {$start_id=2987} {for $prog=1 to 3} {$pid=$prog*4-4} @@ -12953,8 +12883,8 @@ {/if} {/for} - - + +