Chapter 12: Programming Examples
139
To present a menu for your caller, you can use:
•
The menu fields associated with the mailbox. The mailbox allows the caller to en-
ter either a one-digit response to the menu or another mailbox. Amanda waits long
enough to be sure that the caller has finished. (For this method, turn Do Not Dis-
turb ON.)
•
The M() command. In this case, Amanda waits for only one digit. It is faster that
using menu fields, but it does not allow the caller to enter a mailbox with more
than one digit. (For this method, turn Do Not Disturb OFF.)
To convert the DTMF (or touch) tones entered by the caller into a number, use:
•
The R() command, which stores a number in a variable.
To play a greeting or play back the number stored by the R() command, use:
•
The P() command. This command has many variations. See the “Token Refer-
ence” on page 89 for details.
To play up to 20 questions (from greetings) and store the answers as a single message, use:
•
The Q() command, which also allows the caller to edit the responses.
Using Tokens
This example describes parts of an application that records consumer reactions to sample
products. For example, hair stylists may be mailed information about a line of new hair
care products.
If interested, a stylist can call an 800 number to request a sample of one of them. The
sample is mailed along with product literature and a test ID that uniquely identifies the
stylist with the product.
After using the product, the stylist calls again to answer a series of questions. For services
rendered, the stylist is mailed a small fee or a free case of the product.
Later, the survey company analyzes the data and reports back to the manufacturer. The
application has two parts:
•
Gathering information about a potential tester, such as name, address, telephone
number, and the product to be sent
•
Quizzing the testers about the product
The tester information part (explained in “Gathering Testing Information” on page 140)
uses:
•
Menus using the M() command and 0 to reach a live attendant at any time.
•
The P() command to play a general greeting.
•
The R() command to request a telephone number, convert the DTMF tones en-
tered by the stylist, and store the telephone number in a variable.
•
The |() command (that’s the pipe command or vertical bar command) to add data
about the stylist to a database file.
•
A series of greetings that ask for the parts of an address. The Q() command plays
the greetings and allows the stylist to edit the responses before they are saved as a
message.
The quiz part (not explained) uses:
•
Menus using the M() command, using 0 to reach a live attendant at any time.
•
The R() command to request the test ID, convert the DTMF tones entered by the
stylist, and store the ID in a variable.
Содержание [email protected] Version 3.xx
Страница 1: ...Installing AmAndA Work Place Version 3 xx Installer s Guide Edition 7 01...
Страница 4: ...iv Installing Amanda Work Place...
Страница 60: ...52 Installing Amanda Work Place...
Страница 68: ...60 Installing Amanda Work Place...
Страница 132: ...124 Installing Amanda Work Place...
Страница 150: ...142 Installing Amanda Work Place...
Страница 156: ...148 Installing Amanda Work Place...
Страница 194: ...186 Installing Amanda Work Place...
Страница 206: ...198Installing Amanda Work Place...