|
The Accept function accepts the specified offered call. It can optionally send an user-user information to the calling party specified in the UserUserInfo parameter. The Accept function is used in telephony environments like Integrated Services Digital Network (ISDN) that allow alerting associated with incoming calls to be separate from the initial offering of the call. When a call comes in, it is first offered. For a small amount of time, the application may have the option to reject the call using Drop, redirect the call to another station using the Redirect, answer the call using the Answer method, or accept the call. After a call has been successfully accepted by an application, alerting begins at both the called and calling device and the call's state typically goes to LINECALLSTATE_ACCEPTED. Declarationprocedure Accept(UserUserInfo: String = ''); RemarksUsing this method causes the TAPI lineAccept 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. ErrorsUsing this function may cause an EhbTapiError exception . Possible errors are: LINEERR_INVALCALLHANDLE, LINEERR_RESOURCEUNAVAIL, LINEERR_INVALCALLSTATE, LINEERR_OPERATIONUNAVAIL, LINEERR_NOTOWNER, LINEERR_UNINITIALIZED, LINEERR_INVALPOINTER, LINEERR_OPERATIONFAILED, LINEERR_NOMEM, LINEERR_USERUSERINFOTOOBIG. See AlsoThbTapiLine.OnCallState |