News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
I'd like to get notification about generation of recording wav file.
Tags: sdk
Jul 10, 2017 at 8:09am   •   2 replies  •  0 likes
eugene

I am using the https://github.com/ringcentral/ringcentral-csharp-client c# SDK.


I have questions.


1) Can I record using sdk, when calling?


After the call is completed, i am going to download recorded wav file.


2) How can I get status for completion of recording?

Now I gonna download recorded wav file as soon as call complete, I can download wav file after some time pass.


So I'd like to get notification about generation of wav file.


This is a code to get message status.

subscription.EventFilters.Add("/restapi/v1.0/account/~/extension/~/message-store");


I'd like to get status for recording like above I mentioned.


i am sure you can help me.


Kind Regards.

2 Answers
answered on Jul 11, 2017 at 5:22pm  
Thanks for your reply.
After the call is completed, i am going to download recorded wav file.
But at this time recorded wav file isn't generated yet.
wav file is generated after a few sec.
when should i download file.
I am sure you can help me.
can I use function subscription?
I believe you will help me. 

 0
answered on Jul 10, 2017 at 10:17am  
Hi Eugene,

1) Unfortunately, there is no API to start recording a call. Call recording can be triggered only by users from the RingCentral mobile phone or the SoftPhone after a call is connected.

2) You can access recorded files by first calling the call-log API. You might want to query for only calls with records by setting the flag "withRecording=true". Then check if the "recording" field exists in the response. If it exists, parse the "recording" object to get the "contentUri", which will let you have access to the binary file.

See this code snippets for the c# SDK.
var account = rc.Restapi().Account();    // List call Logs  var queryParams = new CallLogPath.ListParameters  {      type = "Voice",      view = "Detailed",      dateFrom = DateTime.UtcNow.AddDays(-100).ToString("o"),      withRecording = true,      perPage = 10,  };  var callLogs = await account.CallLog().List(queryParams);    // download a call recording  var callLog = callLogs.records[0];  var content = await account.Recording(callLog.recording.id).Content().Get();  File.WriteAllBytes("test.wav", content.data); 
No, you cannot get notification about generation of a wav. file. The 'message-store' is for SMS/MMS and Fax events only.

You might want to try with some work-around solution by using the "presence" event filter to get notified when a call completed, then use the sequence call above to check for a recording if any.

Hope this helps.
Paco

 1



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us