Skip to content

Instantly share code, notes, and snippets.

@fagnersilva
Created January 18, 2016 11:15
Show Gist options
  • Save fagnersilva/76279ba2d83268daafeb to your computer and use it in GitHub Desktop.
Save fagnersilva/76279ba2d83268daafeb to your computer and use it in GitHub Desktop.
Read(variable[,filename[,maxDigits[,option[,attempts[,timeout]]]]])
; Read a 4 digit number, allowing up to 3 attempts, and say this number back to the caller:
exten => 123,1,Read(NUMBER,,4,3)
exten => 123,n,SayNumber(${NUMBER})
exten => 123,n,Goto(1)
ou
exten=>6123,1,Read(Digits,enter-ext-of-person)
exten=>6123,n,Playback(you-entered)
exten=>6123,n,SayNumber(${Digits})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment