Created
October 7, 2009 22:30
-
-
Save cloudvoxcode/204515 to your computer and use it in GitHub Desktop.
Answer call, welcome with Matrix monologue, prompt for input, speak today's date
This file contains hidden or 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
| # Cloudvox works with standard Asterisk (AGI) libraries, like Adhearsion | |
| default { | |
| play 'sounds/matrix' | |
| execute 'swift', '"Press 1 to hear the date."' | |
| case input(1) | |
| when '1' | |
| execute 'swift', '"Today is %s"' % Time.now.strftime("%A, %B %e") | |
| else | |
| play 'unavailable' | |
| end | |
| play 'goodbye' | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment