code: public void redirectCall(
              String connId,
              String destination,
              KeyValueCollection reasons,
              KeyValueCollection extensions
      ) throws WorkspaceApiException {
          try {
              VoicecallsidredirectData redirectData = new VoicecallsidredirectData();
              redirectData.setDestination(destination);
              redirectData.setReasons(Util.toKVList(reasons));
              redirectData.setExtensions(Util.toKVList(extensions));
              RedirectData data = new RedirectData();
              data.data(redirectData);
  
              ApiSuccessResponse response = this.voiceApi.redirect(connId, data);
              throwIfNotOk("redirectCall", response);
          } catch (ApiException e) {
              throw new WorkspaceApiException("redirectCall failed.", e);
          }
      }
docs: Redirect a call to the specified destination
  @param connId The connection ID of the call to redirect.
  @param destination The number where Workspace should redirect the call.
  @param reasons Information on causes for, and results of, actions taken by the user of the current DN. For details about reasons, refer to the [*Genesys Events and Models Reference Manual*](https://docs.genesys.com/Documentation/System/Current/GenEM/Reasons). (optional)
  @param extensions Media device/hardware reason codes and similar information. For details about extensions, refer to the [*Genesys Events and Models Reference Manual*](https://docs.genesys.com/Documentation/System/Current/GenEM/Extensions). (optional)