Skip to main content
Answer

How to get the session state of an outgoing call using webPhone.userAgent

  • December 16, 2022
  • 1 reply
  • 246 views

Hello everyone, I am currently developing a ringcentral widget using webphone.user agent, when I get a call, I can see the session status information with webPhone.userAgent.on("invite").


when I start the call I can see the status of the session with webPhone.userAgent.invite.


The problem is that if I start the call and the sender answers me, I can't get the session status, what WebPhone.user agent method should I use for that case, since I need that session status to do something in my widget

Best answer by Tyler850957020

https://github.com/ringcentral/ringcentral-web-phone/blob/master/demo/index.js#L596