ThbTapiCall.AddToConference
Unit: hbTapi
Adds a consultation call to an existing conference call. In general, the conference call is another call on the same line (and address) that is in the OnHoldPendConf state. This method has no parameters and select the related conference call automatically.
procedure TForm1.Button1Click(Sender: TObject);
var Call: ThbTapiCall;
  begin
    Call := GetConnectedCall; // select the active call
    if (Call = nil) then
      Exit;
    try
      Call.AddToConference;
    except
      on EhbTapiError do
        MessageDlg('AddToConference failed!',  mtError, [mbOK], 0);
  end;
end;

If you need to specify a conference call the call has to be added to, you are able to use the line's AddToConference method.

Declaration

procedure AddToConference;

Remarks

Using this method causes the TAPI function lineAddToConference function to be called. This function works in an asynchronous manner. See the chapter "The Synchronous / Asynchronous Model" and the ThbTapiLine.Options.SyncMode property to read more about the handling of asynchronous functions.

Errors

Using this function may cause an EhbTapiError exception. Possible errors are:

LINEERR_CONFERENCEFULL, LINEERR_NOTOWNER, LINEERR_INVALCONFCALLHANDLE, LINEERR_OPERATIONUNAVAIL, LINEERR_INVALCALLHANDLE, LINEERR_OPERATIONFAILED, LINEERR_INVALCALLSTATE, LINEERR_RESOURCEUNAVAIL, LINEERR_NOMEM, LINEERR_UNINITIALIZED.

See Also

ThbTapiCall.ConferenceCall  | SetupTransfer | SetupConference, Establish a Conference Cal