News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
API call log some records not found in result
Tags: call logs, rest api
Nov 9, 2016 at 4:08am   •   12 replies  •  0 likes
adcdc1183

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.

12 Answers
answered on Nov 30, 2016 at 3:23am  
I think that is not how you specify the extension, you have to specify it in the authorize call.

 0
answered on Nov 28, 2016 at 8:43pm  
So what was the answer to this problem ? I also have similar problem where the API only returns the log list for some extensions but not others. I could see all of it on 

https://service.ringcentral.com

My url is

     url = self.apiUrl + 'v1.0/account/~/extension/~/call-log?dateFrom='+self.search_startdate+'&type=Voice&withRecording=true

if I specify a particular extension e.g.
     url = self.apiUrl + 'v1.0/account/~/extension/110/call-log?dateFrom='+self.search_startdate
+'&type=Voice&withRecording=true

I get this error 

   "message": "Resource for parameter [extensionId] is not found",    "parameterName": "extensionId",
    "errorCode": "CMN-102",
    "errors": [
        {
            "message": "Resource for parameter [extensionId] is not found",
            "parameterName": "extensionId",
            "errorCode": "CMN-102"
        }
    ]

 0
answered on Nov 18, 2016 at 3:43am  
Yes it is in production, I stated it in my post though. Okay, Thanks.

 0
answered on Nov 17, 2016 at 10:12am  
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.

 0
answered on Nov 16, 2016 at 2:33am  
But the issue is in production results, how will i do that in sandbox?

 0
answered on Nov 15, 2016 at 10:29am  
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).

 0
answered on Nov 11, 2016 at 2:06am  
Yes, results are the same.

 0
answered on Nov 10, 2016 at 12:40pm  
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

 0
answered on Nov 10, 2016 at 3:13am  
Below are the records that was not in the result:

 0
answered on Nov 10, 2016 at 3:11am  
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" } } }

 0
answered on Nov 9, 2016 at 4:44pm  
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.

 0
answered on Nov 9, 2016 at 11:12am  
Could you please provide the full API Request and Response (complete with headers)?

 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us