Customization Examples
Users Menu Examples
Stratagy I&M 06/02
8-9
Customization
Ex
amples
Order Shipment Information
This example illustrates how you can interact with data files to retrieve useful information that
Stratagy gives to callers by request. Stratagy does the following:
1. Asks the caller to enter an order number.
2. Determines whether the order has shipped. For example, by requesting it from another host
computer (using the serial port access
S( )
token), accessing a file on Stratagy’s flash drive, or
accessing a file on a network server.
3. If the order has not shipped, tells the caller. Otherwise, tells the caller the date the order was
shipped.
Program Example
In the followings example, Stratagy system’s flash drive contains the following files:
•
SHIPPED: An ASCII text file with order numbers that have been shipped. One order number
per line. For example:
11111
22222
33333
12345
•
SHIPDATE: An ASCII text file where each line contains an order number and its ship date
separated by a comma. One per line. For example:
11111,06301999
22222,070111999
33333,07061999
12345,07121999
➤
To program the example
1. For User ID 2000, define the user’s record to contain:
2. Access the User ID mailbox via telephone. Record:
Greeting 1: “Please enter the five-digit order number now.”
3. For User ID 2001, access User Mode via telephone. Record:
Greeting 1: “Your order number must be five digits. Good-bye.”
Extension
@R(G1,%S1,20)I(LEN[%S1],!,5,2001)G(2002)
@
Suppresses normal process.
R(G1,%S1,20)
Plays greeting 1. Waits for the caller to enter a telephone number. Reads
the DTMF the caller entered into variable %S1. Waits (20/10 = 2) seconds
for DTMF.
I(LEN[%S1],!,5,2001)
If the length of variable %S1 does not equal 5, goes to User ID 2001.
G(2002)
Goes to User ID 2002.
Содержание Stratagy Flash
Страница 20: ...Contents Index viii Stratagy I M 06 02 ...
Страница 24: ...Introduction Related Documents Media xii Stratagy I M 06 02 ...
Страница 52: ...Installation Step 16 Optional Back up Database Mailbox Names and Greetings 2 18 Stratagy I M 06 02 ...
Страница 102: ...Configure Stratagy SMDI Serial Integration 4 38 Stratagy I M 06 02 ...
Страница 204: ...Customization Examples Auto Menu Examples 8 28 Stratagy I M 06 02 ...
Страница 214: ...AMIS Networking AmisNodeList 9 10 Stratagy I M 06 02 ...
Страница 222: ...System Reports Report Menu Field Descriptions 10 8 Stratagy I M 06 02 ...
Страница 250: ...Special Greeting User ID Mailboxes Operator Mailbox Greeting B 6 Stratagy I M 06 02 ...