Recording a Conversation

[This is preliminary documentation and subject to change.]

pAddress->QueryInterface(IID_ITTerminalSupport,
                         &pTerminalSupport);

pTerminalSupport->EnumerateDynamicTerminalTypes(&pEnumTermTypes);

while (S_OK == pEnumTermTypes->Next(1, &TermType, NULL)))
{
    IID iidTermType;

    // convert bstr to iid
    IIDFromString(TermType,
                  &iidTermType);

    // see if it's the correct type
    if (IIDTermType == CLSID_FileTerminal)
   {
        //create the terminal
        pTerminalSupport->CreateTerminal(TermType,
                                         &pFileTerminal);
    }
}

pEnumTermTypes->Release();

pFileTerminal->SetName(pFileName);

pTAPI->CreateMediaTerminal(bstrMediaType,
                           pFileTerminal
                           &pMediaTerminal);

// put pMediaTerminal into a Variant, then call:
pCall->SelectMediaTerminals(pMediaTerminalVariant);