Dynamically start/stop call recording

  • 1
  • Question
  • Updated 2 years ago
I would like to be able to dynamicaly stop / start call recording based off some event in our 3rd party system using the RC APIs.  We are recording all calls at the trunk level and when one of our agents start taking Credit Card information we would like to stop the recording.  Once agent finishes taking that information we would start the recording again.  Is this possible?
Photo of Paul Tracy

Paul Tracy

  • 80 Points 75 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Tyler Long

Tyler Long, Official Rep

  • 6,288 Points 5k badge 2x thumb
I find a feature named "OnDemandCallRecording" here: https://developer.ringcentral.com/api-docs/latest/index.html But I cannot find any details about it. Could anybody clarify its usage?
Photo of John Wang

John Wang, Official Rep

  • 5,278 Points 5k badge 2x thumb
You can do this if the call is being handled by WebRTC. The following is from our WebRTC SDK documentation:

https://github.com/ringcentral/ringcentral-web-phone#startstop-recording

session.startRecord().then(...);
session.stopRecord().then(...);