From 2827fd69aa7cb1932abed71c045b179d30d34de5 Mon Sep 17 00:00:00 2001
From: chansizzle <14916599+chansizzle@users.noreply.github.com>
Date: Fri, 9 Apr 2021 16:47:51 -0600
Subject: [PATCH] Update {$mac}.xml
---
.../provision/grandstream/gxv3275/{$mac}.xml | 3214 ++---------------
1 file changed, 230 insertions(+), 2984 deletions(-)
diff --git a/resources/templates/provision/grandstream/gxv3275/{$mac}.xml b/resources/templates/provision/grandstream/gxv3275/{$mac}.xml
index 8afee5dfec..2ad75e50db 100644
--- a/resources/templates/provision/grandstream/gxv3275/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxv3275/{$mac}.xml
@@ -230,15 +230,18 @@
+{if isset($account.1.password)}
1
+{else}
+0
+{/if}
-
+{$account.1.display_name}
{$account.1.server_address}
-
{$account.1.user_id}
@@ -262,10 +265,10 @@
-
+{$account.1.outbound_proxy_primary}
-
+{$account.2.outbound_proxy_secondary}
@@ -273,7 +276,11 @@
-2
+{if isset($grandstream_nat_traversal_1)}
+{$grandstream_nat_traversal_1}
+{else}
+0
+{/if}
@@ -303,7 +310,11 @@
+{if isset($subscribe_mwi)}
+1
+{else}
0
+{/if}
@@ -378,7 +389,11 @@
+{if isset($grandstream_validate_incoming_sip)}
+1
+{else}
0
+{/if}
@@ -505,7 +520,11 @@
-{$grandstream_dial_plan}
+{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}
@@ -575,7 +594,11 @@
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}
@@ -587,23 +610,33 @@
-content://settings/system/ringtone
+{if isset($grandstream_ring_tone_1_1)||$grandstream_ring_tone_1_1==0}
+{$grandstream_ring_tone_1_1}
+{/if}
-{$grandstream_distinctive_ringtone_name_2}
+{if isset($grandstream_ring_tone_caller_id_2_1)}
+{$grandstream_ring_tone_caller_id_2_1}
+{/if}
-content://settings/system/ringtone
+{if isset($grandstream_ring_tone_2_1)||$grandstream_ring_tone_2_1==0}
+{$grandstream_ring_tone_2_1}
+{/if}
-{$grandstream_distinctive_ringtone_name_3}
+{if isset($grandstream_ring_tone_caller_id_3_1)}
+{$grandstream_ring_tone_caller_id_3_1}
+{/if}
-content://settings/system/ringtone
+{if isset($grandstream_ring_tone_3_1)||$grandstream_ring_tone_2_1==0}
+{$grandstream_ring_tone_3_1}
+{/if}
@@ -673,10 +706,14 @@
+{if isset($account.2.password)}
+1
+{else}
0
+{/if}
-
+{$account.2.display_name}
{$account.2.server_address}
@@ -704,10 +741,10 @@
-
+{$account.2.outbound_proxy_primary}
-
+{$account.2.outbound_proxy_secondary}
@@ -746,7 +783,11 @@
+{if isset($subscribe_mwi)}
+1
+{else}
0
+{/if}
@@ -796,7 +837,12 @@
-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}
@@ -928,7 +974,11 @@
-{ x+ | \+x+ | *x+ | *xx*x+ }
+{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}
@@ -1096,10 +1146,14 @@
+{if isset($account.3.password)}
+1
+{else}
0
+{/if}
-
+{$account.3.display_name}
{$account.3.server_address}
@@ -1127,13 +1181,14 @@
-
+{$account.3.outbound_proxy_primary}
-
+{$account.3.outbound_proxy_secondary}
+
-VNumber: 0, 1, 2. -->
+
0
@@ -1168,7 +1223,11 @@ VNumber: 0, 1, 2. -->
+{if isset($subscribe_mwi)}
+1
+{else}
0
+{/if}
@@ -1219,7 +1278,12 @@ VNumber: 0, 1, 2. -->
-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}
@@ -1352,7 +1416,11 @@ VNumber: 0, 1, 2. -->
-{ x+ | \+x+ | *x+ | *xx*x+ }
+{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}
@@ -1523,7 +1591,11 @@ VNumber: 0, 1, 2. -->
+{if isset($account.4.password)}
+1
+{else}
0
+{/if}
@@ -1555,10 +1627,10 @@ VNumber: 0, 1, 2. -->
-
+{$account.4.outbound_proxy_primary}
-
+{$account.4.outbound_proxy_secondary}
@@ -1596,7 +1668,11 @@ VNumber: 0, 1, 2. -->
+{if isset($subscribe_mwi)}
+1
+{else}
0
+{/if}
@@ -1648,7 +1724,12 @@ VNumber: 0, 1, 2. -->
-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}
@@ -1782,7 +1863,11 @@ VNumber: 0, 1, 2. -->
-{ x+ | \+x+ | *x+ | *xx*x+ }
+{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}
@@ -1886,7 +1971,7 @@ VNumber: 0, 1, 2. -->
0
- Ring Tone Value Table
+
@@ -1952,10 +2037,14 @@ VNumber: 0, 1, 2. -->
+{if isset($account.5.password)}
+1
+{else}
0
+{/if}
-
+{$account.5.display_name}
{$account.5.server_address}
@@ -1983,7 +2072,7 @@ VNumber: 0, 1, 2. -->
-
+{$account.5.outbound_proxy_primary}
@@ -2024,7 +2113,11 @@ VNumber: 0, 1, 2. -->
+{if isset($subscribe_mwi)}
+1
+{else}
0
+{/if}
@@ -2074,7 +2167,12 @@ VNumber: 0, 1, 2. -->
-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}
@@ -2125,7 +2223,7 @@ VNumber: 0, 1, 2. -->
15
-Account 5 Codec Settings
+
@@ -2191,7 +2289,7 @@ Account 5 Codec Settings
1
- Account 5 Call Settings
+
@@ -2207,7 +2305,11 @@ Account 5 Codec Settings
-{$grandstream_dial_plan}
+{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}
@@ -2311,7 +2413,7 @@ Account 5 Codec Settings
0
- Ring Tone Value Table
+
@@ -2370,18 +2472,22 @@ Account 5 Codec Settings
- Account 6 Settings
+
- Account 6 General Settings
+
+{if isset($account.6.password)}
+1
+{else}
0
+{/if}
-
+{$account.6.display_name}
{$account.6.server_address}
@@ -2409,10 +2515,10 @@ Account 5 Codec Settings
-
+{$account.6.outbound_proxy_primary}
-
+{$account.6.outbound_proxy_secondary}
@@ -2450,7 +2556,11 @@ Account 5 Codec Settings
+{if isset($subscribe_mwi)}
+1
+{else}
0
+{/if}
@@ -2501,7 +2611,12 @@ Account 5 Codec Settings
-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}
@@ -2551,7 +2666,7 @@ Account 5 Codec Settings
15
- Account 6 Codec Settings
+
@@ -2633,7 +2748,11 @@ Account 5 Codec Settings
-{ x+ | \+x+ | *x+ | *xx*x+ }
+{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}
@@ -2736,7 +2855,7 @@ Account 5 Codec Settings
0
- Ring Tone Value Table
+
@@ -2816,7 +2935,11 @@ Account 5 Codec Settings
20
-stun.ipvideotalk.com
+{if isset($grandstream_stun_server) }
+{$grandstream_stun_server}
+{else}
+
+{/if}
@@ -2887,7 +3010,7 @@ Account 5 Codec Settings
- Advanced Settings - Video Settings
+
@@ -2981,7 +3104,7 @@ Account 5 Codec Settings
-GXP
+GXV3275
@@ -3030,7 +3153,11 @@ Account 5 Codec Settings
+{if isset($grandstream_lan_port_vlan) }
+{$grandstream_lan_port_vlan}
+{else}
0
+{/if}
@@ -3050,7 +3177,11 @@ Account 5 Codec Settings
-us.pool.ntp.org
+{if isset($ntp_server_primary)}
+{$ntp_server_primary}
+{else}
+pool.ntp.org
+{/if}
@@ -3265,7 +3396,11 @@ Account 5 Codec Settings
+{if isset($grandstream_auto_upgrade)}
+{$grandstream_auto_upgrade}
+{else}
0
+{/if}
@@ -3298,15 +3433,23 @@ Account 5 Codec Settings
-log.ipvideotalk.com
+{$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}
@@ -3415,7 +3558,13 @@ Account 5 Codec Settings
+{if isset($contact_grandstream)}
+{$grandstream_phonebook_xml_server_path}{$mac}/
+{elseif isset($grandstream_phonebook_xml_server_path)}
+{$grandstream_phonebook_xml_server_path}
+{else}
+{/if}
@@ -3426,55 +3575,55 @@ Account 5 Codec Settings
-
+{$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_number_filter}
-
+{$grandstream_ldap_name_filter}
-
+{$grandstream_ldap_mail_filter}
@@ -5934,2931 +6083,28 @@ MPK 7
-Advanced Settings - MPK EXT 1 Settings
-
-The MPKs in this section are for the GXP2200EXT 1
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
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
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
-
-
-0
-
-
-
-
-
-
-
-
-
-
-
-
-
-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}