ThbTapiLine.OnIdle
Unit: hbTapi
 

The event is fired when TAPI indicates that the call is in an idle state. The call does no longer exist on the device and a TAPI application should deallocated the call handle. ThbTapiLine deallocates the call automatically after a delay of ThbTapiLine.Options.AutoFreeIdleCalls. The call will be removed from the ThbTapiLine.Calls list and the ThbTapiLine.OnCallDeallocate will be fired. Set AutoFreeIdleCalls to -1 if you ant to free the call by your own or to use the call anyway e.g. to call the ThbTapiLine.Dial method.

Availability

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

Declaration

procedure (Sender: TObject; Call: ThbTapiCall; Mode, Privilege: DWORD) of Object;
property OnIdle : ThbTapiCallStateEvent;

Remarks

The ThbTapiLine.OnCallEnd is fired just before this event.

Please refer to the section "LINECALLSTATE_IDLE" in TAPI's documentation for a more detailed information.

See Also

ThbTapiCall.State