Avaya Logo

Previous Topic

Next Topic

Book Contents

Book Index

ctiCallState

Description

ctiCallState provides the state of all the calls present at the Avaya IR port extension.

Output

Return values

The return code indicates whether the CTI DIP can find a call present at the Avaya IR port.

If successful, the result is the call ID of call #1.

On failure, the result is -1.

Usage notes

A Avaya IR port can support up to 3 simultaneous calls. This external function can be used to determine the call ID and associated state (ALERTING, HELD, ESTABLISHED) of the calls present at the port. The states are represented by values:

Value

State

0

None

1

Delivered

2

Established

3

Held

4

Conferenced

5

Transferred

6

Initiated

7

Originated

Note:
The ordering of the calls is determined by the arrival order. Call #1 is most likely the first call received by the Avaya IR.

Example

External Function

Function Name: ctiCallState

Use Arguments: call2id call3id call1state call2state call3state

Return Field: retcode

� 2002 Avaya Inc. All Rights Reserved.