Nota
O acesso a esta página requer autorização. Podes tentar iniciar sessão ou mudar de diretório.
O acesso a esta página requer autorização. Podes tentar mudar de diretório.
O exemplo de código a seguir demonstra a criação de uma chamada de conferência simples. Para obter informações sobre videoconferência multimídia multicast IP, consulte Sobre o Rendezvous IP Telephony Conferencing.
Antes de usar este exemplo de código, uma chamada deve estar em andamento e você deve executar as operações em Fazer uma chamada ou Receber uma chamada foram executadas.
Observação
Este exemplo não tem a verificação de erros e liberações apropriadas para o código de produção.
// From elsewhere in your code, you have obtained pBasicCall and pCallInfo,
// which are pointers to the ITBasicCallControl and ITCallInfo interfaces
// of a call currently in progress. pAddress is an ITAddress pointer.
// Create a consultation call for the conference.
ITBasicCallControl *pConsultCall;
HRESULT hr = pAddress->CreateCall(
bstrAddressToCall,
dwAddressType,
&pConsultCall
);
// If ( hr != S_OK ) process the error here.
// Move the consultation call into your conference.
// Note: If a CallHub object does not already exist, TAPI will create it.
hr = pBasicCall->Conference(
pConsultCall,
VARIANT_TRUE
);
// If ( hr != S_OK ) process the error here.
// Finish the creation of the conference.
hr = pConsultCall->Finish(FM_ASCONFERENCE);
// If ( hr != S_OK ) process the error here.
// Assuming the Finish method succeeds, the consultation call (pConsultCall)
// may transition to the CS_DISCONNECTED state or may remain connected,
// depending on the service provider.
//
// Get the ITCallHub interface pointer.
ITCallHub *pCallHub;
hr = pCallInfo->get_CallHub( pCallHub );
// If ( hr != S_OK ) process the error here.
// You can use the ITCallHub interface to obtain additional information on
// the conference. Specific capabilities depend on the TSP/MSP being used.
Tópicos relacionados