Menu tag

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

Attribute Required ValuesDescription
name N any text a unique name for the tag
timeout N numerical value a timeout in seconds or miliseconds (over 1000 is considered milliseconds) for the menu.
maxDigits N numerical value a 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 2 3 or anything else (default)
    <menu name="main-menu">
        <play type="callfireid">332122</play>
        <keypress pressed="1">
            <transfer name="transfer-sales" 
                      callerid="5555551212" 
                      musiconhold="Silent">
                      5555552222
            </transfer>
        </keypress>
        <keypress pressed="3">
            <transfer name="transfer-support" 
                      callerid="5555551212"
                      musiconhold="Silent">
                      5555553232
            </transfer>
        </keypress>
        <keypress pressed="4-6">
              <transfer name="transfer-support" 
                      callerid="5555551213"
                      musiconhold="Silent">
                      5555553232
            </transfer>
        </keypress>
        <keypress pressed="Default">
            <play type="callfireid">332192</play>
        </keypress>
    </menu>

Also See

Further Reading

Coming soon.