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!