Call Log. No Recordings parameter

  • 1
  • Problem
  • Updated 1 month ago
When I receive a
call log, the call record option is not returned, although in the Ringcentral desktop application I press the "Record Call" button and then I see this record and can listen, but through the API, when I receive the array, there is no recordings parameter. How to get a link to record a call via API?
Photo of Vadim Soluyanov

Vadim Soluyanov

  • 176 Points 100 badge 2x thumb

Posted 1 month ago

  • 1
Photo of Tyler Long

Tyler Long, Official Rep

  • 7,802 Points 5k badge 2x thumb
Here is sample code for call recording download: https://github.com/ringcentral/ringcentral-csharp-client/blob/master/RingCentral.Test/BinaryTest.cs#...

In the body of a call log record, there is a recording property where you can fetch information about it especially its ID.
Photo of Vadim Soluyanov

Vadim Soluyanov

  • 176 Points 100 badge 2x thumb
In the request, I send the parameters /account/'.$accountId.'/extension/'.$extensionId.'/call-log and get an array in response, but there is no recording property. Do I need to specify some additional parameter in my case to get this property. Maybe something has changed in the API ?




Photo of Tyler Long

Tyler Long, Official Rep

  • 7,802 Points 5k badge 2x thumb
Photo of Vadim Soluyanov

Vadim Soluyanov

  • 176 Points 100 badge 2x thumb
This parameter causes an error in my case:

{
  "errorCode" : "InvalidParameter",
  "message" : "Parameter [withRecording] value is invalid",
  "errors" : [ {
    "errorCode" : "CMN-101",
    "message" : "Parameter [withRecording] value is invalid",
    "parameterName" : "withRecording"
  } ],
  "parameterName" : "withRecording"
}



(Edited)
Photo of Tyler Long

Tyler Long, Official Rep

  • 7,802 Points 5k badge 2x thumb
Are you sending "true" as string or boolean?
(Edited)
Photo of Tyler Long

Tyler Long, Official Rep

  • 7,802 Points 5k badge 2x thumb
 
Photo of Tyler Long

Tyler Long, Official Rep

  • 7,802 Points 5k badge 2x thumb
https://developer.ringcentral.com/api-docs/latest/index.html#!#RefGetUserCallLog

I mislead you. According to the doc, you should use "recordingType".

And if there is no result returned, it simply means the call was not recorded.
Photo of Tyler Long

Tyler Long, Official Rep

  • 7,802 Points 5k badge 2x thumb
And don't forget "view=Detailed"

 https://github.com/ringcentral/ringcentral-csharp-client/blob/master/RingCentral.Test/BinaryTest.cs#...

I believe you can translate the C# code to PHP. I am sure the C# code works.
(Edited)
Photo of Vadim Soluyanov

Vadim Soluyanov

  • 176 Points 100 badge 2x thumb
Thank you very match, Tayler Long! Everything worked!!! :)


Photo of Tyler Long

Tyler Long, Official Rep

  • 7,802 Points 5k badge 2x thumb
You are welcome!