From 324468c3fdd5c65b4c2a99974f5fc850c3ea83dc Mon Sep 17 00:00:00 2001 From: demonspork Date: Fri, 9 Oct 2020 23:15:31 -0500 Subject: [PATCH] Add grandstream_speaker_ring_volume to all templates Excludes the P8352 value if the default setting grandstream_speaker_ring_volume is unset. Depends on PR #5522 Before anyone asks, Mandatory just means that the variable must be valid, not that it must be included in every XML download. The phone already has a valid value in its internal settings, so as long as we stay safe from setting it to an empty value or outside of the range of 0-7, we are safe. Excluding it is a valid option, which is also true for all settings labelled Mandatory in the Grandstream templates. --- resources/templates/provision/grandstream/grp2612/{$mac}.xml | 4 +++- resources/templates/provision/grandstream/grp2612w/{$mac}.xml | 4 +++- resources/templates/provision/grandstream/grp2613/{$mac}.xml | 4 +++- resources/templates/provision/grandstream/grp2614/{$mac}.xml | 4 +++- resources/templates/provision/grandstream/grp2615/{$mac}.xml | 4 +++- resources/templates/provision/grandstream/grp2616/{$mac}.xml | 4 +++- resources/templates/provision/grandstream/grp26xx/{$mac}.xml | 4 +++- resources/templates/provision/grandstream/gxp2130/{$mac}.xml | 4 +++- resources/templates/provision/grandstream/gxp2135/{$mac}.xml | 4 +++- resources/templates/provision/grandstream/gxp2140/{$mac}.xml | 4 +++- resources/templates/provision/grandstream/gxp2160/{$mac}.xml | 4 +++- resources/templates/provision/grandstream/gxp2170/{$mac}.xml | 4 +++- 12 files changed, 36 insertions(+), 12 deletions(-) diff --git a/resources/templates/provision/grandstream/grp2612/{$mac}.xml b/resources/templates/provision/grandstream/grp2612/{$mac}.xml index 9a9f476388..813079b683 100644 --- a/resources/templates/provision/grandstream/grp2612/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2612/{$mac}.xml @@ -4287,7 +4287,9 @@ - 5 +{if isset($grandstream_speaker_ring_volume)} + {$grandstream_speaker_ring_volume} +{/if} diff --git a/resources/templates/provision/grandstream/grp2612w/{$mac}.xml b/resources/templates/provision/grandstream/grp2612w/{$mac}.xml index 6be679650c..3a9f3d09cc 100644 --- a/resources/templates/provision/grandstream/grp2612w/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2612w/{$mac}.xml @@ -4382,7 +4382,9 @@ - 5 +{if isset($grandstream_speaker_ring_volume)} + {$grandstream_speaker_ring_volume} +{/if} diff --git a/resources/templates/provision/grandstream/grp2613/{$mac}.xml b/resources/templates/provision/grandstream/grp2613/{$mac}.xml index 74ee123c09..c5890b3ba7 100644 --- a/resources/templates/provision/grandstream/grp2613/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2613/{$mac}.xml @@ -5102,7 +5102,9 @@ - 5 +{if isset($grandstream_speaker_ring_volume)} + {$grandstream_speaker_ring_volume} +{/if} diff --git a/resources/templates/provision/grandstream/grp2614/{$mac}.xml b/resources/templates/provision/grandstream/grp2614/{$mac}.xml index 53e722a66d..29ca189204 100644 --- a/resources/templates/provision/grandstream/grp2614/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2614/{$mac}.xml @@ -6431,7 +6431,9 @@ - 5 +{if isset($grandstream_speaker_ring_volume)} + {$grandstream_speaker_ring_volume} +{/if} diff --git a/resources/templates/provision/grandstream/grp2615/{$mac}.xml b/resources/templates/provision/grandstream/grp2615/{$mac}.xml index 85b569de3d..7e37af59d2 100644 --- a/resources/templates/provision/grandstream/grp2615/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2615/{$mac}.xml @@ -7351,7 +7351,9 @@ - 5 +{if isset($grandstream_speaker_ring_volume)} + {$grandstream_speaker_ring_volume} +{/if} diff --git a/resources/templates/provision/grandstream/grp2616/{$mac}.xml b/resources/templates/provision/grandstream/grp2616/{$mac}.xml index ec271a349c..db7a8d83d9 100644 --- a/resources/templates/provision/grandstream/grp2616/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2616/{$mac}.xml @@ -8330,7 +8330,9 @@ - 5 +{if isset($grandstream_speaker_ring_volume)} + {$grandstream_speaker_ring_volume} +{/if} diff --git a/resources/templates/provision/grandstream/grp26xx/{$mac}.xml b/resources/templates/provision/grandstream/grp26xx/{$mac}.xml index e233d17ed9..c45fbbf183 100644 --- a/resources/templates/provision/grandstream/grp26xx/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp26xx/{$mac}.xml @@ -7625,7 +7625,9 @@ - 5 +{if isset($grandstream_speaker_ring_volume)} + {$grandstream_speaker_ring_volume} +{/if} diff --git a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml index 7562136f62..c240ea921f 100644 --- a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml @@ -8263,7 +8263,9 @@ - 5 +{if isset($grandstream_speaker_ring_volume)} + {$grandstream_speaker_ring_volume} +{/if} diff --git a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml index 37d347d391..efaf755057 100644 --- a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml @@ -8256,7 +8256,9 @@ - 5 +{if isset($grandstream_speaker_ring_volume)} + {$grandstream_speaker_ring_volume} +{/if} diff --git a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml index 37d347d391..efaf755057 100644 --- a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml @@ -8256,7 +8256,9 @@ - 5 +{if isset($grandstream_speaker_ring_volume)} + {$grandstream_speaker_ring_volume} +{/if} diff --git a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml index b374ee697d..611dc4afc2 100644 --- a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml @@ -8268,7 +8268,9 @@ - 5 +{if isset($grandstream_speaker_ring_volume)} + {$grandstream_speaker_ring_volume} +{/if} diff --git a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml index 9af6a9d66f..e350b82463 100644 --- a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml @@ -8256,7 +8256,9 @@ - 5 +{if isset($grandstream_speaker_ring_volume)} + {$grandstream_speaker_ring_volume} +{/if}