ThbTapiLine.GetConfRelatedCalls
Unit: hbTapi

Returns a list of calls that are part of the same conference call as call specified by the Call parameter. The call has to be either a conference call or a participant call in a conference call. If the call is related to a conference, the return value is True otherwise it is False. For example, a consultation call that has not yet been added to a conference call is not part of a conference.

The first entry in the list that is returned is the conference call, the other calls are all the participant calls. The first entry within the returned list is the conference call itself, the other calls are participant calls in the conference call. The specified call is always one of the calls within the list returned by the ConfCalls parameter.

procedure TForm1.Button1Click(Sender: TObject);
var Call: ThbTapiCall; CallList: ThbTapiCallList;
begin
  Call := GetCall; // select the active call
  if (Call = nil) then
    Exit;

  CallList := ThbTapiCallList.Create;
  try
    if hbTapiLine1.GetConfRelatedCalls(Call, CallList) then
    begin
      // member of a conference
      if CallList[0] = Call then
        // Call = Conference call
      else 
        ; Call = Participant call
    end;
  finally
    CallList.Free;
  end;
end;

Declaration

function GetConfRelatedCalls(Call: ThbTapiCall; ConfCalls: ThbTapiCallList): Boolean;

Remarks

Please refer to the section "lineGetConfRelatedCalls" in TAPI's documentation for a more detailed information.