Skip to main content

I want to know the start time of a call when I receive a "Disconnected" event.

The docs say telephony session event provides this information (in "eventTime") https://developers.ringcentral.com/api-reference/Account-Telephony-Sessions-Event

However, when I use real calls, the "eventTime" is just the time when the call disconnected.

Is this an issue in code or documentation?

You have to capture all the events of a telephony session and detect the event time for each call. You can detect the event time when the call is ringing, when it is answered and when it is disconnected etc.

Read these blogs to learn more about the telephony session events
https://medium.com/ringcentral-developers/ringcentral-telephony-session-events-notifications-98b3f8d29745

https://medium.com/ringcentral-developers/building-a-real-time-call-report-app-3eee247a141d


Reply