[Asterisk-Users] Problem with auto-attendant config, I think..

Howard Leadmon howard at leadmon.net
Sun Aug 21 10:49:37 MST 2005


  I never heard anything on the AMP list, so figured maybe someone here might
be able to help me sort this one out..

  I was making some updates to my attendant config, which is really very
basic, and now incoming call processing stopped.  Not sure exactly what the
heck happened, but figured maybe someone could help me with a clue as to what
broke.   Now incoming calls are not being answered at all, no matter what I
do, which is quite annoying to say the least.

 Here is some log output from the server:

Aug 20 11:16:46 VERBOSE[1617]:     -- Starting simple switch on 'Zap/4-1'
Aug 20 11:16:47 DEBUG[1617]: Expression is '1'
Aug 20 11:16:47 VERBOSE[1617]:     -- Executing GotoIf("Zap/4-1",
"1?from-pstn-reghours|s|1:") in new stack
Aug 20 11:16:47 VERBOSE[1617]:     -- Goto (from-pstn-reghours,s,1)
Aug 20 11:16:47 DEBUG[1617]: Expression is '0'
Aug 20 11:16:47 VERBOSE[1617]:     -- Executing GotoIf("Zap/4-1",
"0?from-pstn-reghours-nofax|s|1:2") in new stack
Aug 20 11:16:47 VERBOSE[1617]:     -- Goto (from-pstn-reghours,s,2)
Aug 20 11:16:47 VERBOSE[1617]:     -- Executing Answer("Zap/4-1", "") in new
stack
Aug 20 11:16:47 DEBUG[1617]: Took Zap/4-1 off hook
Aug 20 11:16:47 DEBUG[1617]: Enabled echo cancellation on channel 4
Aug 20 11:16:47 DEBUG[1617]: Engaged echo training on channel 4
Aug 20 11:16:47 VERBOSE[1617]:     -- Executing Wait("Zap/4-1", "1") in new
stack
Aug 20 11:16:48 VERBOSE[1617]:     -- Executing SetVar("Zap/4-1",
"intype=aa_2") in new stack
Aug 20 11:16:48 VERBOSE[1617]:     -- Executing Cut("Zap/4-1",
"intype=intype|-|1") in new stack
Aug 20 11:16:48 DEBUG[1617]: Expression is '0'
Aug 20 11:16:48 VERBOSE[1617]:     -- Executing GotoIf("Zap/4-1", "0?7:9") in
new stack
Aug 20 11:16:48 VERBOSE[1617]:     -- Goto (from-pstn-reghours,s,9)
Aug 20 11:16:48 DEBUG[1617]: Expression is '0'
Aug 20 11:16:48 VERBOSE[1617]:     -- Executing GotoIf("Zap/4-1", "0?10:12")
in new stack
Aug 20 11:16:48 VERBOSE[1617]:     -- Goto (from-pstn-reghours,s,12)
Aug 20 11:16:48 DEBUG[1617]: Expression is '0'
Aug 20 11:16:48 VERBOSE[1617]:     -- Executing GotoIf("Zap/4-1", "0?13:15")
in new stack
Aug 20 11:16:48 VERBOSE[1617]:     -- Goto (from-pstn-reghours,s,15)
Aug 20 11:16:48 VERBOSE[1617]:     -- Executing Goto("Zap/4-1", "aa_2|s|1") in
new stack
Aug 20 11:16:48 VERBOSE[1617]:     -- Goto (aa_2,s,1)
Aug 20 11:16:48 WARNING[1617]: ast_yyerror(): syntax error: syntax error;
Input:
 = ANSWER
^^^^^^
   ^
Aug 20 11:16:48 DEBUG[1617]: Expression is '0'
Aug 20 11:16:48 VERBOSE[1617]:     -- Executing GotoIf("Zap/4-1", "0?4") in
new stack
Aug 20 11:16:48 DEBUG[1617]: Not taking any branch
Aug 20 11:16:48 VERBOSE[1617]:     -- Executing Answer("Zap/4-1", "") in new
stack
Aug 20 11:16:48 VERBOSE[1617]:     -- Executing Wait("Zap/4-1", "1") in new
stack
Aug 20 11:16:49 VERBOSE[1617]:     -- Executing SetVar("Zap/4-1",
"DIR-CONTEXT=general") in new stack
Aug 20 11:16:49 VERBOSE[1617]:     -- Executing DigitTimeout("Zap/4-1", "3")
in new stack
Aug 20 11:16:49 VERBOSE[1617]:     -- Set Digit Timeout to 3
Aug 20 11:16:49 VERBOSE[1617]:     -- Executing ResponseTimeout("Zap/4-1",
"7") in new stack
Aug 20 11:16:49 VERBOSE[1617]:     -- Set Response Timeout to 7
Aug 20 11:16:49 VERBOSE[1617]:     -- Executing BackGround("Zap/4-1",
"custom/aa_2") in new stack
Aug 20 11:16:49 DEBUG[1617]: Scheduling timer at 160 sample intervals
Aug 20 11:16:49 VERBOSE[1617]:     -- Playing 'custom/aa_2' (language 'en')




Sure looks like it is trying to answer, but I keep hearing ringing on the
incoming side.   If I look at my config for aa_2 I see:

[aa_2]
include => aa_2-custom
exten => fax,1,Goto(ext-fax,in_fax,1)	; 
exten => h,1,Hangup()	; 
exten => i,1,Playback(invalid)	; 
exten => i,2,Goto(s,7)	; 
include => ext-local
include => app-messagecenter
include => app-directory
exten => s,1,GotoIf($[${DIALSTATUS} = ANSWER]?4)	; 
exten => s,2,Answer()	; 
exten => s,3,Wait(1)	; 
exten => s,4,SetVar(DIR-CONTEXT=general)	; 
exten => s,5,DigitTimeout(3)	; 
exten => s,6,ResponseTimeout(7)	; 
exten => s,7,Background(custom/aa_2)	; 



Heck and I thought I had this thing running well, and then it all breaks.  If
anyone can point me in the right direction it would be most appreciated..






---
Howard Leadmon
http://www.leadmon.net






More information about the asterisk-users mailing list