diff --git a/resources/templates/provision/grandstream/gxp21xxbk/{$mac}.xml b/resources/templates/provision/grandstream/gxp21xxbk/{$mac}.xml index 9a465cc112..58eabbf6c8 100644 --- a/resources/templates/provision/grandstream/gxp21xxbk/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp21xxbk/{$mac}.xml @@ -35,9 +35,9 @@ {if isset($grandstream_firmware_path) && isset($firmware_version)} -{$grandstream_firmware_path}/gxp21xx/{$firmware_version} +{$grandstream_firmware_path}/{$firmware_version} {elseif isset($grandstream_firmware_path)} -{$grandstream_firmware_path}/gxp21xx +{$grandstream_firmware_path}/ {else} {$domain_name}{$project_path}/app/provision {/if} @@ -111,10 +111,10 @@ {$account.1.server_address} - +{$account.1.server_address_secondary} - +{$account.1.outbound_proxy_primary} {$account.1.user_id} @@ -183,7 +183,13 @@ 400 -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} 1 @@ -620,11 +626,11 @@ - +{$account.2.server_address_secondary} - +{$account.2.outbound_proxy} @@ -727,7 +733,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} @@ -1046,7 +1057,12 @@ -{ x+ | *x+ | *xx*x+ } + +{if isset($grandstream_dial_plan) } +{$grandstream_dial_plan} +{else} +{literal}{x+|*x+|*++|\p\a\r\k\+*x+| \f\l\o\w\+*x+}{/literal} +{/if} @@ -1171,11 +1187,11 @@ - +{$account.3.server_address_secondary} - +{$account.3.outbound_proxy} @@ -1278,7 +1294,13 @@ -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} @@ -1720,11 +1742,11 @@ - +{$account.4.server_address_secondary} - +{$account.4.outbound_proxy_primary} @@ -1828,7 +1850,13 @@ -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} @@ -2266,11 +2294,11 @@ - +{$account.5.server_address_secondary} - +{$account.5.outbound_proxy_primary} @@ -2374,7 +2402,13 @@ -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} @@ -2814,11 +2848,11 @@ - +{$account.6.server_address_secondary} - +{$account.6.outbound_proxy_primary} @@ -2923,7 +2957,13 @@ -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}