From 8150545c606e66e0d628cae1e0d36809a6323a0e Mon Sep 17 00:00:00 2001 From: Vincent Date: Wed, 17 Nov 2021 03:43:07 +0800 Subject: [PATCH] Fix: unable to generate configuration file of Flyingvoice due to syntax error. (#6101) * Fix the registration failed after provision Flyingvoice phone. * Fix the parameter configuration of Flyingvoice not displayed in the Default Settings * Fix: after configuring SIP line 1 of Flyingvoice phone, other SIP lines are disable and the configuration parameters of Flyingvoice are not displayed by default settings. * Fix after configuring SIP line 1 of Flyingvoice phone, other SIP lines are disable. * Fix the configuration parameters of Flyingvoice are not displayed by default settings. * Fix: when only one sip line's shared line is enable, the shared lines of all SIP lines will be enable. * Fix: unable to generate configuration file of Flyingvoice due to syntax error. --- .../provision/flyingvoice/fip10/{$mac}.cfg | 4 ++-- .../provision/flyingvoice/fip11c/{$mac}.cfg | 6 +++--- .../provision/flyingvoice/fip12wp/{$mac}.cfg | 4 ++-- .../provision/flyingvoice/fip13g/{$mac}.cfg | 8 ++++---- .../provision/flyingvoice/fip14g/{$mac}.cfg | 16 +++++++-------- .../provision/flyingvoice/fip15g/{$mac}.cfg | 20 +++++++++---------- 6 files changed, 29 insertions(+), 29 deletions(-) diff --git a/resources/templates/provision/flyingvoice/fip10/{$mac}.cfg b/resources/templates/provision/flyingvoice/fip10/{$mac}.cfg index aff2a85968..af89fe2ef6 100644 --- a/resources/templates/provision/flyingvoice/fip10/{$mac}.cfg +++ b/resources/templates/provision/flyingvoice/fip10/{$mac}.cfg @@ -367,7 +367,7 @@ account.1.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.1.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.1.shared_line= {if isset($account.1.password) }{$shared_line_1}{else}{/if} account.1.line_seize.expires= account.1.shared_line_one_touch_bargein.enable= @@ -745,7 +745,7 @@ account.2.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.2.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.2.shared_line= {if isset($account.2.password)}{$shared_line_1}{else}{/if} account.2.line_seize.expires= account.2.shared_line_one_touch_bargein.enable= diff --git a/resources/templates/provision/flyingvoice/fip11c/{$mac}.cfg b/resources/templates/provision/flyingvoice/fip11c/{$mac}.cfg index db194e5bed..ddb3b162d6 100644 --- a/resources/templates/provision/flyingvoice/fip11c/{$mac}.cfg +++ b/resources/templates/provision/flyingvoice/fip11c/{$mac}.cfg @@ -368,7 +368,7 @@ account.1.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.1.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.1.shared_line= {if isset($account.1.password) }{$shared_line_1}{else}{/if} account.1.line_seize.expires= account.1.shared_line_one_touch_bargein.enable= @@ -746,7 +746,7 @@ account.2.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.2.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.2.shared_line= {if isset($account.2.password)}{$shared_line_1}{else}{/if} account.2.line_seize.expires= account.2.shared_line_one_touch_bargein.enable= @@ -1140,7 +1140,7 @@ account.3.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.3.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.3.shared_line= {if isset($account.3.password)}{$shared_line_1}{else}{/if} account.3.line_seize.expires= account.3.shared_line_one_touch_bargein.enable= diff --git a/resources/templates/provision/flyingvoice/fip12wp/{$mac}.cfg b/resources/templates/provision/flyingvoice/fip12wp/{$mac}.cfg index abcacdabb3..9dec2bb779 100644 --- a/resources/templates/provision/flyingvoice/fip12wp/{$mac}.cfg +++ b/resources/templates/provision/flyingvoice/fip12wp/{$mac}.cfg @@ -368,7 +368,7 @@ account.1.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.1.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.1.shared_line= {if isset($account.1.password) }{$shared_line_1}{else}{/if} account.1.line_seize.expires= account.1.shared_line_one_touch_bargein.enable= @@ -746,7 +746,7 @@ account.2.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.2.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.2.shared_line= {if isset($account.2.password)}{$shared_line_1}{else}{/if} account.2.line_seize.expires= account.2.shared_line_one_touch_bargein.enable= diff --git a/resources/templates/provision/flyingvoice/fip13g/{$mac}.cfg b/resources/templates/provision/flyingvoice/fip13g/{$mac}.cfg index 700ae70f6d..c6e00c3fc7 100644 --- a/resources/templates/provision/flyingvoice/fip13g/{$mac}.cfg +++ b/resources/templates/provision/flyingvoice/fip13g/{$mac}.cfg @@ -368,7 +368,7 @@ account.1.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.1.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.1.shared_line= {if isset($account.1.password) }{$shared_line_1}{else}{/if} account.1.line_seize.expires= account.1.shared_line_one_touch_bargein.enable= @@ -746,7 +746,7 @@ account.2.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.2.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.2.shared_line= {if isset($account.2.password)}{$shared_line_1}{else}{/if} account.2.line_seize.expires= account.2.shared_line_one_touch_bargein.enable= @@ -1140,7 +1140,7 @@ account.3.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.3.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.3.shared_line= {if isset($account.3.password)}{$shared_line_1}{else}{/if} account.3.line_seize.expires= account.3.shared_line_one_touch_bargein.enable= @@ -1534,7 +1534,7 @@ account.4.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.4.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.4.shared_line= {if isset($account.4.password)}{$shared_line_1}{else}{/if} account.4.line_seize.expires= account.4.shared_line_one_touch_bargein.enable= diff --git a/resources/templates/provision/flyingvoice/fip14g/{$mac}.cfg b/resources/templates/provision/flyingvoice/fip14g/{$mac}.cfg index 751352758b..e2a67e0388 100644 --- a/resources/templates/provision/flyingvoice/fip14g/{$mac}.cfg +++ b/resources/templates/provision/flyingvoice/fip14g/{$mac}.cfg @@ -368,7 +368,7 @@ account.1.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.1.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.1.shared_line= {if isset($account.1.password) }{$shared_line_1}{else}{/if} account.1.line_seize.expires= account.1.shared_line_one_touch_bargein.enable= @@ -746,7 +746,7 @@ account.2.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.2.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.2.shared_line= {if isset($account.2.password)}{$shared_line_1}{else}{/if} account.2.line_seize.expires= account.2.shared_line_one_touch_bargein.enable= @@ -1140,7 +1140,7 @@ account.3.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.3.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.3.shared_line= {if isset($account.3.password)}{$shared_line_1}{else}{/if} account.3.line_seize.expires= account.3.shared_line_one_touch_bargein.enable= @@ -1534,7 +1534,7 @@ account.4.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.4.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.4.shared_line= {if isset($account.4.password)}{$shared_line_1}{else}{/if} account.4.line_seize.expires= account.4.shared_line_one_touch_bargein.enable= @@ -1927,7 +1927,7 @@ account.5.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.5.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.5.shared_line= {if isset($account.5.password)}{$shared_line_1}{else}{/if} account.5.line_seize.expires= account.5.shared_line_one_touch_bargein.enable= @@ -2320,7 +2320,7 @@ account.6.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.6.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.6.shared_line= {if isset($account.6.password)}{$shared_line_1}{else}{/if} account.6.line_seize.expires= account.6.shared_line_one_touch_bargein.enable= @@ -2714,7 +2714,7 @@ account.7.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.7.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.7.shared_line= {if isset($account.7.password)}{$shared_line_1}{else}{/if} account.7.line_seize.expires= account.7.shared_line_one_touch_bargein.enable= @@ -3108,7 +3108,7 @@ account.8.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.8.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.8.shared_line= {if isset($account.8.password)}{$shared_line_1}{else}{/if} account.8.line_seize.expires= account.8.shared_line_one_touch_bargein.enable= diff --git a/resources/templates/provision/flyingvoice/fip15g/{$mac}.cfg b/resources/templates/provision/flyingvoice/fip15g/{$mac}.cfg index 91274785fa..9d2d21de29 100644 --- a/resources/templates/provision/flyingvoice/fip15g/{$mac}.cfg +++ b/resources/templates/provision/flyingvoice/fip15g/{$mac}.cfg @@ -367,7 +367,7 @@ account.1.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.1.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.1.shared_line= {if isset($account.1.password) }{$shared_line_1}{else}{/if} account.1.line_seize.expires= account.1.shared_line_one_touch_bargein.enable= @@ -766,7 +766,7 @@ account.2.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.2.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.2.shared_line= {if isset($account.2.password)}{$shared_line_1}{else}{/if} account.2.line_seize.expires= account.2.shared_line_one_touch_bargein.enable= @@ -1181,7 +1181,7 @@ account.3.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.3.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.3.shared_line= {if isset($account.3.password)}{$shared_line_1}{else}{/if} account.3.line_seize.expires= account.3.shared_line_one_touch_bargein.enable= @@ -1596,7 +1596,7 @@ account.4.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.4.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.4.shared_line= {if isset($account.4.password)}{$shared_line_1}{else}{/if} account.4.line_seize.expires= account.4.shared_line_one_touch_bargein.enable= @@ -2010,7 +2010,7 @@ account.5.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.5.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.5.shared_line= {if isset($account.5.password)}{$shared_line_1}{else}{/if} account.5.line_seize.expires= account.5.shared_line_one_touch_bargein.enable= @@ -2424,7 +2424,7 @@ account.6.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.6.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.6.shared_line= {if isset($account.6.password)}{$shared_line_1}{else}{/if} account.6.line_seize.expires= account.6.shared_line_one_touch_bargein.enable= @@ -2839,7 +2839,7 @@ account.7.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.7.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.7.shared_line= {if isset($account.7.password)}{$shared_line_1}{else}{/if} account.7.line_seize.expires= account.7.shared_line_one_touch_bargein.enable= @@ -3254,7 +3254,7 @@ account.8.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.8.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.8.shared_line= {if isset($account.8.password)}{$shared_line_1}{else}{/if} account.8.line_seize.expires= account.8.shared_line_one_touch_bargein.enable= @@ -3669,7 +3669,7 @@ account.9.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.9.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.9.shared_line= {if isset($account.9.password)}{$shared_line_1}{else}{/if} account.9.line_seize.expires= account.9.shared_line_one_touch_bargein.enable= @@ -4049,7 +4049,7 @@ account.10.blf.subscribe_event= ####################################################################################### ## SCA ## ####################################################################################### -account.10.shared_line= {if isset$account.1.password }{$shared_line_1}{else}{/if} +account.10.shared_line= {if isset($account.10.password)}{$shared_line_1}{else}{/if} account.10.line_seize.expires= account.10.shared_line_one_touch_bargein.enable=