In Example 1: Caller calls an application you created a
basic voice application which just accepted an incoming call and played
a Welcome message to the caller. In this example you will expand your
application to include a menu with five different choices. You will
add functionality to each menu choice in later examples. This example introduces the use of attributes objects to play a
menu to the caller.
General overview of creating and playing a menu
Creating and playing a menu involves four steps:
- Create the properties required for the menu items. Each menu item
consists of a label which is used to reference it, a DTMF
key, or keys, which the caller can use to select it, a voice
segment that the system will play for the item, and a word,
or words, that the caller can say to select it.
- Create attribute objects (containers for attributes), using the
menu item properties from step 1, to tell the application how to play
the information and what to expect in reply.
- Set any required attributes of the attribute objects, for example
time-outs.
- Play the menu, using the attribute objects from step 2.