Asterisk GUI problem - GUI 2.0 with Asterisk 1.4

I have been using the GUI for a couple of days, had compiled it, configured it, and it was running just fine.

Today I configured a SIP Trunk provider, and was having problems with the SIP ports not freeing up between calls, so I rebooted the system.

Now the GUI won’t load, as soon as I enter the login and password, it goes into an endless loops, searching for http.conf, found http.conf, searching for extensions.conf, found extensions.conf. Repeats over and over.

From the web page, its just continually reloads the status screen, but doesn’t quite finish, just starts over and repeats.

I have re-downloaded the gui, recompiled it. I’ve changed the login and password several times.

Asterisk is running just fine, its answering calls, going to voice mail etc… but the gui just won’t load properly.

Any ideas?

Thanks in advance.

Randy

Sounds like a permission issue.

Is asterisk running as root?

-bk

Hmm, not sure about that, Asterisk is running as a service, it loads automatically. I’ll investigate whether its running as Root or not, I believe it is but I’m new to Linux so not exactly sure how to check that.

I do have a little more information on this issue. At one point I saw a message saying with an error, that there was a statement missing a ‘}’ in my extension logic.

I have scoured the Extensions.conf file and cannot find a typo, but replacing the file with an old version, ie… before using the one auto generated by VoicePulse results in the GUI loading just fine. So its either something in the Extensions.conf file, or a file referenced by the stuff inserted by VoicePulse.

I have been slowly going through commenting out sections of the Extensions.conf file to isolate where this is, so far no luck.

Not entirely sure what fixed it.

Was commenting out lines in the globals area, and it started working. Uncommenting them and saving the changes it still works. Go figure.

Anyway, I’m moving on since its working, but I am very curious why it wasn’t working for most of the day yesterday.

I never did find a problem with the extension logic missing ‘}’ message, I have received that again since the GUI started working again.

Thanks for reading, good luck in your endeavors.

If you find the error, paste the error and your extensions.conf and let me take a look.

If you messed it up, tough luck :stuck_out_tongue: but I want to make sure the GUI didn’t add an invalid line.

-bk

I have the same problem… and dont know what fixed it. After some changes to the extension.conf and users.conf files same problem again. The lock-in is running in loops. Help would be very much appreciated.

I have the same problem… and dont know what fixed it. After some changes to the extension.conf and users.conf files same problem again. The lock-in is running in loops. Help would be very much appreciated.

The looping error comes from

clearglobalvars = yes

in extensions.conf

the gui 2.0 enters this line twice. Each time i lock-in to the gui i have to remove that line.

Hmm, can you enter this on bugs.digium.com and make a note on the mailing list?

There are two things happening here:

A) The GUI does not see the clearglobalvariables (therefore writes it again)

B) something else, I forgot my train of thought, lol

-bk

I will do that!!!

Maybe you can help me with another problem. All the trunks and phones register ok, but i can’t dial in or out. I attached the log and the extension.conf file. Running Asterisk 1.4 gui 2.0

Thanks,
davewu

////// Dial - out \\\

– Executing [10@DLPN_DialPlan1:1] Macro(“SIP/14-08189368”, “trunkdial-failover-0.3|SIP/2039002e0/10|SIP/2039002e1/10|2039002e0|2039002e1”) in new stack
– Executing [s@macro-trunkdial-failover-0.3:1] Set(“SIP/14-08189368”, “CALLERID(num)=49201832330”) in new stack
– Executing [s@macro-trunkdial-failover-0.3:2] GotoIf(“SIP/14-08189368”, “1?1-dial|1”) in new stack
– Goto (macro-trunkdial-failover-0.3,1-dial,1)
– Executing [1-dial@macro-trunkdial-failover-0.3:1] Dial(“SIP/14-08189368”, “SIP/2039002e0/10”) in new stack
– Called 2039002e0/10
– SIP/2039002e0-0818b008 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [1-dial@macro-trunkdial-failover-0.3:2] GotoIf(“SIP/14-08189368”, “16 > 0 ?1-CONGESTION|1:1-out|1”) in new stack
– Goto (macro-trunkdial-failover-0.3,1-CONGESTION,1)
– Executing [1-CONGESTION@macro-trunkdial-failover-0.3:1] Dial(“SIP/14-08189368”, “SIP/2039002e1/10”) in new stack
– Called 2039002e1/10
– SIP/2039002e1-08245918 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [1-CONGESTION@macro-trunkdial-failover-0.3:2] Hangup(“SIP/14-08189368”, “”) in new stack
== Spawn extension (macro-trunkdial-failover-0.3, 1-CONGESTION, 2) exited non-zero on ‘SIP/14-08189368’ in macro ‘trunkdial-failover-0.3’
== Spawn extension (macro-trunkdial-failover-0.3, 1-CONGESTION, 2) exited non-zero on ‘SIP/14-08189368’

////// Dial - in \\\\

NOTICE[2736]: chan_sip.c:14035 handle_request_invite: Call from ‘2039002e2’ to extension ‘s’ rejected because extension not found.

///////// extensions.conf

[code];!
;! Automatically generated configuration file
;! Filename: extensions.conf (/etc/asterisk/extensions.conf)
;! Generator: Manager
;! Creation Date: Fri Aug 29 22:20:51 2008
;!
[general]
static = yes
writeprotect = no
autofallthrough = yes
clearglobalvars = yes
priorityjumping = no
static = yes
writeprotect = no
static = yes
writeprotect = no

[globals]
CID_10 = NUM
CID_11 =NUM
CID_14 = NUM
CID_12 = NUM
NUM = SIP/NUM
NUM = SIP/NUM
NUM = SIP/NUM
CID_NUM = NUM
timeinterval_tag = |mon-sat||*
NUM = SIP/NUM

[default]
exten = 95,1,VoiceMailMain(${CALLERID(num)}@default)

[conferences]

[ringgroups]
exten = 40,1,Goto(ringroups-custom-1|s|1)

[queues]
exten = 21,1,Queue(${EXTEN})
exten = 93,1,agentcallbacklogin()
exten = 93,1,agentcallbacklogin()

[voicemenus]
exten = 31,1,Goto(voicemenu-custom-2|s|1)
exten = 30,1,Goto(voicemenu-custom-1|s|1)
exten = 32,1,Goto(voicemenu-custom-3|s|1)

[voicemailgroups]

[directory]
exten = 96,1,Directory(default|default|e)

[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

[macro-trunkdial-failover-0.3]
; Macro by = Brandon Kruse bkruse@digium.com & Matthew O’Gorman mogorman@digium.com
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-stdexten]
exten = s,1,GotoIf($[${FOLLOWME_${ARG1}} = 1]?4:2)
exten = s,2,Dial(${ARG2},20)
exten = s,3,Goto(s-${DIALSTATUS},1)
exten = s,4,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-followme]
exten = s,1,Dial(${ARG2},20)
exten = s,2,Followme(${ARG1},a)
exten = s,3,Voicemail(${ARG1},b)
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})

[voicemenu-custom-2]
exten = s,1,NoOp(ansage2)
exten = s,2,Answer()
exten = s,3,Background(ansageadd2)
exten = s,4,Goto(queues|21|1)

[ringroups-custom-1]
exten = s,1,NoOp(ringg1)
exten = s,n,Dial(SIP/10&SIP/11,15,i)
exten = s,n,Goto(voicemenu-custom-2|s|1)

[voicemenu-custom-1]
exten = s,1,NoOp(ansage1)
exten = s,2,Answer()
exten = s,3,Wait(1)
exten = s,4,Background(ansageadd)
exten = s,5,Goto(ringroups-custom-1|s|1)

[DID_NUM]
include = DID_NUM_timeinterval_tag|${timeinterval_tag}
include = DID_NUM_default

[DID_NUM_default]

[DID_NUM]
include = DID_NUM_timeinterval_tag|${timeinterval_tag}
include = DID_NUM_default

[DID_NUM_default]

[DID_NUM]
include = DID_NUM_timeinterval_tag|${timeinterval_tag}
include = DID_NUM_default

[DID_NUM_default]

[CallingRule_addout]
exten = _X.,1,Macro(trunkdial-failover-0.3,${NUM}/${EXTEN:0},${NUM}/${EXTEN:0},NUM,NUM)

[DLPN_DialPlan2]
include = default
include = parkedcalls
include = conferences
include = ringgroups
include = voicemenus
include = queues
include = voicemailgroups
include = directory

[CallingRule_local]
exten = _Z.,1,Macro(trunkdial-failover-0.3,${NUM}/0201${EXTEN:0},NUM,)

[CallingRule_notfall]
exten = _[112],1,Macro(trunkdial-failover-0.3,${NUM}/${EXTEN:0},NUM,)

[CallingRule_Longdistance]
exten = _91XXXXXXXXXX!,1,Macro(trunkdial-failover-0.3,${}/${EXTEN:1}, , , )

[CallingRule_IAXTEL]
exten = _91700XXXXXXX!,1,Macro(trunkdial-failover-0.3,${}/${EXTEN:1}, , , )

[CallingRule_Local_AreaCode]
exten = _9256XXXXXXX!,1,Macro(trunkdial-failover-0.3,${}/${EXTEN:4}, , , )

[CallingRule_International]
exten = _9011XXXXX.,1,Macro(trunkdial-failover-0.3,${}/${EXTEN:1}, , , )

[CallingRule_Local_7_digits]
exten = _9XXXXXXX!,1,Macro(trunkdial-failover-0.3,${}/${EXTEN:1}, , , )

[CallingRule_Emergency]
exten = _911!,1,Macro(trunkdial-failover-0.3,${}/${EXTEN:0}, , , )

[DLPN_DialPlan1]
include = CallingRule_addout
include = CallingRule_local
include = CallingRule_notfall

[DID_NUM_timeinterval_tag]
exten = _X.,1,Goto(voicemenu-custom-1|s|1)

[DID_NUM_timeinterval_tag]
exten = _X.,1,Goto(voicemenu-custom-1|s|1)

[DID_NUM_timeinterval_tag]
exten = _X.,1,Goto(voicemenu-custom-1|s|1)

[DID_NUM]
include = DID_NUM_default

[DID_NUM_default]
exten = _X.,1,Goto(voicemenu-custom-3|s|1)

[voicemenu-custom-3]
exten = s,1,NoOp(davidvm)
exten = s,2,Answer()
exten = s,3,Macro(trunkdial-failover-0.3,${NUM}/NUM,NUM,)
[/code]