Skip to main content
The First Step
Jan 23, 2019 11:51 AM UTC
Question

Cannot distinguish between ringing and answered calls for "active calls"

I'm using this endpoint to get the "active calls" for an extension, and I need to distinguish between calls that are still ringing, and calls that have been answered:


https://platform.devtest.ringcentral.com/restapi/v1.0/account/accountId/extension/extensionId/active...


However, all of the call records have a "result" of "In Progress", which is not listed as one of the 37 valid enum values in the documentation. The record will show "In Progress" before and after the call has been answered.


How can I distinguish between ringing and answered calls?


3 replies

PhongVu
Community Manager
Community Manager
Jan 23, 2019 4:31 PM UTC
Hi,

I will double check if it is by design or a bug.

Meanwhile, you can use the presence API to detect the telephony status of a user instead of using the active call API.

Please check this blog and tutorial for instructions. It is even better when you use the push notification and detect the status.

- https://medium.com/ringcentral-developers/how-to-get-a-new-call-recording-notification-ee9f2a6e41a0
- https://ringcentral-tutorials.github.io/callrecording-notification-node/?distinctId=1398916020

+ Phong
The First Step
Jan 24, 2019 1:32 PM UTC
Thank you. I look forward to hearing more...
The First Step
Jan 28, 2019 9:36 AM UTC
Good morning,

Is there any update on this?

Thank you.