question

adcdc1183 avatar image
adcdc1183 asked adcdc1183 commented

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.

rest apicall logs
1 |3000

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)?
1 |3000

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.
1 |3000

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" } } }
1 |3000

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:
1 |3000

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
1 |3000

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.
1 |3000

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).
1 |3000

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?
1 |3000

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.
1 |3000

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 benjamin-dean commented
Yes it is in production, I stated it in my post though. Okay, Thanks.
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.

benjamin-dean avatar image benjamin-dean commented ·
That was my fault. Support will be able to help you further with this 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