From 4c59f711f0e02ee4a0aa33abe8acfa19cd6403db Mon Sep 17 00:00:00 2001 From: Antonio Fernandez Date: Fri, 11 Feb 2022 15:10:23 -0500 Subject: [PATCH] Yealink template consistency (#6284) Changes to make the templates a bit more consistent while also fixing some typos and creating a new variable for the NAT Update setting. By default, the account.x.nat.udp_update_enable is set to "3" which means to have the phone periodically send NOTIFY messages. This is not the case though on additional accounts. This makes for inconsistent configs that sometimes cause issues with phones ringing. This fixes the issue while also giving the ability to use a variable to set it. --- .../provision/yealink/cp860/{$mac}.cfg | 12 ++--- .../provision/yealink/cp920/{$mac}.cfg | 12 ++--- .../provision/yealink/cp960/{$mac}.cfg | 12 ++--- .../provision/yealink/t19p/{$mac}.cfg | 34 +++++++------- .../provision/yealink/t20p/{$mac}.cfg | 34 +++++++------- .../provision/yealink/t21p/{$mac}.cfg | 24 +++++----- .../provision/yealink/t22p/{$mac}.cfg | 34 +++++++------- .../provision/yealink/t23g/{$mac}.cfg | 24 +++++----- .../provision/yealink/t23p/{$mac}.cfg | 24 +++++----- .../provision/yealink/t26p/{$mac}.cfg | 34 +++++++------- .../provision/yealink/t27g/{$mac}.cfg | 12 ++--- .../provision/yealink/t27p/{$mac}.cfg | 24 +++++----- .../provision/yealink/t28p/{$mac}.cfg | 34 +++++++------- .../provision/yealink/t29g/{$mac}.cfg | 24 +++++----- .../provision/yealink/t31g/{$mac}.cfg | 34 +++++++------- .../provision/yealink/t32g/{$mac}.cfg | 34 +++++++------- .../provision/yealink/t33g/{$mac}.cfg | 16 +++---- .../provision/yealink/t38g/{$mac}.cfg | 34 +++++++------- .../provision/yealink/t40g/{$mac}.cfg | 12 ++--- .../provision/yealink/t40p/{$mac}.cfg | 12 ++--- .../provision/yealink/t41p/{$mac}.cfg | 24 +++++----- .../provision/yealink/t42g/{$mac}.cfg | 24 +++++----- .../provision/yealink/t42s/{$mac}.cfg | 24 +++++----- .../provision/yealink/t43u/{$mac}.cfg | 24 +++++----- .../provision/yealink/t46g/{$mac}.cfg | 24 +++++----- .../provision/yealink/t46s/{$mac}.cfg | 24 +++++----- .../provision/yealink/t46u/{$mac}.cfg | 24 +++++----- .../provision/yealink/t48g/{$mac}.cfg | 24 +++++----- .../provision/yealink/t48s/{$mac}.cfg | 12 ++--- .../provision/yealink/t48u/{$mac}.cfg | 24 +++++----- .../provision/yealink/t49g/{$mac}.cfg | 24 +++++----- .../provision/yealink/t52s/{$mac}.cfg | 8 ++-- .../provision/yealink/t53/{$mac}.cfg | 40 ++++++++--------- .../provision/yealink/t53w/{$mac}.cfg | 40 ++++++++--------- .../provision/yealink/t54s/{$mac}.cfg | 8 ++-- .../provision/yealink/t56a/{$mac}.cfg | 34 +++++++------- .../provision/yealink/t57w/{$mac}.cfg | 40 ++++++++--------- .../provision/yealink/t58a/{$mac}.cfg | 34 +++++++------- .../provision/yealink/t58v/{$mac}.cfg | 2 +- .../provision/yealink/vp530/{$mac}.cfg | 24 +++++----- .../provision/yealink/vp59/{$mac}.cfg | 2 +- .../provision/yealink/w52p/{$mac}.cfg | 28 ++++++------ .../provision/yealink/w56p/{$mac}.cfg | 28 ++++++------ .../provision/yealink/w60b/{$mac}.cfg | 44 +++++++++---------- .../provision/yealink/w7xp/{$mac}.cfg | 44 +++++++++---------- 45 files changed, 554 insertions(+), 554 deletions(-) diff --git a/resources/templates/provision/yealink/cp860/{$mac}.cfg b/resources/templates/provision/yealink/cp860/{$mac}.cfg index ebe8b75c5..5c75148bf 100644 --- a/resources/templates/provision/yealink/cp860/{$mac}.cfg +++ b/resources/templates/provision/yealink/cp860/{$mac}.cfg @@ -143,7 +143,7 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.1.nat.udp_update_time = 30 @@ -646,7 +646,7 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.2.nat.udp_update_time = 30 @@ -1161,7 +1161,7 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.3.nat.udp_update_time = 30 @@ -1661,7 +1661,7 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.4.nat.udp_update_time = 30 @@ -2158,7 +2158,7 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.5.nat.udp_update_time = 30 @@ -2654,7 +2654,7 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.6.nat.udp_update_time = 30 diff --git a/resources/templates/provision/yealink/cp920/{$mac}.cfg b/resources/templates/provision/yealink/cp920/{$mac}.cfg index 4f5b78199..b9b02277a 100644 --- a/resources/templates/provision/yealink/cp920/{$mac}.cfg +++ b/resources/templates/provision/yealink/cp920/{$mac}.cfg @@ -142,7 +142,7 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.1.nat.udp_update_time = 30 @@ -645,7 +645,7 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.2.nat.udp_update_time = 30 @@ -1161,7 +1161,7 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.3.nat.udp_update_time = 30 @@ -1663,7 +1663,7 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.4.nat.udp_update_time = 30 @@ -2161,7 +2161,7 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.5.nat.udp_update_time = 30 @@ -2658,7 +2658,7 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.6.nat.udp_update_time = 30 diff --git a/resources/templates/provision/yealink/cp960/{$mac}.cfg b/resources/templates/provision/yealink/cp960/{$mac}.cfg index c535a6ec8..33af265f5 100644 --- a/resources/templates/provision/yealink/cp960/{$mac}.cfg +++ b/resources/templates/provision/yealink/cp960/{$mac}.cfg @@ -143,7 +143,7 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.1.nat.udp_update_time = 30 @@ -647,7 +647,7 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.2.nat.udp_update_time = 30 @@ -1162,7 +1162,7 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.3.nat.udp_update_time = 30 @@ -1661,7 +1661,7 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.4.nat.udp_update_time = 30 @@ -2158,7 +2158,7 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.5.nat.udp_update_time = 30 @@ -2654,7 +2654,7 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.6.nat.udp_update_time = 30 diff --git a/resources/templates/provision/yealink/t19p/{$mac}.cfg b/resources/templates/provision/yealink/t19p/{$mac}.cfg index b5de465f4..189fe6fef 100644 --- a/resources/templates/provision/yealink/t19p/{$mac}.cfg +++ b/resources/templates/provision/yealink/t19p/{$mac}.cfg @@ -247,10 +247,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -599,11 +599,11 @@ account.2.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.2.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -924,11 +924,11 @@ account.3.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.3.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1250,11 +1250,11 @@ account.4.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.4.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -1576,11 +1576,11 @@ account.5.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.5.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -1899,11 +1899,11 @@ account.6.nat.stun_server = #Configure the STUN server port, the default value is 3478. account.6.nat.stun_port = -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.6.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t20p/{$mac}.cfg b/resources/templates/provision/yealink/t20p/{$mac}.cfg index 6a989f6a3..2b2ab27aa 100644 --- a/resources/templates/provision/yealink/t20p/{$mac}.cfg +++ b/resources/templates/provision/yealink/t20p/{$mac}.cfg @@ -247,10 +247,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -601,11 +601,11 @@ account.2.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.2.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -926,11 +926,11 @@ account.3.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.3.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1251,11 +1251,11 @@ account.4.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.4.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -1577,11 +1577,11 @@ account.5.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.5.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -1900,11 +1900,11 @@ account.6.nat.stun_server = #Configure the STUN server port, the default value is 3478. account.6.nat.stun_port = -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.6.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t21p/{$mac}.cfg b/resources/templates/provision/yealink/t21p/{$mac}.cfg index 7b40d3897..d0ae9967f 100644 --- a/resources/templates/provision/yealink/t21p/{$mac}.cfg +++ b/resources/templates/provision/yealink/t21p/{$mac}.cfg @@ -143,10 +143,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = 30 +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -645,10 +645,10 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = 30 +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -1158,10 +1158,10 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = 30 +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1654,10 +1654,10 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = 30 +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -2150,10 +2150,10 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = 30 +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -2645,10 +2645,10 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = 30 +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t22p/{$mac}.cfg b/resources/templates/provision/yealink/t22p/{$mac}.cfg index b5de465f4..189fe6fef 100644 --- a/resources/templates/provision/yealink/t22p/{$mac}.cfg +++ b/resources/templates/provision/yealink/t22p/{$mac}.cfg @@ -247,10 +247,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -599,11 +599,11 @@ account.2.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.2.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -924,11 +924,11 @@ account.3.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.3.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1250,11 +1250,11 @@ account.4.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.4.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -1576,11 +1576,11 @@ account.5.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.5.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -1899,11 +1899,11 @@ account.6.nat.stun_server = #Configure the STUN server port, the default value is 3478. account.6.nat.stun_port = -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.6.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t23g/{$mac}.cfg b/resources/templates/provision/yealink/t23g/{$mac}.cfg index 1e9ca96c3..94c043a9e 100644 --- a/resources/templates/provision/yealink/t23g/{$mac}.cfg +++ b/resources/templates/provision/yealink/t23g/{$mac}.cfg @@ -156,10 +156,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = 30 +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -661,10 +661,10 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = 30 +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -1147,10 +1147,10 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = 30 +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1623,10 +1623,10 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = 30 +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -2099,10 +2099,10 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = 30 +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -2574,10 +2574,10 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = 30 +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t23p/{$mac}.cfg b/resources/templates/provision/yealink/t23p/{$mac}.cfg index eb61fc0e1..0fe22fc1b 100644 --- a/resources/templates/provision/yealink/t23p/{$mac}.cfg +++ b/resources/templates/provision/yealink/t23p/{$mac}.cfg @@ -142,10 +142,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = 30 +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -647,10 +647,10 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = 30 +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -1133,10 +1133,10 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = 30 +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1609,10 +1609,10 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = 30 +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -2085,10 +2085,10 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = 30 +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -2560,10 +2560,10 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = 30 +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t26p/{$mac}.cfg b/resources/templates/provision/yealink/t26p/{$mac}.cfg index 9a2aab715..c2652680c 100644 --- a/resources/templates/provision/yealink/t26p/{$mac}.cfg +++ b/resources/templates/provision/yealink/t26p/{$mac}.cfg @@ -247,10 +247,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -599,11 +599,11 @@ account.2.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.2.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -925,11 +925,11 @@ account.3.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.3.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1250,11 +1250,11 @@ account.4.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.4.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -1576,11 +1576,11 @@ account.5.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.5.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -1899,11 +1899,11 @@ account.6.nat.stun_server = #Configure the STUN server port, the default value is 3478. account.6.nat.stun_port = -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.6.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t27g/{$mac}.cfg b/resources/templates/provision/yealink/t27g/{$mac}.cfg index bf8bf55a5..4a9a7e6a6 100644 --- a/resources/templates/provision/yealink/t27g/{$mac}.cfg +++ b/resources/templates/provision/yealink/t27g/{$mac}.cfg @@ -156,7 +156,7 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.1.nat.udp_update_time = 30 @@ -660,7 +660,7 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.2.nat.udp_update_time = 30 @@ -1145,7 +1145,7 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.3.nat.udp_update_time = 30 @@ -1620,7 +1620,7 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.4.nat.udp_update_time = 30 @@ -2095,7 +2095,7 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.5.nat.udp_update_time = 30 @@ -2569,7 +2569,7 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.6.nat.udp_update_time = 30 diff --git a/resources/templates/provision/yealink/t27p/{$mac}.cfg b/resources/templates/provision/yealink/t27p/{$mac}.cfg index 61be34b40..bc1908d90 100644 --- a/resources/templates/provision/yealink/t27p/{$mac}.cfg +++ b/resources/templates/provision/yealink/t27p/{$mac}.cfg @@ -156,10 +156,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = 30 +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -660,10 +660,10 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = 30 +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -1145,10 +1145,10 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = 30 +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1620,10 +1620,10 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = 30 +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -2095,10 +2095,10 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = 30 +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -2569,10 +2569,10 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = 30 +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t28p/{$mac}.cfg b/resources/templates/provision/yealink/t28p/{$mac}.cfg index 9a2aab715..c2652680c 100644 --- a/resources/templates/provision/yealink/t28p/{$mac}.cfg +++ b/resources/templates/provision/yealink/t28p/{$mac}.cfg @@ -247,10 +247,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -599,11 +599,11 @@ account.2.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.2.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -925,11 +925,11 @@ account.3.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.3.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1250,11 +1250,11 @@ account.4.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.4.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -1576,11 +1576,11 @@ account.5.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.5.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -1899,11 +1899,11 @@ account.6.nat.stun_server = #Configure the STUN server port, the default value is 3478. account.6.nat.stun_port = -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.6.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t29g/{$mac}.cfg b/resources/templates/provision/yealink/t29g/{$mac}.cfg index d5420401e..0cda138ed 100644 --- a/resources/templates/provision/yealink/t29g/{$mac}.cfg +++ b/resources/templates/provision/yealink/t29g/{$mac}.cfg @@ -156,10 +156,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = 30 +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -661,10 +661,10 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = 30 +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -1147,10 +1147,10 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = 30 +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1623,10 +1623,10 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = 30 +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -2099,10 +2099,10 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = 30 +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -2574,10 +2574,10 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = 30 +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t31g/{$mac}.cfg b/resources/templates/provision/yealink/t31g/{$mac}.cfg index 4b2c2065a..88dc35b69 100644 --- a/resources/templates/provision/yealink/t31g/{$mac}.cfg +++ b/resources/templates/provision/yealink/t31g/{$mac}.cfg @@ -238,10 +238,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -582,11 +582,11 @@ account.2.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.2.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -899,11 +899,11 @@ account.3.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.3.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1216,11 +1216,11 @@ account.4.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.4.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -1534,11 +1534,11 @@ account.5.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.5.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -1849,11 +1849,11 @@ account.6.nat.stun_server = #Configure the STUN server port, the default value is 3478. account.6.nat.stun_port = -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.6.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t32g/{$mac}.cfg b/resources/templates/provision/yealink/t32g/{$mac}.cfg index 2fcb140a2..91444a2cd 100644 --- a/resources/templates/provision/yealink/t32g/{$mac}.cfg +++ b/resources/templates/provision/yealink/t32g/{$mac}.cfg @@ -238,10 +238,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -582,11 +582,11 @@ account.2.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.2.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -899,11 +899,11 @@ account.3.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.3.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1216,11 +1216,11 @@ account.4.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.4.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -1534,11 +1534,11 @@ account.5.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.5.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -1849,11 +1849,11 @@ account.6.nat.stun_server = #Configure the STUN server port, the default value is 3478. account.6.nat.stun_port = -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.6.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t33g/{$mac}.cfg b/resources/templates/provision/yealink/t33g/{$mac}.cfg index b7315bc85..265eb1556 100644 --- a/resources/templates/provision/yealink/t33g/{$mac}.cfg +++ b/resources/templates/provision/yealink/t33g/{$mac}.cfg @@ -187,8 +187,8 @@ account.1.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.1.nat.udp_update_enable= -account.1.nat.udp_update_time= +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.1.nat.udp_update_time = 30 account.1.nat.rport= {$yealink_rport} account.1.dtmf.type= {$yealink_dtmf_type} @@ -758,8 +758,8 @@ account.2.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.2.nat.udp_update_enable= -account.2.nat.udp_update_time= +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.2.nat.udp_update_time = 30 account.2.nat.rport= {$yealink_rport} account.2.dtmf.type= {$yealink_dtmf_type} @@ -1326,8 +1326,8 @@ account.3.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.3.nat.udp_update_enable= -account.3.nat.udp_update_time= +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.3.nat.udp_update_time = 30 account.3.nat.rport= {$yealink_rport} account.3.dtmf.type= {$yealink_dtmf_type} @@ -1894,8 +1894,8 @@ account.4.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.4.nat.udp_update_enable= -account.4.nat.udp_update_time= +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.4.nat.udp_update_time = 30 account.4.nat.rport= {$yealink_rport} account.4.dtmf.type= {$yealink_dtmf_type} diff --git a/resources/templates/provision/yealink/t38g/{$mac}.cfg b/resources/templates/provision/yealink/t38g/{$mac}.cfg index 2fcb140a2..91444a2cd 100644 --- a/resources/templates/provision/yealink/t38g/{$mac}.cfg +++ b/resources/templates/provision/yealink/t38g/{$mac}.cfg @@ -238,10 +238,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -582,11 +582,11 @@ account.2.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.2.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -899,11 +899,11 @@ account.3.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.3.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1216,11 +1216,11 @@ account.4.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.4.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -1534,11 +1534,11 @@ account.5.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.5.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -1849,11 +1849,11 @@ account.6.nat.stun_server = #Configure the STUN server port, the default value is 3478. account.6.nat.stun_port = -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.6.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t40g/{$mac}.cfg b/resources/templates/provision/yealink/t40g/{$mac}.cfg index 8f8b9f1ee..28841ca68 100644 --- a/resources/templates/provision/yealink/t40g/{$mac}.cfg +++ b/resources/templates/provision/yealink/t40g/{$mac}.cfg @@ -156,7 +156,7 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.1.nat.udp_update_time = 30 @@ -661,7 +661,7 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.2.nat.udp_update_time = 30 @@ -1177,7 +1177,7 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.3.nat.udp_update_time = 30 @@ -1676,7 +1676,7 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.4.nat.udp_update_time = 30 @@ -2175,7 +2175,7 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.5.nat.udp_update_time = 30 @@ -2673,7 +2673,7 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.6.nat.udp_update_time = 30 diff --git a/resources/templates/provision/yealink/t40p/{$mac}.cfg b/resources/templates/provision/yealink/t40p/{$mac}.cfg index 62f107dcb..aa0558e53 100644 --- a/resources/templates/provision/yealink/t40p/{$mac}.cfg +++ b/resources/templates/provision/yealink/t40p/{$mac}.cfg @@ -148,7 +148,7 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.1.nat.udp_update_time = 30 @@ -661,7 +661,7 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.2.nat.udp_update_time = 30 @@ -1179,7 +1179,7 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.3.nat.udp_update_time = 30 @@ -1680,7 +1680,7 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.4.nat.udp_update_time = 30 @@ -2181,7 +2181,7 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.5.nat.udp_update_time = 30 @@ -2681,7 +2681,7 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.6.nat.udp_update_time = 30 diff --git a/resources/templates/provision/yealink/t41p/{$mac}.cfg b/resources/templates/provision/yealink/t41p/{$mac}.cfg index 2cc4a21e6..ca9894cc6 100644 --- a/resources/templates/provision/yealink/t41p/{$mac}.cfg +++ b/resources/templates/provision/yealink/t41p/{$mac}.cfg @@ -142,10 +142,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = 30 +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -644,10 +644,10 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = 30 +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -1157,10 +1157,10 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = 30 +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1653,10 +1653,10 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = 30 +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -2149,10 +2149,10 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = 30 +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -2644,10 +2644,10 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = 30 +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t42g/{$mac}.cfg b/resources/templates/provision/yealink/t42g/{$mac}.cfg index dcd3e396a..6e92ea8a2 100644 --- a/resources/templates/provision/yealink/t42g/{$mac}.cfg +++ b/resources/templates/provision/yealink/t42g/{$mac}.cfg @@ -156,10 +156,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = 30 +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -661,10 +661,10 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = 30 +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -1147,10 +1147,10 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = 30 +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1623,10 +1623,10 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = 30 +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -2099,10 +2099,10 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = 30 +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -2574,10 +2574,10 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = 30 +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t42s/{$mac}.cfg b/resources/templates/provision/yealink/t42s/{$mac}.cfg index 5b53f481c..46656adf4 100644 --- a/resources/templates/provision/yealink/t42s/{$mac}.cfg +++ b/resources/templates/provision/yealink/t42s/{$mac}.cfg @@ -156,10 +156,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = 30 +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -660,10 +660,10 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = 30 +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -1147,10 +1147,10 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = 30 +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1623,10 +1623,10 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = 30 +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -2094,10 +2094,10 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = 30 +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -2564,10 +2564,10 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = 30 +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t43u/{$mac}.cfg b/resources/templates/provision/yealink/t43u/{$mac}.cfg index 8efdebad1..25aa42e47 100644 --- a/resources/templates/provision/yealink/t43u/{$mac}.cfg +++ b/resources/templates/provision/yealink/t43u/{$mac}.cfg @@ -183,8 +183,8 @@ account.1.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.1.nat.udp_update_enable= -account.1.nat.udp_update_time= +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.1.nat.udp_update_time = 30 account.1.nat.rport= {$yealink_rport} account.1.dtmf.type= {$yealink_dtmf_type} @@ -751,8 +751,8 @@ account.2.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.2.nat.udp_update_enable= -account.2.nat.udp_update_time= +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.2.nat.udp_update_time = 30 account.2.nat.rport= {$yealink_rport} account.2.dtmf.type= {$yealink_dtmf_type} @@ -1319,8 +1319,8 @@ account.3.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.3.nat.udp_update_enable= -account.3.nat.udp_update_time= +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.3.nat.udp_update_time = 30 account.3.nat.rport= {$yealink_rport} account.3.dtmf.type= {$yealink_dtmf_type} @@ -1887,8 +1887,8 @@ account.4.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.4.nat.udp_update_enable= -account.4.nat.udp_update_time= +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.4.nat.udp_update_time = 30 account.4.nat.rport= {$yealink_rport} account.4.dtmf.type= {$yealink_dtmf_type} @@ -2455,8 +2455,8 @@ account.5.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.5.nat.udp_update_enable= -account.5.nat.udp_update_time= +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.5.nat.udp_update_time = 30 account.5.nat.rport= {$yealink_rport} account.5.dtmf.type= {$yealink_dtmf_type} @@ -3023,8 +3023,8 @@ account.6.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.6.nat.udp_update_enable= -account.6.nat.udp_update_time= +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.6.nat.udp_update_time = 30 account.6.nat.rport= {$yealink_rport} account.6.dtmf.type= {$yealink_dtmf_type} diff --git a/resources/templates/provision/yealink/t46g/{$mac}.cfg b/resources/templates/provision/yealink/t46g/{$mac}.cfg index 92caf5692..4f6b7a92b 100644 --- a/resources/templates/provision/yealink/t46g/{$mac}.cfg +++ b/resources/templates/provision/yealink/t46g/{$mac}.cfg @@ -156,10 +156,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = 30 +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -662,10 +662,10 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = 30 +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -1148,10 +1148,10 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = 30 +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1624,10 +1624,10 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = 30 +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -2100,10 +2100,10 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = 30 +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -2575,10 +2575,10 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = 30 +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t46s/{$mac}.cfg b/resources/templates/provision/yealink/t46s/{$mac}.cfg index 770382a85..01442f40f 100644 --- a/resources/templates/provision/yealink/t46s/{$mac}.cfg +++ b/resources/templates/provision/yealink/t46s/{$mac}.cfg @@ -156,10 +156,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = 30 +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -660,10 +660,10 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = 30 +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -1150,10 +1150,10 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = 30 +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1631,10 +1631,10 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = 30 +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -2107,10 +2107,10 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = 30 +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -2582,10 +2582,10 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = 30 +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t46u/{$mac}.cfg b/resources/templates/provision/yealink/t46u/{$mac}.cfg index 281975511..e0d184a06 100644 --- a/resources/templates/provision/yealink/t46u/{$mac}.cfg +++ b/resources/templates/provision/yealink/t46u/{$mac}.cfg @@ -183,8 +183,8 @@ account.1.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.1.nat.udp_update_enable= -account.1.nat.udp_update_time= +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.1.nat.udp_update_time = 30 account.1.nat.rport= {$yealink_rport} account.1.dtmf.type= {$yealink_dtmf_type} @@ -746,8 +746,8 @@ account.2.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.2.nat.udp_update_enable= -account.2.nat.udp_update_time= +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.2.nat.udp_update_time = 30 account.2.nat.rport= {$yealink_rport} account.2.dtmf.type= {$yealink_dtmf_type} @@ -1309,8 +1309,8 @@ account.3.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.3.nat.udp_update_enable= -account.3.nat.udp_update_time= +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.3.nat.udp_update_time = 30 account.3.nat.rport= {$yealink_rport} account.3.dtmf.type= {$yealink_dtmf_type} @@ -1872,8 +1872,8 @@ account.4.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.4.nat.udp_update_enable= -account.4.nat.udp_update_time= +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.4.nat.udp_update_time = 30 account.4.nat.rport= {$yealink_rport} account.4.dtmf.type= {$yealink_dtmf_type} @@ -2435,8 +2435,8 @@ account.5.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.5.nat.udp_update_enable= -account.5.nat.udp_update_time= +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.5.nat.udp_update_time = 30 account.5.nat.rport= {$yealink_rport} account.5.dtmf.type= {$yealink_dtmf_type} @@ -2998,8 +2998,8 @@ account.6.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.6.nat.udp_update_enable= -account.6.nat.udp_update_time= +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.6.nat.udp_update_time = 30 account.6.nat.rport= {$yealink_rport} account.6.dtmf.type= {$yealink_dtmf_type} diff --git a/resources/templates/provision/yealink/t48g/{$mac}.cfg b/resources/templates/provision/yealink/t48g/{$mac}.cfg index c3e5f1547..2e53a0a9d 100644 --- a/resources/templates/provision/yealink/t48g/{$mac}.cfg +++ b/resources/templates/provision/yealink/t48g/{$mac}.cfg @@ -156,10 +156,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = 30 +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -661,10 +661,10 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = 30 +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -1147,10 +1147,10 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = 30 +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1623,10 +1623,10 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = 30 +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -2099,10 +2099,10 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = 30 +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -2574,10 +2574,10 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = 30 +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t48s/{$mac}.cfg b/resources/templates/provision/yealink/t48s/{$mac}.cfg index e5fb1f2f9..b13108b17 100644 --- a/resources/templates/provision/yealink/t48s/{$mac}.cfg +++ b/resources/templates/provision/yealink/t48s/{$mac}.cfg @@ -156,7 +156,7 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.1.nat.udp_update_time = 30 @@ -660,7 +660,7 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.2.nat.udp_update_time = 30 @@ -1146,7 +1146,7 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.3.nat.udp_update_time = 30 @@ -1623,7 +1623,7 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.4.nat.udp_update_time = 30 @@ -2095,7 +2095,7 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.5.nat.udp_update_time = 30 @@ -2566,7 +2566,7 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.6.nat.udp_update_time = 30 diff --git a/resources/templates/provision/yealink/t48u/{$mac}.cfg b/resources/templates/provision/yealink/t48u/{$mac}.cfg index 281975511..e0d184a06 100644 --- a/resources/templates/provision/yealink/t48u/{$mac}.cfg +++ b/resources/templates/provision/yealink/t48u/{$mac}.cfg @@ -183,8 +183,8 @@ account.1.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.1.nat.udp_update_enable= -account.1.nat.udp_update_time= +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.1.nat.udp_update_time = 30 account.1.nat.rport= {$yealink_rport} account.1.dtmf.type= {$yealink_dtmf_type} @@ -746,8 +746,8 @@ account.2.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.2.nat.udp_update_enable= -account.2.nat.udp_update_time= +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.2.nat.udp_update_time = 30 account.2.nat.rport= {$yealink_rport} account.2.dtmf.type= {$yealink_dtmf_type} @@ -1309,8 +1309,8 @@ account.3.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.3.nat.udp_update_enable= -account.3.nat.udp_update_time= +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.3.nat.udp_update_time = 30 account.3.nat.rport= {$yealink_rport} account.3.dtmf.type= {$yealink_dtmf_type} @@ -1872,8 +1872,8 @@ account.4.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.4.nat.udp_update_enable= -account.4.nat.udp_update_time= +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.4.nat.udp_update_time = 30 account.4.nat.rport= {$yealink_rport} account.4.dtmf.type= {$yealink_dtmf_type} @@ -2435,8 +2435,8 @@ account.5.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.5.nat.udp_update_enable= -account.5.nat.udp_update_time= +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.5.nat.udp_update_time = 30 account.5.nat.rport= {$yealink_rport} account.5.dtmf.type= {$yealink_dtmf_type} @@ -2998,8 +2998,8 @@ account.6.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.6.nat.udp_update_enable= -account.6.nat.udp_update_time= +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.6.nat.udp_update_time = 30 account.6.nat.rport= {$yealink_rport} account.6.dtmf.type= {$yealink_dtmf_type} diff --git a/resources/templates/provision/yealink/t49g/{$mac}.cfg b/resources/templates/provision/yealink/t49g/{$mac}.cfg index 1822efc2f..c5f31d63f 100644 --- a/resources/templates/provision/yealink/t49g/{$mac}.cfg +++ b/resources/templates/provision/yealink/t49g/{$mac}.cfg @@ -156,10 +156,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = 30 +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -661,10 +661,10 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = 30 +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -1186,10 +1186,10 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = 30 +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1685,10 +1685,10 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = 30 +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -2184,10 +2184,10 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = 30 +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -2682,10 +2682,10 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = 30 +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/t52s/{$mac}.cfg b/resources/templates/provision/yealink/t52s/{$mac}.cfg index 2945091c9..4ecc32c1b 100644 --- a/resources/templates/provision/yealink/t52s/{$mac}.cfg +++ b/resources/templates/provision/yealink/t52s/{$mac}.cfg @@ -338,8 +338,8 @@ account.2.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.1.nat.udp_update_enable= 3 -account.1.nat.udp_update_time= 30 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.1.nat.udp_update_time = 30 account.1.nat.rport= {$yealink_rport} account.1.dtmf.type= {$yealink_dtmf_type} @@ -364,8 +364,8 @@ account.1.session_timer.enable= {$yealink_session_timer} account.1.conf_type = {if $nway_conference == 'true'}2{elseif $nway_conference == 'false'}0{/if} account.1.sip_server_type= -account.2.nat.udp_update_enable= 3 -account.2.nat.udp_update_time= 30 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.2.nat.udp_update_time = 30 account.2.nat.rport= {$yealink_rport} account.2.dtmf.type= {$yealink_dtmf_type} diff --git a/resources/templates/provision/yealink/t53/{$mac}.cfg b/resources/templates/provision/yealink/t53/{$mac}.cfg index bb92a2eb1..65b7d5de1 100644 --- a/resources/templates/provision/yealink/t53/{$mac}.cfg +++ b/resources/templates/provision/yealink/t53/{$mac}.cfg @@ -182,8 +182,8 @@ account.1.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.1.nat.udp_update_enable= 3 -account.1.nat.udp_update_time= 30 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.1.nat.udp_update_time = 30 account.1.nat.rport= {$yealink_rport} account.1.dtmf.type= {$yealink_dtmf_type} @@ -721,8 +721,8 @@ account.2.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.2.nat.udp_update_enable= 3 -account.2.nat.udp_update_time= 30 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.2.nat.udp_update_time = 30 account.2.nat.rport= {$yealink_rport} account.2.dtmf.type= {$yealink_dtmf_type} @@ -1248,8 +1248,8 @@ account.3.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.3.nat.udp_update_enable= 3 -account.3.nat.udp_update_time= 30 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.3.nat.udp_update_time = 30 account.3.nat.rport= {$yealink_rport} account.3.dtmf.type= {$yealink_dtmf_type} @@ -1775,8 +1775,8 @@ account.4.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.4.nat.udp_update_enable= 3 -account.4.nat.udp_update_time= 30 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.4.nat.udp_update_time = 30 account.4.nat.rport= {$yealink_rport} account.4.dtmf.type= {$yealink_dtmf_type} @@ -2301,8 +2301,8 @@ account.5.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.5.nat.udp_update_enable= 3 -account.5.nat.udp_update_time= 30 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.5.nat.udp_update_time = 30 account.5.nat.rport= {$yealink_rport} account.5.dtmf.type= {$yealink_dtmf_type} @@ -2841,8 +2841,8 @@ account.6.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.6.nat.udp_update_enable= 3 -account.6.nat.udp_update_time= 30 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.6.nat.udp_update_time = 30 account.6.nat.rport= {$yealink_rport} account.6.dtmf.type= {$yealink_dtmf_type} @@ -3368,8 +3368,8 @@ account.7.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.7.nat.udp_update_enable= 3 -account.7.nat.udp_update_time= 30 +account.7.nat.udp_update_enable = {if isset($account.7.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.7.nat.udp_update_time = 30 account.7.nat.rport= {$yealink_rport} account.7.dtmf.type= {$yealink_dtmf_type} @@ -3895,8 +3895,8 @@ account.8.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.8.nat.udp_update_enable= 3 -account.8.nat.udp_update_time= 30 +account.8.nat.udp_update_enable = {if isset($account.8.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.8.nat.udp_update_time = 30 account.8.nat.rport= {$yealink_rport} account.8.dtmf.type= {$yealink_dtmf_type} @@ -4422,8 +4422,8 @@ account.9.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.9.nat.udp_update_enable= 3 -account.9.nat.udp_update_time= 30 +account.9.nat.udp_update_enable = {if isset($account.9.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.9.nat.udp_update_time = 30 account.9.nat.rport= {$yealink_rport} account.9.dtmf.type= {$yealink_dtmf_type} @@ -4949,8 +4949,8 @@ account.10.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.10.nat.udp_update_enable= 3 -account.10.nat.udp_update_time= 30 +account.10.nat.udp_update_enable = {if isset($account.10.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.10.nat.udp_update_time = 30 account.10.nat.rport= {$yealink_rport} account.10.dtmf.type= {$yealink_dtmf_type} diff --git a/resources/templates/provision/yealink/t53w/{$mac}.cfg b/resources/templates/provision/yealink/t53w/{$mac}.cfg index 9acf1a074..b0407fac3 100644 --- a/resources/templates/provision/yealink/t53w/{$mac}.cfg +++ b/resources/templates/provision/yealink/t53w/{$mac}.cfg @@ -183,8 +183,8 @@ account.1.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.1.nat.udp_update_enable= 3 -account.1.nat.udp_update_time= 30 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.1.nat.udp_update_time = 30 account.1.nat.rport= {$yealink_rport} account.1.dtmf.type= {$yealink_dtmf_type} @@ -723,8 +723,8 @@ account.2.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.2.nat.udp_update_enable= 3 -account.2.nat.udp_update_time= 30 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.2.nat.udp_update_time = 30 account.2.nat.rport= {$yealink_rport} account.2.dtmf.type= {$yealink_dtmf_type} @@ -1251,8 +1251,8 @@ account.3.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.3.nat.udp_update_enable= 3 -account.3.nat.udp_update_time= 30 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.3.nat.udp_update_time = 30 account.3.nat.rport= {$yealink_rport} account.3.dtmf.type= {$yealink_dtmf_type} @@ -1779,8 +1779,8 @@ account.4.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.4.nat.udp_update_enable= 3 -account.4.nat.udp_update_time= 30 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.4.nat.udp_update_time = 30 account.4.nat.rport= {$yealink_rport} account.4.dtmf.type= {$yealink_dtmf_type} @@ -2306,8 +2306,8 @@ account.5.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.5.nat.udp_update_enable= 3 -account.5.nat.udp_update_time= 30 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.5.nat.udp_update_time = 30 account.5.nat.rport= {$yealink_rport} account.5.dtmf.type= {$yealink_dtmf_type} @@ -2847,8 +2847,8 @@ account.6.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.6.nat.udp_update_enable= 3 -account.6.nat.udp_update_time= 30 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.6.nat.udp_update_time = 30 account.6.nat.rport= {$yealink_rport} account.6.dtmf.type= {$yealink_dtmf_type} @@ -3375,8 +3375,8 @@ account.7.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.7.nat.udp_update_enable= 3 -account.7.nat.udp_update_time= 30 +account.7.nat.udp_update_enable = {if isset($account.7.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.7.nat.udp_update_time = 30 account.7.nat.rport= {$yealink_rport} account.7.dtmf.type= {$yealink_dtmf_type} @@ -3903,8 +3903,8 @@ account.8.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.8.nat.udp_update_enable= 3 -account.8.nat.udp_update_time= 30 +account.8.nat.udp_update_enable = {if isset($account.8.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.8.nat.udp_update_time = 30 account.8.nat.rport= {$yealink_rport} account.8.dtmf.type= {$yealink_dtmf_type} @@ -4431,8 +4431,8 @@ account.9.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.9.nat.udp_update_enable= 3 -account.9.nat.udp_update_time= 30 +account.9.nat.udp_update_enable = {if isset($account.9.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.9.nat.udp_update_time = 30 account.9.nat.rport= {$yealink_rport} account.9.dtmf.type= {$yealink_dtmf_type} @@ -4959,8 +4959,8 @@ account.10.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.10.nat.udp_update_enable= 3 -account.10.nat.udp_update_time= 30 +account.10.nat.udp_update_enable = {if isset($account.10.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.10.nat.udp_update_time = 30 account.10.nat.rport= {$yealink_rport} account.10.dtmf.type= {$yealink_dtmf_type} diff --git a/resources/templates/provision/yealink/t54s/{$mac}.cfg b/resources/templates/provision/yealink/t54s/{$mac}.cfg index 48c27929e..580a2203c 100644 --- a/resources/templates/provision/yealink/t54s/{$mac}.cfg +++ b/resources/templates/provision/yealink/t54s/{$mac}.cfg @@ -339,8 +339,8 @@ account.2.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.1.nat.udp_update_enable= 3 -account.1.nat.udp_update_time= 30 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.1.nat.udp_update_time = 30 account.1.nat.rport= {$yealink_rport} account.1.dtmf.type= {$yealink_dtmf_type} @@ -365,8 +365,8 @@ account.1.session_timer.enable= {$yealink_session_timer} account.1.conf_type = {if $nway_conference == 'true'}2{elseif $nway_conference == 'false'}0{/if} account.1.sip_server_type= -account.2.nat.udp_update_enable= 3 -account.2.nat.udp_update_time= 30 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.2.nat.udp_update_time = 30 account.2.nat.rport= {$yealink_rport} account.2.dtmf.type= {$yealink_dtmf_type} diff --git a/resources/templates/provision/yealink/t56a/{$mac}.cfg b/resources/templates/provision/yealink/t56a/{$mac}.cfg index 5fa34e9f3..0e1d2d658 100644 --- a/resources/templates/provision/yealink/t56a/{$mac}.cfg +++ b/resources/templates/provision/yealink/t56a/{$mac}.cfg @@ -111,9 +111,9 @@ account.1.reg_fail_retry_interval = account.1.nat.nat_traversal = {if isset($stun_server)}1{else}0{/if} ##It configures the type of keep-alive packets sent by the phone to the NAT static to keep the communication port open so that NAT can continue to function for account X. -##0-Dsiabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. +##0-Disabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. ##The default value is 1. -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} ##It configures the keep-alive interval (in seconds) for account X. ##The default value is 30.Integer from 15 to 2147483647 @@ -576,13 +576,13 @@ account.2.reg_fail_retry_interval = ##The default value is 0. account.2.nat.nat_traversal = ##It configures the type of keep-alive packets sent by the phone to the NAT static to keep the communication port open so that NAT can continue to function for account X. -##0-Dsiabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. +##0-Disabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. ##The default value is 1. -account.2.nat.udp_update_enable = +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} ##It configures the keep-alive interval (in seconds) for account X. ##The default value is 30.Integer from 15 to 2147483647 -account.2.nat.udp_update_time = +account.2.nat.udp_update_time = 30 ##It enables or disables NAT Rport feature for account X.0-Disabled,1-Enabled ##The default value is 0. @@ -1040,13 +1040,13 @@ account.3.reg_fail_retry_interval = account.3.nat.nat_traversal = ##It configures the type of keep-alive packets sent by the phone to the NAT static to keep the communication port open so that NAT can continue to function for account X. -##0-Dsiabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. +##0-Disabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. ##The default value is 1. -account.3.nat.udp_update_enable = +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} ##It configures the keep-alive interval (in seconds) for account X. ##The default value is 30.Integer from 15 to 2147483647 -account.3.nat.udp_update_time = +account.3.nat.udp_update_time = 30 ##It enables or disables NAT Rport feature for account X.0-Disabled,1-Enabled ##The default value is 0. @@ -1499,13 +1499,13 @@ account.4.reg_fail_retry_interval = ##The default value is 0. account.4.nat.nat_traversal = ##It configures the type of keep-alive packets sent by the phone to the NAT static to keep the communication port open so that NAT can continue to function for account X. -##0-Dsiabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. +##0-Disabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. ##The default value is 1. -account.4.nat.udp_update_enable = +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} ##It configures the keep-alive interval (in seconds) for account X. ##The default value is 30.Integer from 15 to 2147483647 -account.4.nat.udp_update_time = +account.4.nat.udp_update_time = 30 ##It enables or disables NAT Rport feature for account X.0-Disabled,1-Enabled ##The default value is 0. @@ -1966,13 +1966,13 @@ account.5.reg_fail_retry_interval = account.5.nat.nat_traversal = ##It configures the type of keep-alive packets sent by the phone to the NAT static to keep the communication port open so that NAT can continue to function for account X. -##0-Dsiabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. +##0-Disabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. ##The default value is 1. -account.5.nat.udp_update_enable = +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} ##It configures the keep-alive interval (in seconds) for account X. ##The default value is 30.Integer from 15 to 2147483647 -account.5.nat.udp_update_time = +account.5.nat.udp_update_time = 30 ##It enables or disables NAT Rport feature for account X.0-Disabled,1-Enabled ##The default value is 0. @@ -2437,13 +2437,13 @@ account.6.nat.nat_traversal = ##It configures the type of keep-alive packets sent by the phone to the NAT static to keep the communication port open so that NAT can continue to function for account X. -##0-Dsiabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. +##0-Disabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. ##The default value is 1. -account.6.nat.udp_update_enable = +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} ##It configures the keep-alive interval (in seconds) for account X. ##The default value is 30.Integer from 15 to 2147483647 -account.6.nat.udp_update_time = +account.6.nat.udp_update_time = 30 ##It enables or disables NAT Rport feature for account X.0-Disabled,1-Enabled ##The default value is 0. diff --git a/resources/templates/provision/yealink/t57w/{$mac}.cfg b/resources/templates/provision/yealink/t57w/{$mac}.cfg index e2f64aa81..c65392b85 100644 --- a/resources/templates/provision/yealink/t57w/{$mac}.cfg +++ b/resources/templates/provision/yealink/t57w/{$mac}.cfg @@ -183,8 +183,8 @@ account.1.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.1.nat.udp_update_enable= 3 -account.1.nat.udp_update_time= 30 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.1.nat.udp_update_time = 30 account.1.nat.rport= {$yealink_rport} account.1.dtmf.type= {$yealink_dtmf_type} @@ -722,8 +722,8 @@ account.2.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.2.nat.udp_update_enable= 3 -account.2.nat.udp_update_time= 30 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.2.nat.udp_update_time = 30 account.2.nat.rport= {$yealink_rport} account.2.dtmf.type= {$yealink_dtmf_type} @@ -1249,8 +1249,8 @@ account.3.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.3.nat.udp_update_enable= 3 -account.3.nat.udp_update_time= 30 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.3.nat.udp_update_time = 30 account.3.nat.rport= {$yealink_rport} account.3.dtmf.type= {$yealink_dtmf_type} @@ -1776,8 +1776,8 @@ account.4.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.4.nat.udp_update_enable= 3 -account.4.nat.udp_update_time= 30 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.4.nat.udp_update_time = 30 account.4.nat.rport= {$yealink_rport} account.4.dtmf.type= {$yealink_dtmf_type} @@ -2302,8 +2302,8 @@ account.5.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.5.nat.udp_update_enable= 3 -account.5.nat.udp_update_time= 30 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.5.nat.udp_update_time = 30 account.5.nat.rport= {$yealink_rport} account.5.dtmf.type= {$yealink_dtmf_type} @@ -2842,8 +2842,8 @@ account.6.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.6.nat.udp_update_enable= 3 -account.6.nat.udp_update_time= 30 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.6.nat.udp_update_time = 30 account.6.nat.rport= {$yealink_rport} account.6.dtmf.type= {$yealink_dtmf_type} @@ -3369,8 +3369,8 @@ account.7.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.7.nat.udp_update_enable= 3 -account.7.nat.udp_update_time= 30 +account.7.nat.udp_update_enable = {if isset($account.7.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.7.nat.udp_update_time = 30 account.7.nat.rport= {$yealink_rport} account.7.dtmf.type= {$yealink_dtmf_type} @@ -3896,8 +3896,8 @@ account.8.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.8.nat.udp_update_enable= 3 -account.8.nat.udp_update_time= 30 +account.8.nat.udp_update_enable = {if isset($account.8.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.8.nat.udp_update_time = 30 account.8.nat.rport= {$yealink_rport} account.8.dtmf.type= {$yealink_dtmf_type} @@ -4423,8 +4423,8 @@ account.9.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.9.nat.udp_update_enable= 3 -account.9.nat.udp_update_time= 30 +account.9.nat.udp_update_enable = {if isset($account.9.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.9.nat.udp_update_time = 30 account.9.nat.rport= {$yealink_rport} account.9.dtmf.type= {$yealink_dtmf_type} @@ -4950,8 +4950,8 @@ account.10.auto_answer= ################################################################ # Account Advanced ## ################################################################ -account.10.nat.udp_update_enable= 3 -account.10.nat.udp_update_time= 30 +account.10.nat.udp_update_enable = {if isset($account.10.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} +account.10.nat.udp_update_time = 30 account.10.nat.rport= {$yealink_rport} account.10.dtmf.type= {$yealink_dtmf_type} diff --git a/resources/templates/provision/yealink/t58a/{$mac}.cfg b/resources/templates/provision/yealink/t58a/{$mac}.cfg index 5fa34e9f3..0e1d2d658 100644 --- a/resources/templates/provision/yealink/t58a/{$mac}.cfg +++ b/resources/templates/provision/yealink/t58a/{$mac}.cfg @@ -111,9 +111,9 @@ account.1.reg_fail_retry_interval = account.1.nat.nat_traversal = {if isset($stun_server)}1{else}0{/if} ##It configures the type of keep-alive packets sent by the phone to the NAT static to keep the communication port open so that NAT can continue to function for account X. -##0-Dsiabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. +##0-Disabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. ##The default value is 1. -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} ##It configures the keep-alive interval (in seconds) for account X. ##The default value is 30.Integer from 15 to 2147483647 @@ -576,13 +576,13 @@ account.2.reg_fail_retry_interval = ##The default value is 0. account.2.nat.nat_traversal = ##It configures the type of keep-alive packets sent by the phone to the NAT static to keep the communication port open so that NAT can continue to function for account X. -##0-Dsiabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. +##0-Disabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. ##The default value is 1. -account.2.nat.udp_update_enable = +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} ##It configures the keep-alive interval (in seconds) for account X. ##The default value is 30.Integer from 15 to 2147483647 -account.2.nat.udp_update_time = +account.2.nat.udp_update_time = 30 ##It enables or disables NAT Rport feature for account X.0-Disabled,1-Enabled ##The default value is 0. @@ -1040,13 +1040,13 @@ account.3.reg_fail_retry_interval = account.3.nat.nat_traversal = ##It configures the type of keep-alive packets sent by the phone to the NAT static to keep the communication port open so that NAT can continue to function for account X. -##0-Dsiabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. +##0-Disabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. ##The default value is 1. -account.3.nat.udp_update_enable = +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} ##It configures the keep-alive interval (in seconds) for account X. ##The default value is 30.Integer from 15 to 2147483647 -account.3.nat.udp_update_time = +account.3.nat.udp_update_time = 30 ##It enables or disables NAT Rport feature for account X.0-Disabled,1-Enabled ##The default value is 0. @@ -1499,13 +1499,13 @@ account.4.reg_fail_retry_interval = ##The default value is 0. account.4.nat.nat_traversal = ##It configures the type of keep-alive packets sent by the phone to the NAT static to keep the communication port open so that NAT can continue to function for account X. -##0-Dsiabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. +##0-Disabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. ##The default value is 1. -account.4.nat.udp_update_enable = +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} ##It configures the keep-alive interval (in seconds) for account X. ##The default value is 30.Integer from 15 to 2147483647 -account.4.nat.udp_update_time = +account.4.nat.udp_update_time = 30 ##It enables or disables NAT Rport feature for account X.0-Disabled,1-Enabled ##The default value is 0. @@ -1966,13 +1966,13 @@ account.5.reg_fail_retry_interval = account.5.nat.nat_traversal = ##It configures the type of keep-alive packets sent by the phone to the NAT static to keep the communication port open so that NAT can continue to function for account X. -##0-Dsiabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. +##0-Disabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. ##The default value is 1. -account.5.nat.udp_update_enable = +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} ##It configures the keep-alive interval (in seconds) for account X. ##The default value is 30.Integer from 15 to 2147483647 -account.5.nat.udp_update_time = +account.5.nat.udp_update_time = 30 ##It enables or disables NAT Rport feature for account X.0-Disabled,1-Enabled ##The default value is 0. @@ -2437,13 +2437,13 @@ account.6.nat.nat_traversal = ##It configures the type of keep-alive packets sent by the phone to the NAT static to keep the communication port open so that NAT can continue to function for account X. -##0-Dsiabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. +##0-Disabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. ##The default value is 1. -account.6.nat.udp_update_enable = +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} ##It configures the keep-alive interval (in seconds) for account X. ##The default value is 30.Integer from 15 to 2147483647 -account.6.nat.udp_update_time = +account.6.nat.udp_update_time = 30 ##It enables or disables NAT Rport feature for account X.0-Disabled,1-Enabled ##The default value is 0. diff --git a/resources/templates/provision/yealink/t58v/{$mac}.cfg b/resources/templates/provision/yealink/t58v/{$mac}.cfg index 97f7edaa4..a46901378 100644 --- a/resources/templates/provision/yealink/t58v/{$mac}.cfg +++ b/resources/templates/provision/yealink/t58v/{$mac}.cfg @@ -117,7 +117,7 @@ account.{$row.line_number}.reg_fail_retry_interval = account.{$row.line_number}.nat.nat_traversal = {if isset($stun_server)}1{else}0{/if} ##It configures the type of keep-alive packets sent by the phone to the NAT static to keep the communication port open so that NAT can continue to function for account X. -##0-Dsiabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. +##0-Disabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. ##The default value is 1. account.{$row.line_number}.nat.udp_update_enable = 3 diff --git a/resources/templates/provision/yealink/vp530/{$mac}.cfg b/resources/templates/provision/yealink/vp530/{$mac}.cfg index 1bf77c232..5b35b47dd 100644 --- a/resources/templates/provision/yealink/vp530/{$mac}.cfg +++ b/resources/templates/provision/yealink/vp530/{$mac}.cfg @@ -137,10 +137,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = 30 +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport_1} @@ -635,10 +635,10 @@ account.2.nat.stun_server = {$stun_server} account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.2.nat.udp_update_enable = 1 +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = 30 +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport_2} @@ -1144,10 +1144,10 @@ account.3.nat.stun_server = {$stun_server} account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.3.nat.udp_update_enable = 1 +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = 30 +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport_3} @@ -1636,10 +1636,10 @@ account.4.nat.stun_server = {$stun_server} account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.4.nat.udp_update_enable = 1 +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = 30 +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport_4} @@ -2128,10 +2128,10 @@ account.5.nat.stun_server = {$stun_server} account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.5.nat.udp_update_enable = 1 +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = 30 +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport_5} @@ -2619,10 +2619,10 @@ account.6.nat.stun_server = account.6.nat.stun_port = 3478 #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.6.nat.udp_update_enable = 1 +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = 30 +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport_6} diff --git a/resources/templates/provision/yealink/vp59/{$mac}.cfg b/resources/templates/provision/yealink/vp59/{$mac}.cfg index b1b5a7f10..dcd54ad97 100644 --- a/resources/templates/provision/yealink/vp59/{$mac}.cfg +++ b/resources/templates/provision/yealink/vp59/{$mac}.cfg @@ -108,7 +108,7 @@ account.{$row.line_number}.srtp_encryption = account.{$row.line_number}.nat.nat_traversal = {if isset($stun_server)}1{else}0{/if} ##It configures the type of keep-alive packets sent by the phone to the NAT static to keep the communication port open so that NAT can continue to function for account X. -##0-Dsiabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. +##0-Disabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. ##The default value is 1. account.{$row.line_number}.nat.udp_update_enable = 3 diff --git a/resources/templates/provision/yealink/w52p/{$mac}.cfg b/resources/templates/provision/yealink/w52p/{$mac}.cfg index 2f1a77748..40072d908 100644 --- a/resources/templates/provision/yealink/w52p/{$mac}.cfg +++ b/resources/templates/provision/yealink/w52p/{$mac}.cfg @@ -176,10 +176,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -496,11 +496,11 @@ account.2.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.2.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -769,11 +769,11 @@ account.3.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.3.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -1043,11 +1043,11 @@ account.4.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.4.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -1317,11 +1317,11 @@ account.5.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.5.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/w56p/{$mac}.cfg b/resources/templates/provision/yealink/w56p/{$mac}.cfg index 7ee2288ff..60a83c4e1 100644 --- a/resources/templates/provision/yealink/w56p/{$mac}.cfg +++ b/resources/templates/provision/yealink/w56p/{$mac}.cfg @@ -176,10 +176,10 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.1.nat.udp_update_time = +account.1.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.1.nat.rport = {$yealink_rport} @@ -481,11 +481,11 @@ account.2.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.2.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -739,11 +739,11 @@ account.3.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.3.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -998,11 +998,11 @@ account.4.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.4.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -1257,11 +1257,11 @@ account.5.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.5.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/w60b/{$mac}.cfg b/resources/templates/provision/yealink/w60b/{$mac}.cfg index 8890e0bac..b51a82e7d 100644 --- a/resources/templates/provision/yealink/w60b/{$mac}.cfg +++ b/resources/templates/provision/yealink/w60b/{$mac}.cfg @@ -147,7 +147,7 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}{""} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.1.nat.udp_update_time = 30 @@ -440,11 +440,11 @@ account.2.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}{""} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.2.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -686,11 +686,11 @@ account.3.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}{""} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.3.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -931,11 +931,11 @@ account.4.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}{""} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.4.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -1178,11 +1178,11 @@ account.5.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}{""} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.5.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -1443,11 +1443,11 @@ account.6.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.6.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}{""} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.6.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} @@ -1708,11 +1708,11 @@ account.7.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.7.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}{""} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.7.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.7.nat.udp_update_enable = {if isset($account.7.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.7.nat.udp_update_time = +account.7.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.7.nat.rport = {$yealink_rport} @@ -1973,11 +1973,11 @@ account.8.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.8.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}{""} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.8.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.8.nat.udp_update_enable = {if isset($account.8.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.8.nat.udp_update_time = +account.8.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.8.nat.rport = {$yealink_rport} diff --git a/resources/templates/provision/yealink/w7xp/{$mac}.cfg b/resources/templates/provision/yealink/w7xp/{$mac}.cfg index 8890e0bac..b51a82e7d 100644 --- a/resources/templates/provision/yealink/w7xp/{$mac}.cfg +++ b/resources/templates/provision/yealink/w7xp/{$mac}.cfg @@ -147,7 +147,7 @@ account.1.nat.stun_server = {$stun_server} account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}{""} #Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; -account.1.nat.udp_update_enable = 3 +account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. account.1.nat.udp_update_time = 30 @@ -440,11 +440,11 @@ account.2.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}{""} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.2.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.2.nat.udp_update_time = +account.2.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.2.nat.rport = {$yealink_rport} @@ -686,11 +686,11 @@ account.3.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}{""} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.3.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.3.nat.udp_update_time = +account.3.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.3.nat.rport = {$yealink_rport} @@ -931,11 +931,11 @@ account.4.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}{""} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.4.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.4.nat.udp_update_time = +account.4.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.4.nat.rport = {$yealink_rport} @@ -1178,11 +1178,11 @@ account.5.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}{""} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.5.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.5.nat.udp_update_time = +account.5.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.5.nat.rport = {$yealink_rport} @@ -1443,11 +1443,11 @@ account.6.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.6.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}{""} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.6.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.6.nat.udp_update_enable = {if isset($account.6.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.6.nat.udp_update_time = +account.6.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.6.nat.rport = {$yealink_rport} @@ -1708,11 +1708,11 @@ account.7.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.7.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}{""} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.7.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.7.nat.udp_update_enable = {if isset($account.7.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.7.nat.udp_update_time = +account.7.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.7.nat.rport = {$yealink_rport} @@ -1973,11 +1973,11 @@ account.8.nat.stun_server = {$stun_server} #Configure the STUN server port, the default value is 3478. account.8.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}{""} -#Enable or disable the NAT keep-alive; 0-Disabled, 1-Enabled (default); -account.8.nat.udp_update_enable = +#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify; +account.8.nat.udp_update_enable = {if isset($account.8.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""} #Specify the keep-alive interval (in seconds), the default value is 30. -account.8.nat.udp_update_time = +account.8.nat.udp_update_time = 30 #Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled; account.8.nat.rport = {$yealink_rport}