Token Programming
Defined Tokens
Stratagy I&M 06/02
7-13
T
o
ken Pr
ogramming
N( )
(continued)
Examples
Suppose an ASCII file contains a listing of dealers, available parts, and orders on those parts. You
could use the R( ) token to obtain information about how many parts the dealer wants to order and
then use the N( ) token to update the database.
R(G1,%S1,40)
G1
Plays greeting 1: “Please enter your dealer number.”
%S1
Stores the caller’s entry in variable %S1.
40
Waits 4 seconds (40
÷
10 = 4) for DTMF after playing the greeting.
R(G2,%S2,20)
G2
Plays greeting 2: “Please enter the number of telephones you want to order.”
%S2
Stores the caller’s entry in variable %S2.
20
Waits 2 seconds (20
÷
10 = 2) for DTMF after playing the greeting.
R(G3,%S5,20)
G3
Plays greeting 3: “Please enter the number of key systems you want to order.”
%S5
Stores the caller’s entry in variable %S5.
20
Waits 2 seconds (20
÷
10 = 2) for DTMF after playing the greeting.
N(ORDERS.DOC,5,%S1,9,%S2,12,%S5)
•
Searches ORDERS.DOC for the first record that has the value of %S1 in field 5.
•
Replaces the current value of field 9 with %S2.
•
Replaces the current value of field 12 with %S5.
•
Saves the record back to the database.
O( )
Timed on-hook—an on-hook condition for the specified amount of time. Depending upon the value of
tenths, you can effect a flash, or even a hang-up condition. This is useful for generating an
intermediate hang-up condition during token processing without terminating the actual continued
token processing.
Syntax
O(tenths)
where:
tenths
Time in tenths of seconds.
Example
O(60)
Goes on-hook for 6 seconds (60
÷
10 = 6).
Table 7-3
Defined Tokens (continued)
Token
Description
Содержание 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 ...