diff --git a/app/grandstream/app_config.php b/app/grandstream/app_config.php index 5f2533113..8fc58d76a 100644 --- a/app/grandstream/app_config.php +++ b/app/grandstream/app_config.php @@ -326,6 +326,14 @@ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false"; $apps[$x]['default_settings'][$y]['default_setting_description'] = "HEADSET Key Mode. 0 - Default Mode, 1 - Toggle Headset/Speaker. Default is 0"; $y++; + $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "c245a640-9caa-472a-9e5a-f2f0392c40ff"; + $apps[$x]['default_settings'][$y]['default_setting_category'] = "provision"; + $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "grandstream_headset_ring"; + $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric"; + $apps[$x]['default_settings'][$y]['default_setting_value'] = "0"; + $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true"; + $apps[$x]['default_settings'][$y]['default_setting_description'] = "Always Ring Speaker. 0 - No, 1 - Yes both, 2 - Yes Speaker Only. Default is 0"; + $y++; $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "453ec939-ef61-4ecd-ad0a-31905153efd8"; $apps[$x]['default_settings'][$y]['default_setting_category'] = "provision"; $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "grandstream_auto_attended_transfer"; diff --git a/resources/templates/provision/grandstream/grp2612/{$mac}.xml b/resources/templates/provision/grandstream/grp2612/{$mac}.xml index dbfe571a9..ec0ce5480 100644 --- a/resources/templates/provision/grandstream/grp2612/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2612/{$mac}.xml @@ -3944,7 +3944,9 @@ - 0 +{if isset($grandstream_headset_ring)} + {$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/grp2612w/{$mac}.xml b/resources/templates/provision/grandstream/grp2612w/{$mac}.xml index dadda5b81..54b99c17c 100644 --- a/resources/templates/provision/grandstream/grp2612w/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2612w/{$mac}.xml @@ -4039,7 +4039,9 @@ - 0 +{if isset($grandstream_headset_ring)} + {$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/grp2613/{$mac}.xml b/resources/templates/provision/grandstream/grp2613/{$mac}.xml index 4c59aa8fd..5c0954011 100644 --- a/resources/templates/provision/grandstream/grp2613/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2613/{$mac}.xml @@ -4784,7 +4784,9 @@ - 0 +{if isset($grandstream_headset_ring)} + {$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/grp2614/{$mac}.xml b/resources/templates/provision/grandstream/grp2614/{$mac}.xml index 9b8bc6560..cb7601df9 100644 --- a/resources/templates/provision/grandstream/grp2614/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2614/{$mac}.xml @@ -6107,7 +6107,9 @@ - 0 +{if isset($grandstream_headset_ring)} + {$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/grp2615/{$mac}.xml b/resources/templates/provision/grandstream/grp2615/{$mac}.xml index 7107dd29f..feb2615a8 100644 --- a/resources/templates/provision/grandstream/grp2615/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2615/{$mac}.xml @@ -7126,7 +7126,9 @@ - 0 +{if isset($grandstream_headset_ring)} + {$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/grp2616/{$mac}.xml b/resources/templates/provision/grandstream/grp2616/{$mac}.xml index 72be3c7a6..225564382 100644 --- a/resources/templates/provision/grandstream/grp2616/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2616/{$mac}.xml @@ -8014,7 +8014,9 @@ - 0 +{if isset($grandstream_headset_ring)} + {$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/grp26xx/{$mac}.xml b/resources/templates/provision/grandstream/grp26xx/{$mac}.xml index c3350960f..034418489 100644 --- a/resources/templates/provision/grandstream/grp26xx/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp26xx/{$mac}.xml @@ -7288,7 +7288,9 @@ - 0 +{if isset($grandstream_headset_ring)} + {$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxp116x/{$mac}.xml b/resources/templates/provision/grandstream/gxp116x/{$mac}.xml index 9069b3272..20f41ede9 100644 --- a/resources/templates/provision/grandstream/gxp116x/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp116x/{$mac}.xml @@ -1298,7 +1298,9 @@ -0 +{if isset($grandstream_headset_ring)} +{$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxp140x/{$mac}.xml b/resources/templates/provision/grandstream/gxp140x/{$mac}.xml index 03fcc26fa..664b21960 100644 --- a/resources/templates/provision/grandstream/gxp140x/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp140x/{$mac}.xml @@ -1556,7 +1556,9 @@ - 0 +{if isset($grandstream_headset_ring)} + {$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxp140xbk/{$mac}.xml b/resources/templates/provision/grandstream/gxp140xbk/{$mac}.xml index b3974b0d2..cef836eee 100644 --- a/resources/templates/provision/grandstream/gxp140xbk/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp140xbk/{$mac}.xml @@ -1556,7 +1556,9 @@ - 0 +{if isset($grandstream_headset_ring)} + {$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxp1450/{$mac}.xml b/resources/templates/provision/grandstream/gxp1450/{$mac}.xml index fd521edfb..094745975 100644 --- a/resources/templates/provision/grandstream/gxp1450/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp1450/{$mac}.xml @@ -2062,7 +2062,9 @@ -0 +{if isset($grandstream_headset_ring)} +{$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxp1450bk/{$mac}.xml b/resources/templates/provision/grandstream/gxp1450bk/{$mac}.xml index c893fc4fd..79d6987db 100644 --- a/resources/templates/provision/grandstream/gxp1450bk/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp1450bk/{$mac}.xml @@ -1869,7 +1869,9 @@ -0 +{if isset($grandstream_headset_ring)} +{$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxp16xx/{$mac}.xml b/resources/templates/provision/grandstream/gxp16xx/{$mac}.xml index ffacc1510..87efac134 100644 --- a/resources/templates/provision/grandstream/gxp16xx/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp16xx/{$mac}.xml @@ -2724,7 +2724,9 @@ -0 +{if isset($grandstream_headset_ring)} +{$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxp17xx/{$mac}.xml b/resources/templates/provision/grandstream/gxp17xx/{$mac}.xml index bfb62b6b7..d295a4cf7 100644 --- a/resources/templates/provision/grandstream/gxp17xx/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp17xx/{$mac}.xml @@ -3890,7 +3890,9 @@ -0 +{if isset($grandstream_headset_ring)} +{$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxp2100/{$mac}.xml b/resources/templates/provision/grandstream/gxp2100/{$mac}.xml index 33e0d419e..e0a1f55a8 100644 --- a/resources/templates/provision/grandstream/gxp2100/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2100/{$mac}.xml @@ -3479,7 +3479,9 @@ - 0 +{if isset($grandstream_headset_ring)} + {$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxp2124/{$mac}.xml b/resources/templates/provision/grandstream/gxp2124/{$mac}.xml index fc120a10a..dddd5ff01 100644 --- a/resources/templates/provision/grandstream/gxp2124/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2124/{$mac}.xml @@ -2303,7 +2303,9 @@ - 0 +{if isset($grandstream_headset_ring)} + {$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml index c5615e3ff..28153bed0 100644 --- a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml @@ -7981,7 +7981,9 @@ - 0 +{if isset($grandstream_headset_ring)} + {$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml index ae10e1ef0..437fe38a0 100644 --- a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml @@ -7973,7 +7973,9 @@ - 0 +{if isset($grandstream_headset_ring)} + {$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml index 512abbbd9..b3eea5d0d 100644 --- a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml @@ -7973,7 +7973,9 @@ - 0 +{if isset($grandstream_headset_ring)} + {$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml index 11089a69b..1627476f2 100644 --- a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml @@ -7985,7 +7985,9 @@ - 0 +{if isset($grandstream_headset_ring)} + {$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml index ccce52b8e..98bcab3fa 100644 --- a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml @@ -7973,7 +7973,9 @@ - 0 +{if isset($grandstream_headset_ring)} + {$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml b/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml index 99af01614..7d70b3caf 100644 --- a/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml @@ -3080,7 +3080,9 @@ Outgoing calls. 0 - No, 1 - Yes. Default is 0 --> - 0 +{if isset($grandstream_headset_ring)} + {$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxp21xxbk/{$mac}.xml b/resources/templates/provision/grandstream/gxp21xxbk/{$mac}.xml index 108bab328..c05b54e00 100644 --- a/resources/templates/provision/grandstream/gxp21xxbk/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp21xxbk/{$mac}.xml @@ -3791,7 +3791,9 @@ Outgoing calls. 0 - No, 1 - Yes. Default is 0 --> -0 +{if isset($grandstream_headset_ring)} +{$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxp2200/{$mac}.xml b/resources/templates/provision/grandstream/gxp2200/{$mac}.xml index 0799796e3..0b5ebf9f1 100644 --- a/resources/templates/provision/grandstream/gxp2200/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2200/{$mac}.xml @@ -2619,7 +2619,9 @@ Account 5 Codec Settings -0 +{if isset($grandstream_headset_ring)} +{$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxp3240/{$mac}.xml b/resources/templates/provision/grandstream/gxp3240/{$mac}.xml index 517dd0eb8..a928c6c47 100644 --- a/resources/templates/provision/grandstream/gxp3240/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp3240/{$mac}.xml @@ -2830,7 +2830,9 @@ Account 5 Codec Settings -0 +{if isset($grandstream_headset_ring)} +{$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxv3175/{$mac}.xml b/resources/templates/provision/grandstream/gxv3175/{$mac}.xml index ea3253821..4a159f28a 100644 --- a/resources/templates/provision/grandstream/gxv3175/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxv3175/{$mac}.xml @@ -943,7 +943,9 @@ -0 +{if isset($grandstream_headset_ring)} +{$grandstream_headset_ring} +{/if} 0 diff --git a/resources/templates/provision/grandstream/gxv3175v2/{$mac}.xml b/resources/templates/provision/grandstream/gxv3175v2/{$mac}.xml index a2e69378f..3979e6068 100644 --- a/resources/templates/provision/grandstream/gxv3175v2/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxv3175v2/{$mac}.xml @@ -488,7 +488,9 @@ - 0 +{if isset($grandstream_headset_ring)} + {$grandstream_headset_ring} +{/if} 0 diff --git a/resources/templates/provision/grandstream/gxv3240/{$mac}.xml b/resources/templates/provision/grandstream/gxv3240/{$mac}.xml index 4e9156071..41e76f385 100644 --- a/resources/templates/provision/grandstream/gxv3240/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxv3240/{$mac}.xml @@ -4030,7 +4030,9 @@ -0 +{if isset($grandstream_headset_ring)} +{$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/gxv3275/{$mac}.xml b/resources/templates/provision/grandstream/gxv3275/{$mac}.xml index ca2f938dc..526a52e9f 100644 --- a/resources/templates/provision/grandstream/gxv3275/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxv3275/{$mac}.xml @@ -2958,7 +2958,9 @@ -0 +{if isset($grandstream_headset_ring)} +{$grandstream_headset_ring} +{/if} diff --git a/resources/templates/provision/grandstream/wp820/{$mac}.xml b/resources/templates/provision/grandstream/wp820/{$mac}.xml index 0f983ca56..03242f0bc 100644 --- a/resources/templates/provision/grandstream/wp820/{$mac}.xml +++ b/resources/templates/provision/grandstream/wp820/{$mac}.xml @@ -1385,7 +1385,9 @@ -0 +{if isset($grandstream_headset_ring)} +{$grandstream_headset_ring} +{/if}