harry versteht
2007-Oct-31 21:12 UTC
[Telegraph-users] link_to_dtmf - store pressed digit in variable?
hello instead of specifying each and every digit and its action, i would like to be able to do something like: voice.link_to_dtmf ''menu'' do link pressed_digit, :action => some_action, :id => pressed digit end and then have the pressed digit stored in - yeah, ''pressed_digit''. is that possible? cheers, harry
harry versteht
2007-Nov-08 20:01 UTC
[Telegraph-users] link_to_dtmf - store pressed digit in variable?
But it doesn''t have the default and invalid options, which comes in handy. Also, does any of these functions have a repeat/number-of-tries? Tried to find it in agi.rb/call_connection.rb - no luck. 2007/11/1, Jonathan Palley <jpalley at gmail.com>:> You''ll want to use a voice "form". See: > > http://telegraph.rubyforge.org/wiki/wiki.pl?UsingAGI#Making_Forms > > You can basically do exactly as you want. > > The theory behind this is to really think about things as you would > in HTML. A link is simply a link (i.e. can''t have user inputted > data) where-as a form has user inputted data. Furthermore, when > asking for user inputted data you generally need to specific some > parameters (like how many digits to accept) and this gives you a > better syntax to define it in. > > Best - > JP > > > > > On Nov 1, 2007, at 5:12 AM, harry versteht wrote: > > > hello > > > > instead of specifying each and every digit and its action, i would > > like to be able to do something like: > > > > voice.link_to_dtmf ''menu'' do > > link pressed_digit, :action => some_action, :id => pressed digit > > end > > > > and then have the pressed digit stored in - yeah, ''pressed_digit''. is > > that possible? > > > > cheers, harry > > _______________________________________________ > > Telegraph-users mailing list > > Telegraph-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/telegraph-users > >