rendered paste body
[globals]
TIMEOUT = 10
REPEAT = 3
[general]
static=yes
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; begin dialplan ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[experimental]
exten => s,1,Answer()
exten => s,2,Set(TIMEOUT(response)=10)
exten => s,3,Set(COUNT=0)
exten => s,4,Verbose("${COUNT} < ${REPEAT}")
exten => s,5,Swift("Please enter the suffix of the ${ACCT_FLAG} account followed by the pound sign. To hear a list of your ${ACCT_FLAG} account suffixes just press the pound sign.")
exten => s,6,WaitExten()
exten => #,1,AGI(cucxml.pl|'${ACCT_FLAG}_menu'|'acct_num=${ACCT}'|'acct_sufx=')
exten => #,2,Goto(s,4)
exten => t,1,Set(COUNT=${COUNT}+1)
exten => t,2,GotoIf($[${COUNT} < ${REPEAT}]?s,5)
exten => i,1,AGI(cucxml.pl|'${ACCT_FLAG}_menu'|'acct_num=${ACCT}'|'acct_sufx=${PRESSED}')