Skip to content

Instantly share code, notes, and snippets.

@radralph
Last active November 3, 2016 01:26
Show Gist options
  • Save radralph/9480866 to your computer and use it in GitHub Desktop.
Save radralph/9480866 to your computer and use it in GitHub Desktop.
wait(3000)
result = ask "Hi, this is a test call....... please input number 1 or number 2....", {
:choices => "1, 2",
:mode => "dtmf",
:timeout => 15.0,
:attempts => 3,
:terminator => '#'
}
say "you chose number" + result.value
say "goodbye"
hangup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment