Skip to main content

Definition

This is a method to present the user with a list of choices. For each <menu>, there can be one or several branches.

Value

The menu tag requires at least one <play> tag and one <keypress> tag.

Attributes

AttributeRequiredValuesDescription
nameNany textA unique name for the tag
timeoutNnumerical valueA timeout in seconds or miliseconds (over 1,000 is considered milliseconds) for the menu
maxDigitsNnumerical valueA maximum number of digits for user input

Examples

In the example below, the user is prompted with file 332122, and catches user input if the user presses 1 3 4-6 or anything else (default).

xml
<menu name="main_menu">
<play type="callfireid">332122</play>
<keypress pressed="1">
<transfer name="transfer_sales" callerid="5555551212">
5555552222
</transfer>
</keypress>
<keypress pressed="3">
<transfer name="transfer_support" callerid="5555551212">
5555553232
</transfer>
</keypress>
<keypress pressed="4-6">
<transfer name="transfer_support2" callerid="5555551213">
5555553232
</transfer>
</keypress>
<keypress pressed="Default">
<play type="callfireid">332192</play>
</keypress>
</menu>