I'd like to get notification about generation of call-log

  • 1
  • Question
  • Updated 1 year ago
  • (Edited)
I am using the https://github.com/ringcentral/ringcentral-csharp-client c# SDK.

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

I was going to download recorded file, when phone state get changed "NoCall" from "CallConnected".

function I used is follow.

subscription.EventFilters.Add("/restapi/v1.0/account/~/extension/~/presence?detailedTelephonyState=true");

This function was used to get phone state.

But At this time recorded file wasn't generated yet.

The file was generated after a few sec.

I'd like to get notification about generation of call-log

I am going to download file when call-log is created.

Can I use subscription funciotn to get notification about generation call-log.?

Kind Regurd.
Photo of Eugene

Eugene

  • 210 Points 100 badge 2x thumb

Posted 1 year ago

  • 1
Photo of Tyler Long

Tyler Long, Official Rep

  • 6,288 Points 5k badge 2x thumb
I am afraid that there is no notification event for the generation of call logs.

Normally call log will be available in a few minutes after the call is finished. You can create a timer to fetch call logs repeatedly until it is successfully fetched.

If I have better solutions, I will come back and post here.
Photo of John Wang

John Wang, Official Rep

  • 5,278 Points 5k badge 2x thumb
We are consider adding a subscription event filter for call log.

If anyone else would like this, please post and let us know.

If we do that, we will update this thread and let everyone know.
Photo of Eugene

Eugene

  • 210 Points 100 badge 2x thumb
Hi. John Wang
Thanks your reply
Would you let me know specifically about  adding a subscription event filter for call log.
I want to implement it.
In order to adding a subscription event filter for call log, I did the follow.
subscription.EventFilters.Add("restapi/v1.0/account/~/extension/~/call-log"); 
But. it is happened exception at the runtime.
I believe you can help me.
(Edited)
Photo of Tyler Long

Tyler Long, Official Rep

  • 5,332 Points 5k badge 2x thumb
Here is a list of the supported event filters: https://developer.ringcentral.com/api-docs/latest/index.html#!#EventTypes.html

"/restapi/v1.0/account/~/extension/~/call-log" is not in the list so it's not supported.

As John Wang said, if anyone else would like us to support it, please post and let us know.
Photo of Eugene

Eugene

  • 210 Points 100 badge 2x thumb
Thank your responsive.
I want it.
Is there really no way?
As I said before,  I am going to download record file when completing call.
I want you to help me as long as I am using sdk you created.
kind regard.
(Edited)
Photo of Tyler Long

Tyler Long, Official Rep

  • 5,332 Points 5k badge 2x thumb
I would like to help. But currently it's not supported by API server side. Most of time you can download it 30 seconds after call ends.