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 the returned information.
-
dwUsedSize
-
The size in bytes of the portion of this data structure that contains useful information.
-
dwNumInUse
-
Specifies 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
-
Specifies 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 outgoing 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 LINEADDRESSSTATUS structure. The offsets dwCallerAddressOffset and dwDestAddressOffset in the variably sized field of type LINEFORWARD pointed to by dwForwardSize and dwForwardOffset are relative to the beginning of the LINEADDRESSSTATUS data structure (the "root" container).
-
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, that use the LINETERMMODE_ constants. This array is indexed by terminal identifiers, in the range from zero to one less than dwNumTerminals. Each entry in the array specifies the current terminal modes for the corresponding terminal set with the lineSetTerminal function for this address. Values are:
-
LINETERMMODE_LAMPS
-
Lamp events sent from the line to the terminal.
-
LINETERMMODE_BUTTONS
-
Button-press events sent from the terminal to the line.
-
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 events 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 the 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 the 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 the 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 the lineGetAddressStatus function. 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, the constant LINEADDRESSSTATE_, which is an indication that the status item in this record changed.
QuickInfo
Version: Use TAPI version 1.4 and later.
Header: Declared in tapi.h.
See Also
LINE_ADDRESSSTATE, LINEFORWARD, lineGetAddressStatus, lineSetTerminal