LINEADDRESSSTATUS

The LINEADDRESSSTATUS structure describes the current status of an address.

typedef struct lineaddressstatus_tag {
  DWORD  dwTotalSize;
  DWORD  dwNeededSize;
  DWORD  dwUsedSize;

  DWORD  dwNumInUse;
  DWORD  dwNumActiveCalls;
  DWORD  dwNumOnHoldCalls;
  DWORD  dwNumOnHoldPendCalls;
  DWORD  dwAddressFeatures;

  DWORD  dwNumRingsNoAnswer;
  DWORD  dwForwardNumEntries;
  DWORD  dwForwardSize;
  DWORD  dwForwardOffset;

  DWORD  dwTerminalModesSize;
  DWORD  dwTerminalModesOffset;

  DWORD  dwDevSpecificSize;
  DWORD  dwDevSpecificOffset;
} LINEADDRESSSTATUS, FAR *LPLINEADDRESSSTATUS;

Members

dwTotalSize
The total size in bytes allocated to this data structure.
dwNeededSize
The size in bytes for this data structure that is needed to hold all returned information.
dwUsedSize
The size in bytes of the portion of this data structure that contains useful information.
dwNumInUse
The number of stations that are currently using the address.
dwNumActiveCalls
The number of calls on the address that are in call states other than idle, onHold, onHoldPendingTransfer, and onHoldPendingConference.
dwNumOnHoldCalls
The number of calls on the address in the onHold state.
dwNumOnHoldPendCalls
The number of calls on the address in the onHoldPendingTransfer or onHoldPendingConference state.
dwAddressFeatures
The address-related API functions that can be invoked on the address in its current state. This member uses the following LINEADDRFEATURE_ constants:
LINEADDRFEATURE_FORWARD
The address can be forwarded.
LINEADDRFEATURE_MAKECALL
An outbound call can be placed on the address.
LINEADDRFEATURE_PICKUP
A call can be picked up at the address.
LINEADDRFEATURE_SETMEDIACONTROL
Media control can be set on this address.
LINEADDRFEATURE_SETTERMINAL
The terminal modes for this address can be set.
LINEADDRFEATURE_SETUPCONF
A conference call with a NULL initial call can be set up at this address.
LINEADDRFEATURE_UNCOMPLETECALL
Call completion requests can be canceled at this address.
LINEADDRFEATURE_UNPARK
Calls can be unparked using this address.
dwNumRingsNoAnswer
The number of rings set for this address before an unanswered call is considered as no answer.
dwForwardNumEntries
The number of entries in the array referred to by dwForwardSize and dwForwardOffset.
dwForwardSize
dwForwardOffset
The size in bytes and the offset in bytes from the beginning of this data structure of the variably sized field that describes the address's forwarding information. This information is an array of dwForwardNumEntries elements, of type LINEFORWARD. The offsets of the addresses in the array are relative to the beginning of the LINEADDRESSTATUS structure.
dwTerminalModesSize
dwTerminalModesOffset
The size in bytes and the offset in bytes from the beginning of this data structure of the variably sized device field containing an array with DWORD-sized entries, of type LINETERMMODE. This array is indexed by terminal identifiers, in the range from zero to dwNumTerminals minus one. Each entry in the array specifies the current terminal modes for the corresponding terminal set through the TSPI_lineSetTerminal operation for this address. Values are:
LINETERMMODE_BUTTONS
Button press events sent from the terminal to the line.
LINETERMMODE_LAMPS
Lamp events sent from the line to the terminal.
LINETERMMODE_DISPLAY
Display information sent from the line to the terminal.
LINETERMMODE_RINGER
Ringer control information sent from the switch to the terminal.
LINETERMMODE_HOOKSWITCH
Hookswitch event sent between the terminal and the line.
LINETERMMODE_MEDIATOLINE
The unidirectional media stream from the terminal to the line associated with a call on the line. Use this value when routing of both unidirectional channels of a call's media stream can be controlled independently.
LINETERMMODE_MEDIAFROMLINE
The unidirectional media stream from the line to the terminal associated with a call on the line. Use this value when routing of both unidirectional channels of a call's media stream can be controlled independently.
LINETERMMODE_MEDIABIDIRECT
The bidirectional media stream associated with a call on the line and the terminal. Use this value when routing of both unidirectional channels of a call's media stream cannot be controlled independently.
dwDevSpecificSize
dwDevSpecificOffset
The size in bytes and the offset in bytes from the beginning of this data structure of the variably sized device-specific field.

Remarks

Device-specific extensions should use the DevSpecific (dwDevSpecificSize and dwDevSpecificOffset) variably sized area of this data structure.

This data structure is returned by TSPI_lineGetAddressStatus. When items in this data structure change as a consequence of activities on the address, a LINE_ADDRESSSTATE message is sent to the application. A parameter to this message is the address state, of type LINEADDRESSSTATE_, which is an indication of the status item in this record that changed.

See Also

LINE_ADDRESSSTATE, LINEADDRFEATURE_ Constants, LINEFORWARD, LINETERMMODE_ Constants, TSPI_lineGetAddressStatus, TSPI_lineSetTerminal