[Asterisk-Users] * does not listen to DTMF during wait ?

Eric Wieling
2004-11-06T14:04:10Z

Damon Estep wrote:
  > I also tried RepsonseTimeout but then you can only have one
timeout
> event (ie hangup). Sure would be nice to specify progressive timeout,
> like on first timeout goto, on second timeout hangup.
> I assume loligo/silence/10 is an empty gsm file that I have not
> installed...

[auto-attendent]
;
; Auto Attendent
;
exten => s,1,SetVar(SAVED_CONTEXT=incoming)
exten => s,2,SetVar(COUNT=1)
exten => s,3,Answer
exten => s,4,DigitTimeout(5)
exten => s,5,ResponseTimeout(7)
exten => s,6,Wait(.5)
exten => s,7,Background(if-u-know-ext-dial)

exten => t,1,GotoIf($[${COUNT} = 3]?exit,1)
exten => t,2,SetVar(COUNT=$[${COUNT} + 1])
exten => t,3,Goto(s,7)


exten => i,1,GotoIf($[${COUNT} = 3]?exit,1)
exten => i,2,SetVar(COUNT=$[${COUNT} + 1])
exten => i,3,Playback(extension)
exten => i,4,SayDigits(${INVALID_EXTEN})
exten => i,5,Wait(.5)
exten => i,6,Playback(pbx-invalid)
exten => i,7,Goto(s,6)


exten => exit,1,Playback(goodbye)
exten => exit,2,Wait(3)
exten => exit,3,Hangup


include => extensions