Permalink
Browse files

added tropo scripts

  • Loading branch information...
1 parent 725a58f commit 00eb18dba31fc739594ec98cfadfb1a59320ab25 @chrismatthieu committed May 21, 2011
Showing with 7 additions and 0 deletions.
  1. +6 −0 tropo.rb
  2. +1 −0 tropotest.rb
View
@@ -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
@@ -0,0 +1 @@
+say "You said " + $currentCall.getHeader("x-voxeo-result")

0 comments on commit 00eb18d

Please sign in to comment.