Skip to content

Instantly share code, notes, and snippets.

@pdeschen
Last active December 18, 2015 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pdeschen/5800987 to your computer and use it in GitHub Desktop.
Save pdeschen/5800987 to your computer and use it in GitHub Desktop.
Rivr showcase
if (login() == null) return STATUS_INVALID_USER;
Interactions mainMenu = newInteraction("main-menu")
.dtmfBargeIn(1)
.audio(audioPath("vm-youhave"))
.synthesis("1")
.audio(audioPath("vm-message"))
.noInputTimeout(DEFAULT_TIMEOUT)
.toInteractions();
alwaysReprompt(mainMenu);
String menu;
do {
menu = processDtmfTurn(mainMenu);
if ("0".equals(menu)) {
mailboxConfigure();
} else if ("1".equals(menu)) {
messageMenu();
} else if ("3".equals(menu)) {
advancedOptions();
}
} while (!"#".equals(menu));
processTurn(audio("good-bye", "vm-goodbye"));
return STATUS_SUCCESS;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment