code: public ApiSuccessResponse logoutVoice(DndOnBody dndOnBody) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = logoutVoiceWithHttpInfo(dndOnBody);
          return resp.getData();
      }
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 ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body