question

adcdc1183 avatar image
adcdc1183 asked ·

API call log some records not found in result

Hi, I created an API call using the call log endpoint ('/account/~/extension/~/call-log') in production. It shows results of the records but there are 2 missing records. service.ringcentral.com call log records: date/time: Yesterday 8:41 PM - this record shows in the API call log result date/time: Yesterday 7:12 PM - this record does NOT show in the API call log result date/time: Yesterday 5:47 PM - this record does NOT show in the API call log result date/time: Yesterday 2:20 PM - this record shows in the API call log result date/time: Yesterday 1:00 PM - this record shows in the API call log result Is there something wrong with the 2 missing records? The type and direction of these two are just like the other records that show. Additional parameters in the call are: direction Inbound and type is Voice.
topic-default
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.

benjamin-dean avatar image
benjamin-dean answered ·
Could you please provide the full API Request and Response (complete with headers)?
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.

Tyler Liu avatar image
Tyler Liu answered ·
By default it only return call logs for the last 24 hours. If those two records are made before 24 hours, they won't be returned.

You can specify the 'dateFrom' parameter to get call logs for a longer period.
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.

adcdc1183 avatar image
adcdc1183 answered ·
Request: GET /restapi/v1.0/account/~/extension/~/call-log?direction=Inbound&type=Voice&dateFrom=2016-11-06T00:00:00.000Z&perPage=700 HTTP/1.1 Host: platform.ringcentral.com GET /restapi/v1.0/account/~/extension/~/call-log?direction=Inbound&type=Voice&dateFrom=2016-11-06T00:00:00.000Z&perPage=700 HTTP/1.1 Accept: application/json Authorization: Bearer SUFEMDFQ...N3pJMDhFeDAzcVA3ZjYyUWMzUGc Response: HTTP/1.1 200 OK Server: nginx/1.8.0 Date: Thu, 10 Nov 2016 10:54:14 GMT Content-Type: application/json; charset=UTF-8 Content-Length: 5359 Connection: keep-alive Set-Cookie: RCRoutingInfo=B:f971LX5Q1QQ7jOY2bZrBbvnKjdQWGHURK1X+Qodz0DipvkIjNOlS/lKSzegxu+V6; Path=/ RCRequestId: 048ceac0-a734-11e6-979b-0050569792e2 RoutingKey: IAD01P08PAS01 Content-Language: en-US Vary: Accept-Encoding, User-Agent x-throttling-group: Heavy X-Rate-Limit-Group: heavy X-Rate-Limit-Limit: 10 X-Rate-Limit-Remaining: 9 X-Rate-Limit-Window: 60 X-AGW-Host: sjc01-c01-agw13.c01.ringcentral.com { "uri" : " https://platform.ringcentral.com/restapi/v1.0/account/[account]/extension/[extension]/call-log?view=Simple&type=Voice&direction=Inbound&dateFrom=2016-11-06T00:00:00.000Z&page=1&perPage=700";, "records" : [ { "uri" : " https://platform.ringcentral.com/restapi/v1.0/account/...";, "id" : "ZhC...", "sessionId" : "123...", "startTime" : "2016-11-09T19:23:02.752Z", "duration" : 54, "type" : "Voice", "direction" : "Inbound", "action" : "Phone Call", "result" : "Voicemail", "to" : { "phoneNumber" : "+134...", "name" : "... Company" }, "from" : { "phoneNumber" : "+1917...", "name" : "WIRELESS CALLER", "location" : "New York City, NY" } }, { "uri" : " https://platform.ringcentral.com/restapi/v1.0/account/...";, "id" : "ZhB...", "sessionId" : "1233...", "startTime" : "2016-11-09T19:09:07.361Z", "duration" : 10, "type" : "Voice", "direction" : "Inbound", "action" : "Phone Call", "result" : "Missed", "to" : { "phoneNumber" : "+1347...", "name" : "... Company" }, "from" : { "phoneNumber" : "+1201...", "name" : "LEONIA NJ", "location" : "Leonia, NJ" } }, { "uri" : " https://platform.ringcentral.com/restapi/v1.0/account/...";, "id" : "ZgUu...", "sessionId" : "1233...", "startTime" : "2016-11-08T21:56:14.871Z", "duration" : 11, "type" : "Voice", "direction" : "Inbound", "action" : "Phone Call", "result" : "Missed", "to" : { "phoneNumber" : "+1347...", "name" : "... Company" }, "from" : { "phoneNumber" : "+1980...", "name" : "LOCAL" } }, { "uri" : " https://platform.ringcentral.com/restapi/v1.0/account/...";, "id" : "ZgIL...", "sessionId" : "12332...", "startTime" : "2016-11-08T19:56:33.150Z", "duration" : 47, "type" : "Voice", "direction" : "Inbound", "action" : "Phone Call", "result" : "Missed", "to" : { "phoneNumber" : "+1877...", "name" : "... Company" }, "from" : { "phoneNumber" : "+1512...", "name" : "WIRELESS CALLER", "location" : "Austin, TX" } }, { "uri" : " https://platform.ringcentral.com/restapi/v1.0/account/...";, "id" : "Zf_lJ...", "sessionId" : "1233...", "startTime" : "2016-11-08T18:38:18.039Z", "duration" : 11, "type" : "Voice", "direction" : "Inbound", "action" : "Phone Call", "result" : "Missed", "to" : { "phoneNumber" : "+1347...", "name" : "... Company" }, "from" : { "phoneNumber" : "+1218...", "name" : "CUSTOMER SRV", "location" : "Grand Rapids, MN" } }, { "uri" : " https://platform.ringcentral.com/restapi/v1.0/account/...";, "id" : "Zfe2...", "sessionId" : "1232...", "startTime" : "2016-11-08T01:41:02.634Z", "duration" : 10, "type" : "Voice", "direction" : "Inbound", "action" : "Phone Call", "result" : "Missed", "to" : { "phoneNumber" : "+1347...", "name" : "... Company" }, "from" : { "phoneNumber" : "+1201...", "name" : "LEONIA NJ", "location" : "Leonia, NJ" } }, { "uri" : " https://platform.ringcentral.com/restapi/v1.0/account/...";, "id" : "ZfB9...", "sessionId" : "12323...", "startTime" : "2016-11-07T19:20:23.664Z", "duration" : 32, "type" : "Voice", "direction" : "Inbound", "action" : "Phone Call", "result" : "Missed", "to" : { "phoneNumber" : "+1347...", "name" : "... Company" }, "from" : { "phoneNumber" : "+1516...", "name" : "... ADVS", "location" : "Nassau, NY" } }, { "uri" : " https://platform.ringcentral.com/restapi/v1.0/account/...";, "id" : "Ze4q...", "sessionId" : "1232...", "startTime" : "2016-11-07T18:00:28.859Z", "duration" : 47, "type" : "Voice", "direction" : "Inbound", "action" : "Phone Call", "result" : "Missed", "to" : { "phoneNumber" : "+1877...", "name" : "... Company" }, "from" : { "phoneNumber" : "+1913...", "name" : "WIRELESS CALLER", "location" : "Kansas City, KS" } } ], "paging" : { "page" : 1, "perPage" : 700, "pageStart" : 0, "pageEnd" : 7 }, "navigation" : { "firstPage" : { "uri" : " https://platform.ringcentral.com/restapi/v1.0/account/[account]/extension/[extension]/call-log?view=Simple&type=Voice&direction=Inbound&dateFrom=2016-11-06T00:00:00.000Z&page=1&perPage=700"; } } }
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.

adcdc1183 avatar image
adcdc1183 answered ·
Below are the records that was not in the result:
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.

benjamin-dean avatar image
benjamin-dean answered ·
Get rid of the "Type" filter and see if you get the same results please.

/restapi/v1.0/account/~/extension/~/call-log?dateFrom=2016-11-06T00:00:00.000Z
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.

adcdc1183 avatar image
adcdc1183 answered ·
Yes, results are the same.
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.

benjamin-dean avatar image
benjamin-dean answered ·
Could you please use the API Explorer ( https://developers.ringcentral.com/api-explorer) and see if you get the same results from there (keeping in mind it only works with Sandbox accounts).
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.

adcdc1183 avatar image
adcdc1183 answered ·
But the issue is in production results, how will i do that in sandbox?
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.

benjamin-dean avatar image
benjamin-dean answered ·
So this is with your production application...?

I would recommend creating a support ticket to investigate this issue. You can do that here:  https://developers.ringcentral.com/support.html

Click on the "click here" link which is part of this copy: If you have not found sufficient help in either our Developer Community or the FAQ please click here to request technical assistance.

Reference this community post, make sure to share that this issue is in your production account and provide a basic overview please.
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.

adcdc1183 avatar image
adcdc1183 answered ·
Yes it is in production, I stated it in my post though. Okay, Thanks.
1 comment 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.

That was my fault. Support will be able to help you further with this issue.
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.