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 -
- 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. - 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.
- 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!