ThbTapiLine.OnTapiTimeout
Unit: hbTapi
 

This event fiers, when no LINE_REPLY message is received from TAPI within a time period of ThbTapiLine.Options.ReplyTimeout milliseconds.

Many function within TAPI work in an asynchronous manner. An asynhron functions returns immediatly but the operation is not completed at this time. The function returns an operation identifier, the RequestID, which is used to get the result of the operaton at a later time. TAPI signals the completion by sending a related LINE_REPLY message to the application. The LINE_REPLY message contains the RequestID and the ResultCode of the operation.

hbTapi Components is able to insulates you from these types of functions by stalling your code execution until the LINE_REPLY message is returned. See the property ThbTapiLine.Options.SyncMode for further Information. If ThbTapiLine works in asynchron mode, you have to handle the replys on your own by using the OnTapiReply and OnTapiTimeout events.

Availability

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

Declaration

procedure (Sender: TObject; RequestID: DWORD);
property OnTapiTimeout: ThbTapiTimeoutEvent;

See Also

ThbTapiLine.OnTapiReply, ThbTapiLine.Options.SyncMode, ThbTapiLine.Options.ReplyTimeout, ThbTapiLine.LastRequestID