From c4f51138d55adcbf190d41efeed5ce4ab75c8559 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 26 Aug 2025 16:50:42 -0600 Subject: [PATCH] Fix the daylight_savings_enabled for Polycom --- resources/templates/provision/poly/edge-e550/{$mac}.cfg | 2 +- resources/templates/provision/polycom/4.x/{$mac}.cfg | 2 +- resources/templates/provision/polycom/5.x/{$mac}.cfg | 2 +- resources/templates/provision/polycom/6.x/{$mac}.cfg | 2 +- resources/templates/provision/polycom/duo/{$mac}.cfg | 2 +- resources/templates/provision/polycom/ip321/{$mac}.cfg | 2 +- resources/templates/provision/polycom/ip331/{$mac}.cfg | 2 +- resources/templates/provision/polycom/ip335/{$mac}.cfg | 2 +- resources/templates/provision/polycom/ip450/{$mac}.cfg | 2 +- resources/templates/provision/polycom/ip5000/{$mac}.cfg | 2 +- resources/templates/provision/polycom/ip550/{$mac}.cfg | 2 +- resources/templates/provision/polycom/ip560/{$mac}.cfg | 2 +- resources/templates/provision/polycom/ip6000/{$mac}.cfg | 2 +- resources/templates/provision/polycom/ip650/{$mac}.cfg | 2 +- resources/templates/provision/polycom/ip670/{$mac}.cfg | 2 +- resources/templates/provision/polycom/ip7000/{$mac}.cfg | 2 +- resources/templates/provision/polycom/vvx101/{$mac}.cfg | 2 +- resources/templates/provision/polycom/vvx150/{$mac}.cfg | 2 +- resources/templates/provision/polycom/vvx1500/{$mac}.cfg | 2 +- resources/templates/provision/polycom/vvx201/{$mac}.cfg | 2 +- resources/templates/provision/polycom/vvx250/{$mac}.cfg | 2 +- resources/templates/provision/polycom/vvx300/{$mac}.cfg | 2 +- resources/templates/provision/polycom/vvx301/{$mac}.cfg | 2 +- resources/templates/provision/polycom/vvx310/{$mac}.cfg | 2 +- resources/templates/provision/polycom/vvx311/{$mac}.cfg | 2 +- resources/templates/provision/polycom/vvx350/{$mac}.cfg | 2 +- resources/templates/provision/polycom/vvx400/{$mac}.cfg | 2 +- resources/templates/provision/polycom/vvx401/{$mac}.cfg | 2 +- resources/templates/provision/polycom/vvx410/{$mac}.cfg | 2 +- resources/templates/provision/polycom/vvx411/{$mac}.cfg | 2 +- resources/templates/provision/polycom/vvx450/{$mac}.cfg | 2 +- resources/templates/provision/polycom/vvx500/{$mac}.cfg | 2 +- resources/templates/provision/polycom/vvx501/{$mac}.cfg | 2 +- resources/templates/provision/polycom/vvx600/{$mac}.cfg | 2 +- resources/templates/provision/polycom/vvx601/{$mac}.cfg | 2 +- 35 files changed, 35 insertions(+), 35 deletions(-) diff --git a/resources/templates/provision/poly/edge-e550/{$mac}.cfg b/resources/templates/provision/poly/edge-e550/{$mac}.cfg index fb76df9d58..2b2a2f4de0 100644 --- a/resources/templates/provision/poly/edge-e550/{$mac}.cfg +++ b/resources/templates/provision/poly/edge-e550/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/4.x/{$mac}.cfg b/resources/templates/provision/polycom/4.x/{$mac}.cfg index d40c29c3d2..defa39424f 100644 --- a/resources/templates/provision/polycom/4.x/{$mac}.cfg +++ b/resources/templates/provision/polycom/4.x/{$mac}.cfg @@ -115,7 +115,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/5.x/{$mac}.cfg b/resources/templates/provision/polycom/5.x/{$mac}.cfg index 27760de660..88e7a300d5 100644 --- a/resources/templates/provision/polycom/5.x/{$mac}.cfg +++ b/resources/templates/provision/polycom/5.x/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/6.x/{$mac}.cfg b/resources/templates/provision/polycom/6.x/{$mac}.cfg index 27760de660..88e7a300d5 100644 --- a/resources/templates/provision/polycom/6.x/{$mac}.cfg +++ b/resources/templates/provision/polycom/6.x/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/duo/{$mac}.cfg b/resources/templates/provision/polycom/duo/{$mac}.cfg index d5c441f5f8..15f04a4546 100644 --- a/resources/templates/provision/polycom/duo/{$mac}.cfg +++ b/resources/templates/provision/polycom/duo/{$mac}.cfg @@ -115,7 +115,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/ip321/{$mac}.cfg b/resources/templates/provision/polycom/ip321/{$mac}.cfg index 2be21b54e1..9b4c6e5d18 100644 --- a/resources/templates/provision/polycom/ip321/{$mac}.cfg +++ b/resources/templates/provision/polycom/ip321/{$mac}.cfg @@ -115,7 +115,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/ip331/{$mac}.cfg b/resources/templates/provision/polycom/ip331/{$mac}.cfg index ca22da8d6b..80143f0add 100644 --- a/resources/templates/provision/polycom/ip331/{$mac}.cfg +++ b/resources/templates/provision/polycom/ip331/{$mac}.cfg @@ -115,7 +115,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/ip335/{$mac}.cfg b/resources/templates/provision/polycom/ip335/{$mac}.cfg index ca22da8d6b..80143f0add 100644 --- a/resources/templates/provision/polycom/ip335/{$mac}.cfg +++ b/resources/templates/provision/polycom/ip335/{$mac}.cfg @@ -115,7 +115,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/ip450/{$mac}.cfg b/resources/templates/provision/polycom/ip450/{$mac}.cfg index 164944e68b..da02affb55 100644 --- a/resources/templates/provision/polycom/ip450/{$mac}.cfg +++ b/resources/templates/provision/polycom/ip450/{$mac}.cfg @@ -115,7 +115,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/ip5000/{$mac}.cfg b/resources/templates/provision/polycom/ip5000/{$mac}.cfg index f43c76cf30..a3d83b716c 100644 --- a/resources/templates/provision/polycom/ip5000/{$mac}.cfg +++ b/resources/templates/provision/polycom/ip5000/{$mac}.cfg @@ -115,7 +115,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/ip550/{$mac}.cfg b/resources/templates/provision/polycom/ip550/{$mac}.cfg index 138142faff..a9368d61da 100644 --- a/resources/templates/provision/polycom/ip550/{$mac}.cfg +++ b/resources/templates/provision/polycom/ip550/{$mac}.cfg @@ -115,7 +115,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/ip560/{$mac}.cfg b/resources/templates/provision/polycom/ip560/{$mac}.cfg index 32e8b0835e..978bdc0e66 100644 --- a/resources/templates/provision/polycom/ip560/{$mac}.cfg +++ b/resources/templates/provision/polycom/ip560/{$mac}.cfg @@ -115,7 +115,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/ip6000/{$mac}.cfg b/resources/templates/provision/polycom/ip6000/{$mac}.cfg index 22694682c4..ee3df75c56 100644 --- a/resources/templates/provision/polycom/ip6000/{$mac}.cfg +++ b/resources/templates/provision/polycom/ip6000/{$mac}.cfg @@ -115,7 +115,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/ip650/{$mac}.cfg b/resources/templates/provision/polycom/ip650/{$mac}.cfg index 6628371a46..fa3be9aa1b 100644 --- a/resources/templates/provision/polycom/ip650/{$mac}.cfg +++ b/resources/templates/provision/polycom/ip650/{$mac}.cfg @@ -115,7 +115,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/ip670/{$mac}.cfg b/resources/templates/provision/polycom/ip670/{$mac}.cfg index 9e60259c20..2273cea062 100644 --- a/resources/templates/provision/polycom/ip670/{$mac}.cfg +++ b/resources/templates/provision/polycom/ip670/{$mac}.cfg @@ -115,7 +115,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/ip7000/{$mac}.cfg b/resources/templates/provision/polycom/ip7000/{$mac}.cfg index 39c6439b98..51e0f94dbb 100644 --- a/resources/templates/provision/polycom/ip7000/{$mac}.cfg +++ b/resources/templates/provision/polycom/ip7000/{$mac}.cfg @@ -115,7 +115,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/vvx101/{$mac}.cfg b/resources/templates/provision/polycom/vvx101/{$mac}.cfg index 37eee064f6..25375b6955 100644 --- a/resources/templates/provision/polycom/vvx101/{$mac}.cfg +++ b/resources/templates/provision/polycom/vvx101/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/vvx150/{$mac}.cfg b/resources/templates/provision/polycom/vvx150/{$mac}.cfg index 0830dedc81..ba5195201f 100644 --- a/resources/templates/provision/polycom/vvx150/{$mac}.cfg +++ b/resources/templates/provision/polycom/vvx150/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/vvx1500/{$mac}.cfg b/resources/templates/provision/polycom/vvx1500/{$mac}.cfg index be43928552..1acf6be295 100644 --- a/resources/templates/provision/polycom/vvx1500/{$mac}.cfg +++ b/resources/templates/provision/polycom/vvx1500/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/vvx201/{$mac}.cfg b/resources/templates/provision/polycom/vvx201/{$mac}.cfg index 1429fd7245..a1f1761606 100644 --- a/resources/templates/provision/polycom/vvx201/{$mac}.cfg +++ b/resources/templates/provision/polycom/vvx201/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/vvx250/{$mac}.cfg b/resources/templates/provision/polycom/vvx250/{$mac}.cfg index 8f946e8132..8062b7e009 100644 --- a/resources/templates/provision/polycom/vvx250/{$mac}.cfg +++ b/resources/templates/provision/polycom/vvx250/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/vvx300/{$mac}.cfg b/resources/templates/provision/polycom/vvx300/{$mac}.cfg index a55272ce89..7c677fe328 100644 --- a/resources/templates/provision/polycom/vvx300/{$mac}.cfg +++ b/resources/templates/provision/polycom/vvx300/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/vvx301/{$mac}.cfg b/resources/templates/provision/polycom/vvx301/{$mac}.cfg index ee3161b795..2504ab61f2 100644 --- a/resources/templates/provision/polycom/vvx301/{$mac}.cfg +++ b/resources/templates/provision/polycom/vvx301/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/vvx310/{$mac}.cfg b/resources/templates/provision/polycom/vvx310/{$mac}.cfg index a9391040b1..ac599147df 100644 --- a/resources/templates/provision/polycom/vvx310/{$mac}.cfg +++ b/resources/templates/provision/polycom/vvx310/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/vvx311/{$mac}.cfg b/resources/templates/provision/polycom/vvx311/{$mac}.cfg index 4c042ae0a9..952cb7a966 100644 --- a/resources/templates/provision/polycom/vvx311/{$mac}.cfg +++ b/resources/templates/provision/polycom/vvx311/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/vvx350/{$mac}.cfg b/resources/templates/provision/polycom/vvx350/{$mac}.cfg index 5bdc5aa44d..4cc3deef87 100644 --- a/resources/templates/provision/polycom/vvx350/{$mac}.cfg +++ b/resources/templates/provision/polycom/vvx350/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/vvx400/{$mac}.cfg b/resources/templates/provision/polycom/vvx400/{$mac}.cfg index 9b160250b9..9359491cc6 100644 --- a/resources/templates/provision/polycom/vvx400/{$mac}.cfg +++ b/resources/templates/provision/polycom/vvx400/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/vvx401/{$mac}.cfg b/resources/templates/provision/polycom/vvx401/{$mac}.cfg index 8c67abd087..925b9281d9 100644 --- a/resources/templates/provision/polycom/vvx401/{$mac}.cfg +++ b/resources/templates/provision/polycom/vvx401/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/vvx410/{$mac}.cfg b/resources/templates/provision/polycom/vvx410/{$mac}.cfg index 4f954d3119..9dd56ac7ae 100644 --- a/resources/templates/provision/polycom/vvx410/{$mac}.cfg +++ b/resources/templates/provision/polycom/vvx410/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/vvx411/{$mac}.cfg b/resources/templates/provision/polycom/vvx411/{$mac}.cfg index 48af5ebe9e..ddd8369fba 100644 --- a/resources/templates/provision/polycom/vvx411/{$mac}.cfg +++ b/resources/templates/provision/polycom/vvx411/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/vvx450/{$mac}.cfg b/resources/templates/provision/polycom/vvx450/{$mac}.cfg index 2a8a66c0bc..524d84862d 100644 --- a/resources/templates/provision/polycom/vvx450/{$mac}.cfg +++ b/resources/templates/provision/polycom/vvx450/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/vvx500/{$mac}.cfg b/resources/templates/provision/polycom/vvx500/{$mac}.cfg index 1abcee91f4..5002e36d30 100644 --- a/resources/templates/provision/polycom/vvx500/{$mac}.cfg +++ b/resources/templates/provision/polycom/vvx500/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/vvx501/{$mac}.cfg b/resources/templates/provision/polycom/vvx501/{$mac}.cfg index de3d1e3c31..be909bdfdc 100644 --- a/resources/templates/provision/polycom/vvx501/{$mac}.cfg +++ b/resources/templates/provision/polycom/vvx501/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/vvx600/{$mac}.cfg b/resources/templates/provision/polycom/vvx600/{$mac}.cfg index ecf5cff69f..77f8121759 100644 --- a/resources/templates/provision/polycom/vvx600/{$mac}.cfg +++ b/resources/templates/provision/polycom/vvx600/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0" diff --git a/resources/templates/provision/polycom/vvx601/{$mac}.cfg b/resources/templates/provision/polycom/vvx601/{$mac}.cfg index 4f9bfe1c4c..07caed48a8 100644 --- a/resources/templates/provision/polycom/vvx601/{$mac}.cfg +++ b/resources/templates/provision/polycom/vvx601/{$mac}.cfg @@ -126,7 +126,7 @@ tcpIpApp.sntp.address="{$ntp_server_primary}" tcpIpApp.sntp.gmtOffset.overrideDHCP="1" tcpIpApp.sntp.gmtOffset="{$polycom_gmt_offset}" - {if $daylight_savings_enabled} + {if filter_var($daylight_savings_enabled, FILTER_VALIDATE_BOOLEAN)} tcpIpApp.sntp.daylightSavings.enable="1" {else} tcpIpApp.sntp.daylightSavings.enable="0"