Keypress
Definition
One branch of a <menu> tag defining user input.
Value
Determines the result for a user key input. A <menu> tag requires at least one <keypress> tag. The contents of a <keypress> tag are more nodes to execute.
Attributes
Attribute | Required | Values | Description |
---|---|---|---|
name | N | any text | A unique name for the tag |
pressed | Y | any valid number or default or timeout | A numerical value or default or timeout |
Examples
This poll asks recipients to indicate their response by pressing buttons on their phone. Note that there is also a dangerous continual loop: users who enter nothing, or an undefined number, will loop back to the top. The call will not end until the recipient hangs up. This is for informational purposes only!
<menu maxDigits="1" timeout="5500" name="menu_Q_01">
<play type="callfireid">12345</play>
<keypress pressed="1-5">
<setvar varname="response">${call.lastinput}</setvar>
<stash varname="Q_01_Response">${response}</stash>
</keypress>
<keypress pressed="default">
<goto>menu_Q_01</goto>
</keypress>
</menu>
Comments
0 comments
Please sign in to leave a comment.