Skip to main content

What I’m trying to do is enable call recording 15 seconds after the call starts.

I can detect calls via webhooks but to test this I’m only needing to use 3 API’s through my application as below -

  1. Only for testing - https://platform.ringcentral.com/restapi/v1.0/account/~/extension/{my extension id)/active-calls
    This returns the telephonySessionId of my test call.
  2. I then pass in session id into https://platform.ringcentral.com/restapi/v1.0/account/~/telephony/sessions/{sessionid} - which returns the "parties" array so I can get the Id’s.
  3. I then POST to https://platform.ringcentral.com/restapi/v1.0/account/~/telephony/sessions/{sessionid}/parties/{partyid}/recordings is meant to turn on the recording for the call but I’m getting the below error.
    I get {“erorrcode”: “Error TAS-106, “message”: “Operation not allowed”}
    Reference document is https://developers.ringcentral.com/api-reference/Call-Control/startCallRecording
    I also tried starting the recording from the all and call https://developers.ringcentral.com/api-reference/Call-Control/pauseResumeCallRecording but I get the same error as above.

I have tried both parties (my RingCentral App extension and my mobile phone (outbound call)) but nothing seems to work. The app I’m using has the CallControl scope added to it.

I have seen comments saying this works from the Web RC client but ideally I want to run this as a background service that detects calls from the RC Windows app and starts the recording automatically after a small delay.


Does anyone have any hints how to get the above working?

Many thanks!

First of all, check the call recording feature by make a call from your RC app and manually start the recording from the app. If you can record the call, then your account/extension setting is good and you should be able to control the call recording using API.

Assumed that you could record your calls manually, change your code to use the call data from the telephony session event only. Check this blog for details.

If you cannot record your calls manually, make sure that if your account is NOT set automatic call recording. Or, call recording is allowed at all for your account/region. (Check this with your RingCentral account manager).


Hi PhongVu,

Many thanks for the reply. Yes I can record from the RC app but the account I was using was an application account which by the sounds of it is the cause of the problem. Ideally I wanted a solution that would work for the entire company as a background service but from the blog you provided it states -

It’s worth mentioning that you can only record your own phone calls, a call in which you are one of the call parties. This means that you must authenticate your app using the login credentials of a user whose phone call will be recorded.


I’m assuming there is no other way generic way to do this?

If not I’ll need to use a Web app so I can I extend the functionality and then have users login to it to make calls rather than using the Windows RC app which I don’t think will go down well. :(

Thanks!


Reply