dilshodm
unread,Jun 17, 2008, 7:40:15 PM6/17/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Adhearsion
Hi,
In the 'menu' command I need to play the menu prompt only once. After
timeout or invalid hook it shouldn't play the menu prompt again. Is
that available?
It would be great to add :digits option and enter the digits, returned
by invalid and timeout blocks.
For example:
res = interruptable_play "menu_prompt"
menu :digits => res do |link|
link.menu_1 1
link.menu_2 2
link.on_invalid { interruptable_play "try_again" } # Here this block
can return another digit, entered by user, which should go to menu
entered digits
link.on_premature_timeout { interruptable_play "press_some_key" } #
Here this block can return another digit, entered by user, which
should go to menu entered digits
link.on_failure { hangup }
end
Is it available? It can do the menu command more versatile.
Regards.