ThbTapiLine.Owner
Unit: hbTapi
 

This property indicates, if the application has owner rights to the call or not. It is also used to change the application's privilege for the call. Set OwnerPrivilege to False to set the privilege to monitor. Set Owner to True if you need owner privilege.

Example

if Call.Owner = False then
try
  Call.Owner := True;
  Call.Drop;
except
end;

Availability

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

Declaration

property Owner: Boolean;

Remarks

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

Errors

Modifying this property may cause an EhbTapiError exception. Possible errors are:

LINEERR_INVALCALLHANDLE, LINEERR_OPERATIONFAILED, LINEERR_INVALCALLSTATE, LINEERR_RESOURCEUNAVAIL, LINEERR_INVALCALLPRIVILEGE, LINEERR_UNINITIALIZED, LINEERR_NOMEM.