Menu prompt

2 views
Skip to first unread message

dilshodm

unread,
Jun 17, 2008, 7:40:15 PM6/17/08
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.
Reply all
Reply to author
Forward
0 new messages