一、TAPI初始化
CoCreateInstance(...)
ITTAPI::Initialize(...)
register IConnectionPointContainer event interface
ITTAPI::put_EventFilter(...)//setting event filtering
二、check all ITAddress object
ITTAPI::EnumerateAddresses(...)
IEnumAddress::Next(...)
ITAddress::get_ServiceProviderName(...)
ITAddress::ITAddressCapabilities(...)// get the address capabilities interface
ITAddressCapabilities::get_AddressCapability(...) // get the address capabilities
ITAddress::QueryInterface(...)// get the ITMediaSupport interface
ITMediaSupport::QueryMediaType(...)// get the address support media type
三、呼出
ITAddress::CreateCall(...)
ITBasicCallControl::Connect(...)
四、呼入
ITBasicCallControl::Answer(...)
五、释放TAPI
释放IConnectionPointContainer接口
ITBasicCallControl::Disconnect(...)
ITAddress::Release(...);
ITBasicCallControl::Release(...)
ITTAPI::Shutdown();
ITTAPI::Release();
CoCreateInstance(...)
ITTAPI::Initialize(...)
register IConnectionPointContainer event interface
ITTAPI::put_EventFilter(...)//setting event filtering
二、check all ITAddress object
ITTAPI::EnumerateAddresses(...)
IEnumAddress::Next(...)
ITAddress::get_ServiceProviderName(...)
ITAddress::ITAddressCapabilities(...)// get the address capabilities interface
ITAddressCapabilities::get_AddressCapability(...) // get the address capabilities
ITAddress::QueryInterface(...)// get the ITMediaSupport interface
ITMediaSupport::QueryMediaType(...)// get the address support media type
三、呼出
ITAddress::CreateCall(...)
ITBasicCallControl::Connect(...)
四、呼入
ITBasicCallControl::Answer(...)
五、释放TAPI
释放IConnectionPointContainer接口
ITBasicCallControl::Disconnect(...)
ITAddress::Release(...);
ITBasicCallControl::Release(...)
ITTAPI::Shutdown();
ITTAPI::Release();