
Token Programming
Defined Tokens
5-12
Strata CIX40 Voice Processing Programming Manual 7/06
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 5-3
Defined Tokens
(continued)
Token
Description
Summary of Contents for Strata CIX GVPH
Page 10: ...This page is intentionally left blank ...
Page 102: ...This page is intentionally left blank ...
Page 122: ...This page is intentionally left blank ...
Page 144: ...This page is intentionally left blank ...
Page 152: ...This page is intentionally left blank ...