ThbTapiAddress.ForwardTo
 

This method uses the ChangeForwardList method to initiate an unconditional forwarding for the specified address to the destination address contained in the parameter DestAddress.

procedure TForm1.Button11Click(Sender: TObject);
var s: String;
begin
  if InputQuery('ForwardTo', 'Phone number', s) then
    hbTapiLine1.Addresses[0].ForwardTo(s);
end;


Declaration

procedure ForwardTo(DestAddress: String);

Errors

Calling this method may cause an EhbTapiError exception. Possible errors are:

LINEERR_INVALLINEHANDLE, LINEERR_NOMEM, LINEERR_INVALADDRESSID, LINEERR_OPERATIONUNAVAIL, LINEERR_INVALADDRESS, LINEERR_OPERATIONFAILED, LINEERR_INVALCOUNTRYCODE, LINEERR_RESOURCEUNAVAIL, LINEERR_INVALPOINTER, LINEERR_STRUCTURETOOSMALL, LINEERR_INVALPARAM, LINEERR_UNINITIALIZED.

See Also

ThbTapiAddress.ChangeForwardList