Skip to main content
Question

How to get call answered time?

  • October 13, 2017
  • 3 replies
  • 651 views

I am trying to get call answered time in a live call but can't seem to find API for it.


The scenario is when a user calls I want to get the time the user called until the call is picked up. I am able to get the time the call was made through Call Log API's "Get User Active Calls" method but unable to get the time the call was answered. Is there a way to achieve this?


Any help would be appreciated.

3 replies

  • Employee
  • 24 replies
  • October 13, 2017
Hi Zareef,
You can try to use Presence API, see https://developers.ringcentral.com/api-docs/latest/index.html#!#RefUserPresence.html
Once call is picked up "telephonyStatus" is changed to "CallConnected". 

The same data is available via Push Notifications, see https://developers.ringcentral.com/api-docs/latest/index.html#!#RefGetExtensionPresenceEvent 
All you need is to subscribe on "Extension Presence Event" and monitor for events with "telephonyStatus" : "CallConnected".
Please advise if it works for you, otherwise we could try to find another way to resolve your problem.

  • Author
  • New Participant
  • 1 reply
  • October 16, 2017
Hi Igor,

Thank you for the answer. The solution works perfect, however, there is an issue. Is there a way to monitor the event in real time? i-e; to get the response as soon as telephony status is changed. Or if a webhook URL is sent once the telephony status is changed?

Your answer is appreciated.

Thanks,
Zareef


  • Employee
  • 24 replies
  • October 18, 2017
The problem is in API Explorer, unfortunately it doesn't work for Subscription API case. We've included the fix in the next release. Thank you for pointing this out.

Meanwhile is it possible for you to use our API directly? All you need is authorize and create subscription.

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings