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

  • 1
  • Problem
  • Updated 4 months ago
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:

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?

Photo of Snakeboard Snakeboard

Posted 4 months ago

  • 1
Photo of Phong Vu

Phong Vu, Devangelist

  • 5,406 Points 5k badge 2x thumb

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.

+ Phong
Thank you. I look forward to hearing more...
Good morning,

Is there any update on this?

Thank you.
Photo of Phong Vu

Phong Vu, Devangelist

  • 5,396 Points 5k badge 2x thumb
Hi Snakeboard,

I checked the documentation and I can confirm that there is no "Answering" result from this API. The enum also show a wrong value "ResultInProgress" while it should be just "In Progress". I also observed that some time there is a delay in updating the result status. In my test, the call was connected but the API returned "In Progress", but if I poll several time, the result finally got updated to "Call Connected".

As I said, the presence API would satisfy your need to detect ringing and also telephony status better.

+ Phong