ThbTapiLine.Park
Unit: hbTapi
 
The Park method parks the specified call according to the specified park mode.

Declaration

procedure ThbTapiLine.Park(Call: ThbTapiCall; ParkMode: DWORD; DirAddress: String; NonDirAddress: PVarString);

Parameters

Call
A call object to be parked. The application must be an owner of the call and the call's state must be connected.
ParkMode
The park mode with which the call is to be parked.

Constant

Description

LINEPARKMODE_DIRECTED

Specifies directed call park. The address where the call is to be parked must be supplied to the switch.

LINEPARKMODE_NONDIRECTED

Specifies nondirected call park. The address where the call is parked is selected by the switch and provided by the switch to the application.


DirAddress
A string holding the address where the call is to be parked when using directed park. The address has to be in dialable number format and is ignored for nondirected park.
NonDirAddress
A pointer to a structure of type TVarString. For nondirected park, the address where the call is parked is returned in this structure. This parameter is ignored for directed park.

Remarks

In TAPI terms the linePark function is called. This function works in an asynchronous manner. See the SyncMode property to read more about the handling of asynchronous functions.

Errors

Using this function may cause an EhbTapiError exception. Possible errors are:

LINEERR_INVALADDRESS, LINEERR_NOTOWNER, LINEERR_INVALCALLHANDLE, LINEERR_OPERATIONUNAVAIL, LINEERR_INVALCALLSTATE, LINEERR_OPERATIONFAILED, LINEERR_INVALPARKMODE, LINEERR_RESOURCEUNAVAIL, LINEERR_INVALPOINTER, LINEERR_STRUCTURETOOSMALL, LINEERR_NOMEM, LINEERR_UNINITIALIZED.

See Also

ThbTapiLine.Unpark, ThbTapiCall.Park