Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added tropo scripts

  • Loading branch information...
commit 00eb18dba31fc739594ec98cfadfb1a59320ab25 1 parent 725a58f
@chrismatthieu authored
Showing with 7 additions and 0 deletions.
  1. +6 −0 tropo.rb
  2. +1 −0  tropotest.rb
View
6 tropo.rb
@@ -0,0 +1,6 @@
+recoresult = ask $currentCall.getHeader("x-sbc-prompt"), {
+ :choices => $currentCall.getHeader("x-sbc-choices")}
+
+transfer $currentCall.getHeader("x-sbc-returnaddress"), {
+ :headers => {'x-voxeo-result' => recoresult.value}
+ }
View
1  tropotest.rb
@@ -0,0 +1 @@
+say "You said " + $currentCall.getHeader("x-voxeo-result")
Please sign in to comment.
Something went wrong with that request. Please try again.