Recent activity
Subscribe to this feed
zlu replied on January 08, 2010 22:44 to the question "does action attribute in gather support custom params?" in Twilio:
zlu replied on January 08, 2010 21:47 to the question "does action attribute in gather support custom params?" in Twilio:
would like to add the actual code because previous code snippet was incorrectly formatted.
http://pastie.org/772146
zlu asked a question in Twilio on January 08, 2010 21:45:
does action attribute in gather support custom params?Let's say I have a hash { '1' => 'foo', '2' => 'bar' }. Let's say I play hash values to user using . I'd like to act upon the message being said to user when the user press any keys (such as 2#) on the dialpad. So if user press 2# when hearing 'foo' being played, my program needs to receive the corresponding hash key '1'. I tried to utilize "action" attribute of but that seems to be illegal. How would you do it? Thanks.
p.s. I did something like this
my_hash.each do |k, v|
Gather
v
end
The error is: id is an invalid template token
Loading Profile...


