Avaya Logo

Home

Previous Topic

Next Topic

Book Contents

Book Index

Data gathering instructions

The data gathering instructions get information from a caller or from a stored database. This section describes the data gathering instructions and provides examples of those type of instructions. A sample script at this end of this section illustrates how these instructions might be used in an application.

Value

Meaning

-1

Function is not used (default)

0

Do not change value of current function

'c' or 'cc'

New value where c is:

0-9, #, * or A-D (only on extended keypad, such as an
operator console)

The following functions and characters might be specified for the instruction:

ttdelim('#1','#*','*1','*2')

Characters

Meaning

#1

Erase one character

#*

Erase all characters

*1

Get operator

*2

Play help message

Script routines written by the application developer must check for *1 and *2 in the buffer. If the ttdelim instruction uses only one argument, then a default value must be entered for the other three arguments. An example of a ttdelim instruction using only the erase-all function is ttdelim(-1,'#',-1,-1). Whenever erase-char and erase-all are used in a script, a delim argument is probably used to allow a caller to end touch-tone entry. This argument indicates to the getinput instruction that although it may have received the maximum number of digits, a caller may make a mistake and may want to erase some digits and re-enter them.

To allow for the extra digits requested by a delim1 or delim2 argument, the getinput instruction should specify more digits than it needs. For instance, if a 5-digit entry is required, but it is anticipated that a caller might enter all incorrectly and need to erase them, getinput would require a minimum of 7 digits to accommodate the two-digit delineator for erase-all.

Based on the previous arguments for the sample ttdelim instruction shown earlier, the getinput instruction would have the results given by the examples in the following table. 

Input

r.0

Destination

Script Action

12345

5

12345

Use 5 digits

123#*45678

5

45678

Use 5 digits

12*1

4

12*1

Transfer to operator

*1

2

*1

Transfer to operator

12*2

4

12*2

Play help message and reprompt for input

The time-outs for the system-defined functions, erase-char and erase-all, are the same. The tttime instruction only uses the firstsec argument once, but it repeatedly uses the interdig argument to wait the maximum amount of time specified for receiving the next digit. The application developer needs to write code to implement the functions. For example, delim2 would need a talk instruction to play a help message.

In This Section

Sample script using data gathering instructions

� 2003 Avaya Inc. All Rights Reserved.