ThbTapiLine.Options
Unit: hbTapi
 

Availability

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

Declaration

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

This property has the following sub-properties:

AutoDropDiscCalls
AutoFreeIdleCalls
ReplyTimeout
SyncMode


ThbTapiLine.Options.AutoDropDiscCalls

Type: Integer

This property enables/disables the automatic dropping of disconnected calls.When a call transits to the disconnected state, it will be droped after a time delay specified in this property. Set AutoDropDiscCalls to a time delay in milliseconds or to a value of -1 if you want to disable this feature.

See Also

ThbTapiCall.Drop

ThbTapiLine.Options.AutoFreeIdleCalls

Type: Integer

This property enabled/disables the automatic deallocation of idle calls. When a call transits to the idle state, it will be deallocated after a time delay specified in this property. Set AutoDropDiscCalls to a time delay in milliseconds or to a value of -1 if you want to disable this feature.

See Also

ThbTapiCall.Deallocate

ThbTapiLine.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 ThbTapiLine.OnTAPITimeout will fire. The value for this property is in milliseconds and the default value is 60000.

See Also

ThbTapiLine.OnTapiReply, ThbTapiLine.OnTapiTimeout

ThbTapiLine.Options.SyncMode

Type: Boolean

If this property is set to True (the default value), ThbTapiLine 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 ThbTapiLine.OnTapiReply and ThbTapiLine.OnTapiTimeout events.

See Also

ThbTapiLine.LastRequestID, ThbTapiLine.OnTapiReply, ThbTapiLine.OnTapiTimeout, Chapter: The Synchronous / Asynchronous Model