Question

How can I disable call recording for an active call through the RingCentral API

  • 7 October 2019
  • 4 replies
  • 2342 views

I want to disable call recording for certain Area Codes. So I just want to disable call recording for a specific call programmatically. There are a couple of APIs but I could not figure out which one to use.


Call recording feature is enabled for all user. I dont want to disable their global call recording settings but want to disable only the active call.


Any help appreciated.

Thanks


4 replies

Userlevel 1

You will have to implement a lot to get the job done. Presumed that you set auto call recording by default for those users (meaning that all calls will be automatically recorded)

1. Listen for all coming calls to the users you want to interact with.

2. Detect when a call is connected and the area code from the caller's phone number of the notification payload from step 1.

3. Use the telephonySessionId and the partyId from the incoming call notification from step 1

4. Pause the call recording using the Call Control API

If you don't set auto call recording for those users, then do the opposite in step 4 to start recording for those numbers which are out of your area codes list.

Hope this helps!

Thanks for the answer, that looks promising.

In the API,

https://platform.devtest.ringcentral.com/restapi/v1.0/account/accountId/telephony/sessions/telephonySessionId/parties/partyId/recordings/recordingId

It also requires recordingId, do I get recording id along with the response of the incoming notification?


Thanks a lot.

Userlevel 1

@ovunc-gursoy @Kenny FONG

I found the way to get the call recording id. I have not tested yet but I think it should work.

Once you get the telephony session id of an active call, which you want to control the recording, call the Get Call Session Status API and parse the response to detect the recording id (if the call is being recorded) from the "recordings" array. If the call is not being recorded, you can call the Create Recording API to start the recording.

@Phong Vu Thank you, the call is now stopping and starting using the method you outlined yesterday

Reply