WebRTC demo unresponsive

  • 1
  • Problem
  • Updated 1 year ago
  • Not a Problem
I'm just starting to get into WebRTC and tried the WebPhone demo.  After entering app key, secret key, loging info.... and try to login I get no response.  No message that something is missing or amiss.  Does this demo not work anymore: https://ringcentral-web-phone.herokuapp.com/demo/
Photo of Don Klayman

Don Klayman

  • 342 Points 250 badge 2x thumb

Posted 1 year ago

  • 1
Photo of AK

AK, Official Rep

  • 4,372 Points 4k badge 2x thumb
Hi Don,

We just verified and the Demo application is working fine as expected. Could you please kindly verify if the extension which is used to login has a Digital Line attached to it, in order to use this capability.

You could find this information in the README.md of the Web-Phone Demo application.
Photo of VB

VB, Official Rep

  • 1,410 Points 1k badge 2x thumb
Can you please set the log level to 3 and provide us with the complete log ?
Photo of Don Klayman

Don Klayman

  • 342 Points 250 badge 2x thumb
Sorry to take so long to respond.  I'll get you the log on Monday as I have production and sandbox on the same machine and must reconfigure it.  But first must the softphone be up and running to use WebRTC? I thought the login would simply perform the 3-legged auth before I tried anything else?
Photo of Benjamin Dean

Benjamin Dean, Alum

  • 8,622 Points 5k badge 2x thumb
You do not have to be logged into the soft phone to use WebRTC if the application code has implemented 3-Legged OAuth properly. If you are experiencing an issue with that, I would add that issue to the Github Issue Tracker for the RingCentral Web Phone ( https://github.com/ringcentral/ringcentral-web-phone/issues ).
Photo of Don Klayman

Don Klayman

  • 342 Points 250 badge 2x thumb
Not trying to use soft phone I was asking if it was needed for WebRTC.  I set the log level = 3 and tried to login.  Where is the log for me to send it to you as this is your demo site?
Photo of Benjamin Dean

Benjamin Dean

  • 8,602 Points 5k badge 2x thumb
You will need to open your browser's developer tools, and export the console logs (since WebRTC is a browser-based protocol).

Additionally (and if supported by your browser, hopefully Chrome) you can use the Network tab in the developer tools and copy/paste the frame data for the 101 switching protocols socket data (which provides a bunch more information).

Due to the potentially sensitivity nature of this data, I highly recommend zipping it up and sending it to me directly, and I will share with Vyshakh.

benjamin[DOT]dean[AT]ringcentral[DOT]com
Photo of Don Klayman

Don Klayman

  • 342 Points 250 badge 2x thumb
I sent you the zipped log files you requested via email.  Thanks.
Photo of Don Klayman

Don Klayman

  • 342 Points 250 badge 2x thumb
I've received no response to the logs I sent 3 weeks ago?
Photo of VB

VB, Official Rep

  • 1,410 Points 1k badge 2x thumb
@Don, 

With respect to the demo application,  the demo app here: https://ringcentral-web-phone.herokuapp.com/demo/ works only when your app type is Server based. But your app is Browser based and needs 3 legged auth flow. 
For 3 legged auth flow, you would want to run the demo app from this repository for now:  https://github.com/anilkumarbp/ringcentral-web-phone/tree/feature/OAuth-2.0 

The demo is placed here: https://github.com/anilkumarbp/ringcentral-web-phone/tree/feature/OAuth-2.0/demo 

You would want to set up the app and run the demo app, please find all the instructions for the setup in the README file here:  https://github.com/anilkumarbp/ringcentral-web-phone/blob/feature/OAuth-2.0/README.md


We will make changes to the WebRTC demo app hosted on Heroku with 3 legged auth flow soon. 

For further assistance please feel free to leave us an email at devsupport@ringcentral.com