question

scott-rister avatar image
scott-rister asked ·

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.

apicall logringcentral
1 |1000 characters needed characters left characters exceeded

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

1 Answer

· Write an Answer
Phong Vu avatar image
Phong Vu answered ·

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 Share
1 |1000 characters needed characters left characters exceeded

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

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 · ·

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 · ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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