Skip to content

Instantly share code, notes, and snippets.

@cloudvoxcode
Created October 7, 2009 22:30
Show Gist options
  • Save cloudvoxcode/204515 to your computer and use it in GitHub Desktop.
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
# 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