[asterisk-bugs] [Asterisk-GUI 0013539]: Extensions file error after incoming call rules (in GUI 2.0) and logout

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Nov 11 10:41:26 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13539 
====================================================================== 
Reported By:                infiniti_guy
Assigned To:                bkruse
====================================================================== 
Project:                    Asterisk-GUI
Issue ID:                   13539
Category:                   General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.21.2 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 3855 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-09-23 00:24 CDT
Last Modified:              2008-11-11 10:41 CST
====================================================================== 
Summary:                    Extensions file error after incoming call rules (in
GUI 2.0) and logout
Description: 
In GUI 2.0 (build 3855), after changing/setting incoming call rules and
then logout. During next login, several settings are duplicated in the
extensions.conf file. In build 37XX the GUI would get stuck in a loop
(trying to login) and duplicate the foloeing setting durign each login
loop:
[general]
static = yes
writeprotect = no
clearglobalvars = yes
autofallthrough = yes
static = yes
writeprotect = no
clearglobalvars = yes
static = yes
writeprotect = no
clearglobalvars = yes

And then duplicate the following sections again at the bottom of the
file:
[general]

[globals]

In build 3855, the GUI has a similar response after setting incoming
rules, perform logout, then login, except no crash loop is detected, but
the settings are duplicated as follows for each manual login after setting
incoming rules.
[general]
static = yes
writeprotect = no
clearglobalvars = yes
autofallthrough = yes
static = yes
writeprotect = no
clearglobalvars = yes
static = yes
writeprotect = no
clearglobalvars = yes

[globals]
...
FEATURES = 
DIALOPTIONS = 
RINGTIME = 20
FEATURES = 
DIALOPTIONS = 
RINGTIME = 20
FEATURES = 
DIALOPTIONS = 
RINGTIME = 20
FEATURES = 
DIALOPTIONS = 
RINGTIME = 20




[general]

[globals]

[default]

[conferences]

[ringgroups]

[queues]

[voicemenus]

[voicemailgroups]

[directory]

[general]

[globals]

[default]


I am not sure why these settigns keep getting repeated, but it only occurs
after changing the incoming rules and then logout/login (logout does not
have to be immediately after changing incoming rules).
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0013420 GUI - File Editor not working properly
====================================================================== 

---------------------------------------------------------------------- 
 (0094743) awk (reporter) - 2008-11-11 10:41
 http://bugs.digium.com/view.php?id=13539#c94743 
---------------------------------------------------------------------- 
bkruse,
After making the change to disallow the creation of an already existing
category I haven't noticed any duplication (data integrity) issues. 

The only issue that appears to still be existent is the large amounts of
empty lines. This comes from the reworks in config.c. I should be providing
a patch within a few days.

The duplication and newline issues were found in Asterisk 1.6. I haven't
checked if they exist in 1.4 although I'm pretty sure they don't as 1.4's
code is significantly different to 1.6's especially pertaining to
newlines.

Also, I have been able to replicate the login loop issue and will be
looking into that once I'm finished patching config.c 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-11-11 10:41 awk            Note Added: 0094743                          
======================================================================




More information about the asterisk-bugs mailing list