Token Programming
Defined Tokens
Stratagy I&M 06/02
7-15
T
o
ken Pr
ogramming
Q( )
Question and answer (Voice Forms)—the Q( ) token enables you to ask a caller a series of questions
and store all the caller’s responses as a single message or multiple messages in the current User ID.
Record each question as a greeting. Stratagy plays each question/greeting with a tone, records a
response, and then plays the next question/greeting until all the specified questions/greetings have
been played.
You can ask the caller up to 20 questions. To play more than seven questions (using greetings 1 to 7
for the current User ID), use questions from other User IDs by specifying which User ID’s greeting to
access with a # sign followed by the uid. For example, G7#123 would use greeting 7 from User ID
123.
Syntax
Q(Gn,...,E...)
where:
Gn
Greeting number (range: 1~7).
E
Groups the responses to the previous greetings as a single message.
...
Additional greetings or groupings.
Examples
Q(G1,G2,G3,G4,G5,G6,G7,G1#9000,G2#9000)
Stratagy asks nine questions as recorded in the specified greetings (seven greetings from the current
User ID and two greetings from User ID 9000), records nine responses, and stores the responses as
one message.
Q(G1,G2,E,G3,E)
Stratagy groups the responses to greetings 1 and 2 as one message and the response to greeting 3
as a different message.
R( )
Read DTMF from a caller—the R( ) token enables you to obtain caller information while prompting
the caller with the specified recorded greeting. The token plays the greeting specified for the current
User ID and enables the caller to make DTMF entry which is stored in the specified %S variable.
Stratagy interrupts the greeting as soon as the caller enters the first DTMF tone. If there is no caller
DTMF entry, Stratagy initializes the %S variable to empty, i.e., ””.
Syntax
R(Gn,%Sm,delay)
where:
Gn
Greeting number for the current User ID (range 1~7).
%Sm
One of the %S storage variables (range: 0~19).
delay
Time in tenths of seconds to wait for DTMF after playing the greeting (range: 0~99). If
omitted, defaults to 0.
Example
To prompt and have a caller enter a telephone number and have Stratagy store that telephone
number to be used later, you could:
Record in greeting 1: “Enter your telephone number. Finish by pressing the # sign.”
Use
R(G1,%S6,20):
G1
Plays greeting 1.
S6
Stores the caller’s entry in variable %S6.
20
Waits 2 seconds (20
÷
10 = 2) for DTMF after playing the greeting.
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 ...