code: public VoiceCallLegResponse viewCallLegsByCallId(String callId, Integer page, Integer pageSize) throws UnsupportedEncodingException, UnauthorizedException, GeneralException {
          if (callId == null) {
              throw new IllegalArgumentException("Voice call ID must be specified.");
          }
  
          String url = String.format(
                  "%s%s/%s%s",
                  VOICE_CALLS_BASE_URL,
                  VOICECALLSPATH,
                  urlEncode(callId),
                  VOICELEGS_SUFFIX_PATH);
  
          return messageBirdService.requestList(url, new PagedPaging(page, pageSize), VoiceCallLegResponse.class);
      }
docs: Retrieves a listing of all legs.
  
  @param callId   Voice call ID
  @param page     page to fetch (can be null - will return first page), number of first page is 1
  @param pageSize page size
  @return VoiceCallLegResponse
  @throws UnsupportedEncodingException no UTF8 supported url
  @throws UnauthorizedException        if client is unauthorized
  @throws GeneralException             general exception