rendered paste body
[globals]
TIMEOUT = 10
REPEAT = 3
[general]
autofallthrough=yes
static=yes
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; begin dialplan ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[experimental]
exten => s,1,Answer()
exten => s,2,Set(COUNT=0)
exten => s,3,GotoIf($[${COUNT} < ${REPEAT}]?s,4:s,8)
exten => s,4,Verbose("${COUNT} < ${REPEAT}")
exten => s,5,Swift("Please enter the suffix of the share 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 => s,7,Swift("Goodbye!")
exten => s,8,Hangup()
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,Goto(s,3)
exten => i,1,AGI(cucxml.pl|'${ACCT_FLAG}_menu'|'acct_num=${ACCT}'|'acct_sufx=${PRESSED}')