|
This property activates and deactivates the telephony line device. In TAPI terms the lineOpen/lineClose function is called. The media modes defined in the ThbTapiLine.MediaModes property and the privleges defined in the ThbTapiLine.Privilege properties are used when opening (activating) the line device. Opening a line device always entitles the application to make calls on any address available on the line (CallParams.AddressID). The ability of the application to deal with incoming calls or to be the target of call handoffs on the line is determined by the MediaModes parameter. The Privileges value is used to register the application for having an interest in monitoring calls or receiving ownership of calls that are of the specified media types. If the application just wants to monitor calls, then it can specify LINECALLPRIVILEGE_MONITOR. If the application just wants to make outgoing calls, it can specify LINECALLPRIVILEGE_NONE. If the application is willing to control unclassified calls (calls of unknown media type), it can specify LINECALLPRIVILEGE_OWNER and LINEMEDIAMODE_UNKNOWN. Otherwise, the application should specify the media type it is interested in handling. AvailabilityDesign-Time: Read, Write / Run-Time: Read, Write Declarationproperty Active: Boolean; Example 1: The line is activated to handle (become the owner) of all call of the media mode interactive voice.
Example 2: The line is activated to make outbound calls, inbound calls are not handled.
Example 3: The line is activated with Privileges.AutoSelect option. The privileges are chosen automatically depending on the selected media modes.
ErrorsUsing this property may cause an EhbTapiError exception. Possible errors are: LINEERR_ALLOCATED, LINEERR_LINEMAPPERFAILED, LINEERR_BADDEVICEID, LINEERR_NODRIVER, LINEERR_INCOMPATIBLEAPIVERSION, LINEERR_NOMEM, LINEERR_INCOMPATIBLEEXTVERSION, LINEERR_OPERATIONFAILED, LINEERR_INVALAPPHANDLE, LINEERR_RESOURCEUNAVAIL, LINEERR_INVALMEDIAMODE, LINEERR_STRUCTURETOOSMALL, LINEERR_INVALPOINTER, LINEERR_UNINITIALIZED, LINEERR_INVALPRIVSELECT, LINEERR_REINIT, LINEERR_NODEVICE, LINEERR_OPERATIONUNAVAIL. See AlsoThbTapiLine.MediaModes,ThbTapiLine.Privileges, Activating a telephony line device |