Skip to content

Instantly share code, notes, and snippets.

@cloudvoxcode
Created June 18, 2010 00:13
Show Gist options
  • Save cloudvoxcode/442998 to your computer and use it in GitHub Desktop.
Save cloudvoxcode/442998 to your computer and use it in GitHub Desktop.
[{"name":"speak","phrase":"Thanks for calling My Company. Press 1 for Bob or 2 for Sally."},
{"name":"getdigits","max":"1","url":"http://my.server/send-caller-somewhere.json"}]
# grab the parameter "result", which is the digit pressed. could generate this
# JSON in any language; this assumes your language stores it in $result
# more: http://help.cloudvox.com/faqs/getting-started/http-api#handling_caller_input
[{"name":"dial","destination":$result}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment