Token Programming
Defined Tokens
Stratagy I&M 06/02
7-9
T
o
ken Pr
ogramming
KF
Suppresses DTMF_gate function.
Syntax
@KFV(CALLERID.txt,field,%K,field,%Sn)G(%Sn)
where:
@
Suppress normal process.
KF
Suppress DTMF gate function.
V
Searches Callerid.txt file.
Callerid.txt
File to be searched.
field
Field in Callerid.txt file that is searched for %K match (e.g., phone number).
%K
Value held in Calling Party ID buffer.
field
If a match to %K is found, this field is searched for the associated value (e.g., User ID)
and the value is stored in %Sn.
%Sn
One of the %S storage variables (range: 0~19).
G (%Sn)
Goes to mailbox number stored in %Sn.
Example
@
KFV(CALLERID.txt,1,%K,2,%S2)G(%S2)
@
Suppress normal process
KF
Suppress DTMF gate.
V(CALLERID.TXT,1,%K,2,%S2)
Searches field 1 of the callerid.txt for a value that matches %K. If a match is found,
Stratagy stores the value in field 2 of the callerid.txt as %S2. If no match is found, the
remaining values in the token string are ignored and Stratagy executes the Done
chain.
G(%S2)
Goes to mailbox number stored in %S2 (e.g., user ID 890).
KI( )
Position of substring in string—the KI( ) token searches string for the first occurrence of substring.
The result of the search is the position of the substring within the string, and it is stored as the
variable.
Syntax
KI(substring,string,%Sn)
where:
substring
Any alphanumeric substring. Can be a variable.
string
Any alphanumeric string. Can be a variable.
%Sn
One of the %S storage variables (range: 0~19).
Example
KI(”d”,”abcdefg”,%S0)
Searches string “abcdefg” for the first occurrence of substring “d,” and places the value of the position
of the substring within the string in storage variable 0. The result is the %S0 variable containing 4,
because “d” is the fourth character in the string.
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 ...