working confirmation for money
This commit is contained in:
@@ -743,6 +743,10 @@ exten => s,1,Playback(something-terribly-wrong)
|
||||
same => n(start),Read(money,sorry-youre-having-problems,,,1,12)
|
||||
same => n,GotoIf($[ "${money}" == "" ]?start)
|
||||
same => n,GotoIf($[ ${money} > 0 & ${money} < 10000 ]?:start)
|
||||
same => n,Playback(you-entered)
|
||||
same => n,SayNumber(${money})
|
||||
same => n,Read(input,if-correct-press,1,,1,7)
|
||||
same => n,GotoIf($[ "${input}" != "1" ]?start)
|
||||
same => n,Set(FILE(/tmp/money.txt,,,al,u)=${money} ${CALLERID(num)})
|
||||
same => n,Playback(queue-thankyou)
|
||||
same => n,Playback(vm-goodbye)
|
||||
|
||||
Reference in New Issue
Block a user