question

Jorge Correia avatar image
Jorge Correia asked Phong Vu answered

Call Log Records - Date Filter Window

I'm using the "Get Company Call Log Records" API endpoint to extract call data to be analysed on our system.

However it seems the dateFrom and dateTo are filtering on the startTime field instead of endTime (startTime + duration) and because of that its possible to miss some calls if we just set the dateFom on the next collection to the previous dateTo + 1ms.

E.g.:

Call Collection #1 - GetCompanyCallLogRecords endpoint with datefrom: 2021-08-01T00:00:00.000Z and dateto: 2021-08-01T23:59:59.999Z

Call Collection #2 - GetCompanyCallLogRecords endpoint with datefrom: 2021-08-02T00:00:00.000Z and dateto: 2021-08-02T23:59:59.999Z

With these 2 queries I will miss all the calls that have started before 2021-08-01T23:59:59.999Z but ended after 2021-08-01T23:59:59.999Z.

Some of my questions are:

  • Is the filter on the startTime by design or a bug? It makes more sense filter on the endTime..
  • Is there any max duration imposed by RingCentral or a call can be active forever?

Do you have any advice on how to deal with this scenario to ensure no data is missed, and at the same time no need to deal with duplicates.

I'm also aware of the the Sync endpoint but because we will deal with high volume of calls (and there is a limit of 250 per request on this endpoint) I was following the CallLog approach (as suggested on this other post I've created - https://community.ringcentral.com/questions/101780/sychronization-flow-call-log-records.html).


Thanks

rest api
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Phong Vu avatar image
Phong Vu answered

See me response in your previous post.

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys