code: public ApiResponse<ApiSuccessResponse> logoutVoiceWithHttpInfo(DndOnBody dndOnBody) throws ApiException {
          com.squareup.okhttp.Call call = logoutVoiceValidateBeforeCall(dndOnBody, null, null);
          Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Log out of the voice channel
  Log out the current agent on the voice channel. This request is typically paired with [/voice/login](/reference/workspace/Voice/index.html#loginVoice)&amp;mdash;together they let you login/logout an agent on the voice channel without logging out of the entire session.
  @param dndOnBody Request parameters. (optional)
  @return ApiResponse&lt;ApiSuccessResponse&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body