Chapter 12: Programming Examples
141
telephone number where we can reach you if neces-
sary. Please start now.
Mailbox 1001
has:
Extension Field:
@=(%S2,%M(1000))M(G3,2,30)G(0)
%M[1000] is the number of messages stored in mailbox 1000.
Amanda stores this number in a variable (%S2). This message num-
ber becomes associated with the stylist for the duration of the sur-
vey.
Then Amanda plays the menu in Greeting 3. If there is no response
from the caller, Amanda plays Greeting 3 again after a three-second
pause. If there is still no response, Amanda executes the next token
in the Extension field (which goes to the operator).
N
OTE
:
Using the message number to uniquely identify the tester works
only because no messages will be deleted from mailbox 1000
until after the survey. If you will have more messages than disk
space, keep a number in another file. Read the number using the
[() command, increment it by one with the +() command, and
write the new number (for the next tester) back to the file using
the ]() command.
DND:
OFF
Store Messages: NO
Greeting 3:
Please select one of the following products….
Menu 1:
1002
Menu 2:
1003
… other menu options …
Menu 0:
0
mailboxes 1002
,
1003
, … have:
Extension Field:
@=(%S3,%S2)+(10000,%S3)
|(C:\\TESTERS\\TESTX.TXT)P(G1)G(999)
Next Amanda makes a copy (%S3) of the message number (which
identifies the stylist) and adds 10000 (or some other product differ-
entiating number) to it. This becomes the test ID.
Then Amanda appends the stylist’s telephone number (%S1), mes-
sage number (%S2), and product number (%S3) to a database file
(C:\TESTERS\TESTX.TXT).
Finally, Amanda plays Greeting 1 from the current mailbox and
hangs up. (It would be a good idea to have the user verify that the
stylist did indeed want this product or return to mailbox 1001, but
this example does not do that. You would play a greeting naming the
product and ask the stylist to confirm, similar to reconfirming the
telephone number in Example 4.)
DND:
OFF
Store Messages: NO
Greeting 3:
Thank you for agreeing to test product such-and-such. You will be
receiving…within 10 days. Please try the product and call this sys-
tem again to answer a few questions about it….
Содержание [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...