ThbTapiPhone.Options
Unit: hbTapi
 

The Options property is used to enable, disable and specify some features of the ThbTapiPhone component.

This property has the following sub-properties:

ReplyTimeout
SyncMode

Availability

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


ThbTapiPhone.Options.ReplyTimeout

Type: Integer

Many function within TAPI work in an asynchronous manner. An asynhron function 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 reply message to the application. If not reply message is received from TAPI within a time period of ReplyTimeout, the ThbTapiPhone.OnTAPITimeout will fire. The value for this property is in milliseconds and the default value is 10000.

See Also

ThbTapiPhone.OnTapiReply, ThbTapiPhone.OnTapiTimeout

ThbTapiPhone.Options.SyncMode

Type: Boolean

If this property is set to True (the default value), ThbTapiPhone handles the TAPI reply messages of asynchroun TAPI functions in a manner that the called function returns just after the related reply message was received from TAPI. Set SyncMode to False, if you want to work in the normal TAPI mode. Asynchron TAPI functions will return immideatly and you have to use the property and the ThbTapiPhone.OnTapiReply and ThbTapiPhone.OnTapiTimeout events.

See Also

ThbTapiPhone.LastRequestID, ThbTapiPhone.OnTapiReply, ThbTapiPhone.OnTapiTimeout, The Synchronous / Asynchronous Model