question

Calvin Calvin Fong avatar image
Calvin Calvin Fong asked Phong Vu answered

Telephony Session Event Notification: get start time of call

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?

notifications
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Phong Vu avatar image
Phong Vu answered

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

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys