Question

Intermittently unable to find recordings by callsessionid using the call-log method

  • 8 March 2018
  • 2 replies
  • 648 views

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 replies

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

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.


Reply