ThbTapiCall.Answer
Unit: hbTapi
 

The Answer method the specified offering call. After the call has been successfully answered, the calls state typically transists to the connected state. Some telephony environments need to Accept a call prior to the call can be answered.

Declaration

procedure Answer(UserUserInfo: String = '');

Remarks

Using this method causes the TAPI lineAnswer function to be called. This function works in an asynchronous manner. See the chapter "The Synchronous / Asynchronous Model" and the ThbTapiLine.Options.SyncMode property to read more about the handling of asynchronous functions.

Errors

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

LINEERR_INUSE, LINEERR_OPERATIONUNAVAIL, LINEERR_INVALCALLHANDLE, LINEERR_OPERATIONFAILED, LINEERR_INVALCALLSTATE, LINEERR_RESOURCEUNAVAIL, LINEERR_INVALPOINTER, LINEERR_UNINITIALIZED, LINEERR_NOMEM, LINEERR_USERUSERINFOTOOBIG, LINEERR_NOTOWNER.

See Also

ThbTapiLine.OnCallState