Toshiba Stratagy 4 Installation And Maintenance Manual page 211

Hide thumbs Also See for Stratagy 4:
Table of Contents

Advertisement

STRATAGY
4/
6
/
2 4
INSTALLATION
AND
MAINTENANCE
MANUAL
SEPTEMBER
1994
2.3
CONFIRMING
DIGITS ENTERED BY A
CALLER
Suppose that in the previous example,
instead of testing
whether the caller entered exactly seven digits, you want
to play the entered digits back to the caller and have him
confirm that the number is correct.
2.3.1
THE ASSUMPTIONS
In this example, assume:
"enter fax number" information
User ID: 1000
fax file name: fax.dcx
dial 9 for an outside line
'
2.3.2
THE PROGRAMMING
Customize
User ID 1000 by defining
the Users record
and recording the greetings.
Define the Users record to contain:
Extension:
@ R(G1 ,%Sl)P(G2)P(%SI)
R(G3,%S2)l(%S2,!,"1",1000)T(fax.dcx,%S1)
Access User Mode via telephone.
Record:
greeting
I: "Please enter your fax phone number."
greeting 2: "You entered.. ."
greeting 3: "If this is correct, please enter 1 now.
Otherwise, enter 2."
The Extension field breaks down as follows
@
Suppress normal process.
R(GI ,%Sl)
Play greeting 1. Wait for the
caller to enter a phone number.
Read the DTMF the caller
entered (excluding the
terminating #) into variable
%Sl.
P(G2)
Play greeting 2 for this User ID.
P(%Sl)
Say verbally the DTMF digits in
variable %Sl (the phone
number the caller entered).
R(G3,%S2)
Play greeting 3. Wait for the
caller to enter a 1 or 2. read the
DTMF the caller entered
(excluding the terminating #)
into variable %S2.
I(%s2,!,"1",1000)
I:
If statement for conditional
transfer of control. Compares
two strings.
%S2:
the first string -the contents
of variable %S2 (the fax
number the caller entered).
1. . .
test for the string not being
equal to.
E-0
I(%s2,!,"1",1000)
1 :
value of the second string is
the constant 1.
1000:
User ID Stratagy goes to if the
two strings are not equal.
Not equal.
If the value in %S2
does not equal 1, loop back to
the beginning of User ID 1000.
Equal.
Proceed to the next
token.
T(fax.dcx,"S,%Sl")
;ymre;,document
to the phone
fax.dcx:
name of the file to fax.
9:
dial 9 for an outside line.
"pause for 2 seconds.
%Sl :
dial the DTMF the caller
entered for the fax number.
2.3.3
HOW IT WORKS
Stratagy does the following:
1.
Prompts
the caller for a fax phone
number,
and
reads it into variable %Sl.
2.
Plays "You entered"
followed
by the number
just
entered in %Sl.
3.
Prompts the caller to enter 1 or 2. If the caller does
not enter
1, loops back to the beginning
of this
User ID and start over with step 1.
4.
If the caller entered
1, Stratagy attempts
to send
the fax to the phone number the caller entered.
2.4
USING A STATUS USER ID TO CHECK
MESSAGE COUNT FOR MULTIPLE USER
IDS
The creation
of the status
User ID involves
using an
optional argument.
Suppose
that one person owns several User IDS which
he has given out to different classes of callers (personal
friends one number, business clients another, etc.). This
person would like to be able to call in to check if any of
these User IDS have messages
waiting for him without
having to access each User ID in turn.
The token string P(Gn) will play greeting n for the current
User ID or P(M) will play the number of messages
for the
current User ID. This is normally what you want.
However,
the
P token
takes
an optional
second
argument,
which in some cases indicates another
User
ID whose information
is to be played. Using this feature,
you can create a status User ID which will tell the number
of messages waiting in several other User IDS.
B-3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Stratagy 6Stratagy 24

Table of Contents