question

ovunc-gursoy14019 avatar image
ovunc-gursoy14019 asked Phong Vu commented

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

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

apicall recording
1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Phong Vu avatar image
Phong Vu answered

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!

1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

ovunc-gursoy14019 avatar image
ovunc-gursoy14019 answered Phong Vu commented

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.

1 comment
1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Phong Vu avatar image Phong Vu ♦♦ commented ·

Good catch. Let me check how to get the recordingId. It might be missing right now. So meanwhile, you can think about an option to turn off the auto call recording then use the Call Control to start recording for those area numbers you allow to record.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.