Last active
December 18, 2015 14:59
-
-
Save pdeschen/5800987 to your computer and use it in GitHub Desktop.
Rivr showcase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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