News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
I need the recent call data from call History after the call is ended
Tags: phone
Nov 7, 2020 at 11:51am   •   1 replies  •  0 likes
John Gladson Moses

Hi,


We are facing an issue - missing call data like duration etc after the call is ended. We are suggested by RC to get the data from phone.callHistory.calls after the call is ended.


I like to know when will [event/component/function] the call data be updated to phone.callHistory.calls after the call is ended and in which component/event/function I need to fetch the detail.


note: As per my analysis, the data is updated after "webphone.onCallEnd" & near to the case statement "case 'rc-call-end-notify':" in event "_onMessage" in component "Adapter". However, in the "_onMessage" I could not able to access the "phone" [could not fetch the data].


Anyone/@Embbnux Ji Please advise.


Thanks

John Gladson Moses

1 Answer
answered on Nov 9, 2020 at 10:43am  

I don't know where do you look at. In my test, I see all the inbound/outbound call in the history (almost instantly after a call is disconnected. If you want to receive telephonyStatus programmatically, add this JS code to your web page

window.addEventListener('message', (e) => {
  const data = e.data;
  if (data) {
    switch (data.type) {
      case 'rc-telephony-session-notify':
        console.log("SESSION")
        console.log(JSON.stringify(data.telephonySession))
        break
      default:
        console.log("OTHERS...")
        console.log(JSON.stringify(data))
        break;
    }
  }
});

screen-shot-2020-11-09-at-103705-am.png


 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us