question

scott-rister7361 avatar image
scott-rister7361 Deactivated asked Arijit Banerjee commented

Call log API not returning all data

Hi!

We are working with RingCentral "Read Call Logs" API and we have observed that the data returned do not match with the "Analytical Reports" provided by RC Admin account.

For example, In the week 2019-07-22 to 2019-07-28 for the extension 111 (RC extension 214644031) the API gives around 40 results back whereas when we check the "Performance Reports" in RC Admin account the same person has over 330 calls.


Please see below the request metadata:

{
"uri": "https://platform.ringcentral.com/restapi/v1.0/account/~/extension/214644031/call-log?view=Simple&type=Voice&showBlocked=true&withRecording=false&dateFrom=2019-07-22T00:00:00.000Z&dateTo=2019-07-28T00:00:00.000Z&showDeleted=false&page=1&perPage=1000",
"records": [],
"paging": {
"page": 1,
"perPage": 1000
},
"navigation": {
"firstPage": {
"uri": "https://platform.ringcentral.com/restapi/v1.0/account/~/extension/214644031/call-log?view=Simple&type=Voice&showBlocked=true&withRecording=false&dateFrom=2019-07-22T00:00:00.000Z&dateTo=2019-07-28T00:00:00.000Z&showDeleted=false&page=1&perPage=1000"
},
"lastPage": {
"uri": "https://platform.ringcentral.com/restapi/v1.0/account/~/extension/214644031/call-log?view=Simple&type=Voice&showBlocked=true&withRecording=false&dateFrom=2019-07-22T00:00:00.000Z&dateTo=2019-07-28T00:00:00.000Z&showDeleted=false&page=1&perPage=1000"
}
}
}


Please let me know what we are missing here. Any assistance would be extremely helpful.

rest apicall logs
1 comment
1 |3000

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

Arijit Banerjee avatar image Arijit Banerjee commented ·

Can you please help me I also have the same issue

0 Likes 0 ·
Phong Vu avatar image
Phong Vu answered Phong Vu commented

Hi Scott,

There must be some thing incorrect in the request. Can you make sure that you are reading the call log of an extension in both cases. If you log in the service dashboard with an admin user, you probably read the call log of all the users under the account. Then it is equivalent to reading the call log using the API at the account level "/account/~/call-log". It could be in your case that you are calling API at the extension level "/account/~/extension~/call-log" and that is why you get records only for that extension.

2 comments
1 |3000

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

scott-rister7361 avatar image scott-rister7361 commented ·

Hello Phong,


You are correct, we are using extension level API as ours is an admin account. But my main concern here is that we are not getting data for some of the extensions. There are extensions whose data we receive as an API response is nearly accurate while there are extensions like 111 (mentioned above) whose data response is way too much in-complete or totally NULL while the "Performance Reports" in the RC account says the total opposite.


Let me know if made my point clear here.


0 Likes 0 ·
Phong Vu avatar image Phong Vu ♦♦ scott-rister7361 commented ·

That is weird.

Can you tell me what type of extension is the 111?

Any other extensions have the same problem or just that one?

Can you specify the type for Voice and Fax? Or compare and extract a few records from the performance report that missing from the API's response to see what are those.

Finally, if you don't mind to give me your main company number so I can have a look at them.

0 Likes 0 ·
Mohammed Rameez avatar image
Mohammed Rameez answered Arijit Banerjee commented

Hi
I am having same issues

My account extension is 301
my client ID is aL3JQllRQDGW-CkNOEEGdw
I am trying to get company call log but I am not getting the full data

{
"uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/286393004/call-log?view=Simple&showBlocked=true&withRecording=false&dateFrom=2020-11-24T10:56:00.000Z&page=1&perPage=100",
"records": [],
"paging": {
"page": 1,
"perPage": 100
},
"navigation": {
"firstPage": {
"uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/286393004/call-log?view=Simple&showBlocked=true&withRecording=false&dateFrom=2020-11-24T10:56:00.000Z&page=1&perPage=100"
},
"lastPage": {
"uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/286393004/call-log?view=Simple&showBlocked=true&withRecording=false&dateFrom=2020-11-24T10:56:00.000Z&page=1&perPage=100"
}
}
}
{
"uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/286393004/call-log?view=Simple&showBlocked=true&withRecording=false&dateFrom=2020-11-24T10:56:00.000Z&page=1&perPage=100",
"records": [],
"paging": {
"page": 1,
"perPage": 100
},
"navigation": {
"firstPage": {
"uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/286393004/call-log?view=Simple&showBlocked=true&withRecording=false&dateFrom=2020-11-24T10:56:00.000Z&page=1&perPage=100"
},
"lastPage": {
"uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/286393004/call-log?view=Simple&showBlocked=true&withRecording=false&dateFrom=2020-11-24T10:56:00.000Z&page=1&perPage=100"
}
}
}
https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/call-log?view=Simple&page=1&perPage=100


1 comment
1 |3000

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

Arijit Banerjee avatar image Arijit Banerjee commented ·

I also have the same issue

0 Likes 0 ·

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