diff --git a/app/grandstream/app_config.php b/app/grandstream/app_config.php index 0717ef9c3e..77de49d02e 100644 --- a/app/grandstream/app_config.php +++ b/app/grandstream/app_config.php @@ -388,4 +388,12 @@ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true"; $apps[$x]['default_settings'][$y]['default_setting_description'] = "SRTP Mode. 0 - Disabled, 1 - Enabled but not forced, 2 - Enabled and forced, 3 - Optional. Default is 0"; $y++; + $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "5da62e0c-5eb0-11e8-9c2d-fa7ae01bbebc"; + $apps[$x]['default_settings'][$y]['default_setting_category'] = "provision"; + $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "grandstream_city_code"; + $apps[$x]['default_settings'][$y]['default_setting_name'] = "text"; + $apps[$x]['default_settings'][$y]['default_setting_value'] = "Boise,ID"; + $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false"; + $apps[$x]['default_settings'][$y]['default_setting_description'] = "Enter City to configure City for the Weather app on the Phone"; + $y++; ?> diff --git a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml index 9f210aada2..97a116690a 100644 --- a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml @@ -716,7 +716,7 @@ -0 +1 @@ -5970,11 +5970,16 @@ +{if isset($grandstream_city_code)} +0 +{else} 1 +{/if} - - - + + + +{$grandstream_city_code} diff --git a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml index dd15082533..247419fdb9 100644 --- a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml @@ -716,7 +716,7 @@ -0 +1 @@ -5970,11 +5970,16 @@ +{if isset($grandstream_city_code)} +0 +{else} 1 +{/if} - - - + + + +{$grandstream_city_code} diff --git a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml index dd15082533..247419fdb9 100644 --- a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml @@ -716,7 +716,7 @@ -0 +1 @@ -5970,11 +5970,16 @@ +{if isset($grandstream_city_code)} +0 +{else} 1 +{/if} - - - + + + +{$grandstream_city_code} diff --git a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml index dd15082533..247419fdb9 100644 --- a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml @@ -716,7 +716,7 @@ -0 +1 @@ -5970,11 +5970,16 @@ +{if isset($grandstream_city_code)} +0 +{else} 1 +{/if} - - - + + + +{$grandstream_city_code} diff --git a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml index c444be71cb..a411419a0b 100644 --- a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml @@ -731,7 +731,7 @@ -0 +1 @@ -7243,11 +7243,16 @@ +{if isset($grandstream_city_code)} +0 +{else} 1 +{/if} + - +{$grandstream_city_code}