ThbTapiLine.OnCallState
Unit: hbTapi
 

This event is fired each time the state of a call is changed.The new state is indicated by the CallState parameter, that uses one of the LINECALLSTATE_ constants.The new state is also stored in the call's State property.

Avalabiltity

Design-Time: Read, Write / Run-Time: Read, Write

Declaration

procedure (Sender: TObject; Call: ThbTapiCall; CallState: DWORD) of Object;
property OnCallState: ThbTapiCallStateEvent;

Remarks

If the CallState is

The property ThbTapiCall.StateMode

LINECALLSTATE_BUSY

Details about the busy mode are stored in the call's BusyMode property. This parameter uses one of the LINEBUSYMODE_ constants.

LINECALLSTATE_CONNECTED

Details about the connected mode is stored in the calls's ConnectedMode property. This parameter uses one of the LINECONNECTEDMODE_ constants.

LINECALLSTATE_DIALTONE

Details about the dial tone mode ts stored in the call's DialtoneMode property. This parameter uses one of the LINEDIALTONEMODE_ constants.

LINECALLSTATE_OFFERING

Details about the offering mode are stored in the call's OfferingMode property. This parameter uses one of the LINEOFFERINGMODE_ constants.

LINECALLSTATE_SPECIALINFO

Details about the special information are stored in the call's SpecialInfoMode property. This parameter uses one of the LINESPECIALINFO_ constants.

LINECALLSTATE_DISCONNECTED

Details about the disconnect mode are stored in the call's DisconnectedMode property. This parameter uses one of the LINEDISCONNECTMODE_ constants.

The call's StateMode property is no longer needed and will be discarded in a further version. Please refer to the section "LINE_CALLSTATE" in TAPI's documentation for a more detailed information.

See Also

ThbTapiLine.OnBusy, ThbTapiLine.OnConnected, ThbTapiLine.OnDialtone, ThbTapiLine.OnOffering, ThbTapiLine.OnSpecialInfo, ThbTapiLine.OnDisconnected