[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
Wed Sep 24 12:55:37 CDT 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-09-24 12:55 CDT
====================================================================== 
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).
====================================================================== 

---------------------------------------------------------------------- 
 (0092837) infiniti_guy (reporter) - 2008-09-24 12:55
 http://bugs.digium.com/view.php?id=13539#c92837 
---------------------------------------------------------------------- 
Ok... this was a bit of work to remove the configs and start over...
Here's what I did:
1) deleted all asterisk config files in /etc/asterisk just to make sure (I
had installed a while back GUI 1.0, so I thought it best to start from
scratch)
2) make samples (from 1.4.21.2 package)
3) edit samples (remove demo, all items in extensions.ael, some other
basic localization and preference settings)
4) make install for GUI Build 3870  this time (to test some of the other
fixes I posted)
5) Login -> create a trunk, outgoing rule, etc. -> logout, check
extensions.conf -- no problems.
6) Create an incoming rule -> Apply -> Logout -> Login
7) Checked extensions.conf and I see THE SAME PROBLEM (after making an
incoming rule and then logout and login (doesn't happen until you log back
in)! 
I attached the extensions.conf file for your reference. Note: you can see
that some things have been repeated...

[general]
static = yes
writeprotect = no
clearglobalvars = no
autofallthrough = yes
static = yes
writeprotect = no
clearglobalvars = yes

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

[macro-stdexten]
exten = s,1,Set(__DYNAMIC_FEATURES=${FEATURES})
exten = s,2,GotoIf($[${FOLLOWME_${ARG1}} = 1]?5:3)
exten = s,3,Dial(${ARG2},${RINGTIME},${DIALOPTIONS})
exten = s,4,Goto(s-${DIALSTATUS},1)
exten = s,5,Macro(stdexten-followme,${ARG1},${ARG2})
exten = s-NOANSWER,1,Voicemail(${ARG1},u)
exten = s-NOANSWER,2,Goto(default,s,1)
exten = s-BUSY,1,Voicemail(${ARG1},b)
exten = s-BUSY,2,Goto(default,s,1)
exten = _s-.,1,Goto(s-NOANSWER,1)
exten = a,1,VoicemailMain(${ARG1})

[macro-stdexten]

[macro-stdexten-followme]
exten = s,1,Dial(${ARG2},${RINGTIME},${DIALOPTIONS})
exten = s,2,Followme(${ARG1},a)
exten = s,3,Voicemail(${ARG1},u)
exten = s-NOANSWER,1,Voicemail(${ARG1},u)
exten = s-BUSY,1,Voicemail(${ARG1},b)
exten = s-BUSY,2,Goto(default,s,1)
exten = _s-.,1,Goto(s-NOANSWER,1)
exten = a,1,VoicemailMain(${ARG1})

[macro-stdexten-followme]

[asterisk_guitools]
exten = executecommand,1,System(${command})
exten = executecommand,n,Hangup()
exten = record_vmenu,1,Answer
exten = record_vmenu,n,Playback(vm-intro)
exten = record_vmenu,n,Record(${var1})
exten = record_vmenu,n,Playback(vm-saved)
exten = record_vmenu,n,Playback(vm-goodbye)
exten = record_vmenu,n,Hangup
exten = play_file,1,Answer
exten = play_file,n,Playback(${var1})
exten = play_file,n,Hangup

[asterisk_guitools]

[macro-trunkdial-failover-0.3]
exten = s,1,Set(CALLERID(num)=${IF($[${LEN(${CID_${CALLERID(num)}})} >
2]?${CID_${CALLERID(num)}}:)})
exten = s,n,GotoIf($[${LEN(${CALLERID(num)})} > 6]?1-dial,1)
exten = s,n,Set(CALLERID(all)=${IF($[${LEN(${CID_${ARG3}})} >
6]?${CID_${ARG3}}:${GLOBAL_OUTBOUNDCID})})
exten = s,n,Goto(1-dial,1)
exten = 1-dial,1,Dial(${ARG1})
exten = 1-dial,n,Gotoif(${LEN(${ARG2})} > 0 ?1-${DIALSTATUS},1:1-out,1)
exten = 1-CHANUNAVAIL,1,Dial(${ARG2})
exten = 1-CHANUNAVAIL,n,Hangup()
exten = 1-CONGESTION,1,Dial(${ARG2})
exten = 1-CONGESTION,n,Hangup()
exten = 1-out,1,Hangup()

[macro-trunkdial-failover-0.3] 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-24 12:55 infiniti_guy   Note Added: 0092837                          
======================================================================




More information about the asterisk-bugs mailing list