Toshiba Stratagy 4 Installation And Maintenance Manual page 210

Hide thumbs Also See for Stratagy 4:
Table of Contents

Advertisement

STRATAGY
4/6/24
INSTALLATION
AND
MAINTENANCE
MANUAL
SEPTEMBER
1994
The Extension field breaks down as follows:
,
@
Suppress normal process.
R(G1 ,%Sl)
Play greeting 1. Wait for the
caller to enter a phone (fax)
number. Read the DTMF the
caller entered (excluding the
terminating #) into variable
%Sl.
I(LEN["/,Sl],!,"7",801)
I:
If statement for conditional
transfer of control.
Compares two strings.
LEN[%Sl]:
T(\faxes\faxl .dcx,"9,
Fax the document to the
%Sl")
phone number.
\faxes\faxl .dcx:
name of the file to fax
9:
value of the first string
(%Sl) is the length of the
first string (%Sl), i.e., the
number of digits entered
by the caller.
!:
dial 9 for an outside line
" pause for 2 seconds
7:
%Sl :
dial the DTMF the caller
entered
ir
the value of the second
string is the constant 7.
801:
2.1.3
HOW IT WORKS
When a caller accesses
fax information
User ID 800,
Stratagy prompts the caller to enter his fax number, then
attempts to fax the document
to that phone number.
2.2
CONFIRMING
THE NUMBER OF DIGITS
ENTERED BY A CALLER
To make the fax back example a little more complicated,
suppose you also want to check that the entered phone
number is exactly seven digits long -to
avoid short (bad)
phone numbers
and to avoid making
long distance
toll
calls.
2.2.1
THE ASSUMPTIONS
In addition to the assumptions
for the "fax back" example,
assume:
"incorrect length" information
User ID: 801
2.2.2
THE PROGRAMMING
In this case, define the Users record to contain:
Extension:
@R(Gl,%Sl)I(LEN[%S1],!,"7",80l~
T(\faxes\faxl
.dcx,"S,%Sl")
The additional
token in the Extension field breaks down
as follows:
test for the string not being
equal.
User ID Stratagy goes to if
the two strings are not
equal.
If
not equal,
Stratagy goes
to User ID 801. This is an
information User ID that
contains a greeting informing
the caller that the length of
the entered phone number is
not what is expected. User
ID 801's Done chain might
point back to User ID 800 to
give the caller another
chance to enter the phone
number correctly.
If
equal,
Stratagy proceeds
with the next token.
2.2.3
HOW IT WORKS
This variation does the following:
1.
Computes
the length of string %Sl
(how many
digits were entered by the caller).
2.
Compares
that value with the constant
string 7. If
not
equal,
Stratagy
jumps
to User
ID 801
(information
User ID).
3.
If the length of string %Sl equals the constant
7,
Stratagy proceeds to the next token. In this case,
attempts
to fax the document
to the
phone
number.
,
B-2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Stratagy 6Stratagy 24

Table of Contents