Question

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

  • 23 January 2019
  • 3 replies
  • 486 views

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

Userlevel 1
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
Thank you. I look forward to hearing more...
Good morning,

Is there any update on this?

Thank you.

Reply