I am testing an ivr but I'm having problems. The call keeps looping and it 
doesn't hangup the call after passing three times through the menu. Here's my 
conf:

exten => s,n,NoOp("Here's Count")
exten => s,n,NoOp(${COUNT})

;123,n,Set(COUNT=$[${COUNT} - 1])

exten => s,n,GotoIf($[${COUNT} = 4]?33,1:44,1 )


exten => 1,1,goto(tech-support,s,1)
exten => 2,1,goto(sales,s,1)
exten => 3,1,goto(cust-service,s,1)
exten => 100,1,goto(wilson,s,1)
exten => 102,1,goto(sales,s,1)

exten => i,1,Playback(invalid)
exten => i,n,Playback(please-try-again)
exten => i,n,goto(ivr,s,5)
exten => i,n,Playback(goodbye)
exten => i,n,Hangup

exten => 33,1,PlayBack(please-try-again-later)
exten => 33,n,PlayBack(call-terminated)
exten => 33,n,PlayBack(goodbye)
exted => 33,n,HangUp()

exten => 44,1,goto(ivr,s,5)

exten => t,1,goto(ivr,s,2)

exten => h,1,Hangup


When it enters extension 33 it should hangup the call but, if the caller stays 
on the line the "exten => t,1,goto(ivr,s,2)" takes over and the menu keeps 
repeating. Should I just remove that t extension?


      

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to