From b0c539a0204d88e4a81ed2989a5f15f6749baa30 Mon Sep 17 00:00:00 2001 From: Zachary Kitchen <30428121+digitalcrisis@users.noreply.github.com> Date: Wed, 23 May 2018 15:12:40 -0500 Subject: [PATCH] City Code for GXP Phones (#3064) * City Code for GXP Phones This allows users to add custom city codes to tables. * Update {$mac}.xml * Update {$mac}.xml * Update {$mac}.xml * Update {$mac}.xml * Update app_config.php * Update {$mac}.xml This fixes the unintended consequences when users are trying to push an assigned BLF key to transfer a call it would attempt to perform an attended transfer rather than a blind transfer. * Update {$mac}.xml * Update {$mac}.xml * Update {$mac}.xml * Update {$mac}.xml --- app/grandstream/app_config.php | 8 ++++++++ .../provision/grandstream/gxp2130/{$mac}.xml | 13 +++++++++---- .../provision/grandstream/gxp2135/{$mac}.xml | 13 +++++++++---- .../provision/grandstream/gxp2140/{$mac}.xml | 13 +++++++++---- .../provision/grandstream/gxp2160/{$mac}.xml | 13 +++++++++---- .../provision/grandstream/gxp2170/{$mac}.xml | 9 +++++++-- 6 files changed, 51 insertions(+), 18 deletions(-) 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}