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
Intermittently unable to find recordings by callsessionid using the call-log method
Tags: call logs
Mar 8, 2018 at 12:22pm   •   2 replies  •  0 likes
dave-welch

We have successfully been downloading recordings for several years. since the latest Ring Central network outage last Friday we have been intermittently been unable to find recordings by call sessionid using the call-log method. The recordings show up on the Ring Central customer site call log and we can download them there but we cannot find them using the API. We need help to determine if the call sessionid that we are using is correct and what the solution is.

2 Answers
answered on Mar 9, 2018 at 11:15am  

1.       We place the call with /restapi/v1.0/account/~/extension/~/ringout

2.       We get the sessionid using /restapi/v1.0/account/~/extension/~/presence?detailedTelephonyState=true

3.       We save the sessionid and the call time.

4.       Once the call is completed, we get the call log with the call-log method.  It is run every two minutes.  The dateFrom is determined by the earliest call start time of calls completed since the last call-log attempt.  The dateTo is determined by the call end time of the last call completed prior to the current call-log lookup.

Here is a sample: /restapi/v1/restapi/v1.0/account/~/call-log?perPage=1000&page=1&view=Simple&recordingType=All&dateFrom=2018-03-07T14:15:00.0000000Z&dateTo=2018-03-07T14:17:00.0000000Z. 

5.       We parse this response looking for the sessionid. 

6.       When we find the sessionid we parse the associated record for the media link;

7.       We download the recording using the media link

The problem occurs in step 5.  We are not finding any records with the sessionid we are looking for.  It is not related to the date window.  We have tried using the call-log method with times that encompass the entire day which downloads thousands of call records and have been unable to find the call by sessionid.

This is happening up to 20% of the time.  This problem started this week.  There have been no changes to code or RC settings for several months.

These calls have recordings attached.  We can find them using the customer portal to view the call log.  So either we have an incorrect sessionid or the call-log method is not working as expected.  It is hard to believe that we have the wrong sessionid since during the call we get call state information using PubNub referencing that sessionid.



 0
answered on Mar 9, 2018 at 7:54am  
Hi Dave,

Can you give more details how did you read recorded calls using sessionId? According to the API reference, the sessionId query parameter cannot be specified alongside with parameters 'dateTo', 'dateFrom', 'phoneNumber', 'extensionNumber', 'type', 'transport', 'direction', 'withRecording','recordingType', so please double check if it is the cause in your case.

When you were unable to find recordings, did you get an error message or an empty response?

How soon did you try to get the recording after a call was ended? Remember that the recording is available after some 30 secs after a call ended.

Using the call-log API to read call log without the sessionId, did you get the "recording" object in the response for those calls with recording? If you get the recording block, can you read the recording using the recodingId with this endpoint /restapi/v1.0/account/~/recording/{recordingId}?


Please check and let me know further background info so I can help.

Kind regards,
Phong Vu

 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