Platform SDK: TAPI

ITBasicCallControl::Dial

Dials the pDestAddress.

HRESULT Dial(
  BSTR pDestAddress
);

Parameters

pDestAddress
[in] Pointer to BSTR representation of address to be dialed. The format must conform to a standard dialable address.

Return Values

Value Meaning
S_OK Method succeeded.
E_OUTOFMEMORY Insufficient memory exists to perform the operation.
E_POINTER The pDestAddress parameter is not a valid pointer.
TAPI_E_TIMEOUT The operation failed because the TAPI 3.0 DLL timed it out. The timeout interval is two minutes.

Remarks

The application must use SysAllocString to allocate memory for the pDestAddress parameter and use SysFreeString to free the memory when the variable is no longer needed.

In some cases, the application may need to use the address translation interfaces (ITAddressTranslation and ITAddressTranslationInfo) to obtain a pDestAddress string in the proper format.

The Dial method differs from ITAddress::CreateCall in that the call already exists. An example use is dialing an extension.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Version: Requires TAPI 3.0 or later.
  Header: Declared in Tapi3.h.
  Library: Use T3iid.lib.

See Also

ITBasicCallControl, Call Object, ITAddress::CreateCall, lineDial, Dial Overview, Dialable Addresses, ITAddressTranslation, ITAddressTranslationInfo