Skip to main content
Question

I need to know how can I make a call in desktop from browser based application using the WebPhone WebRTC.


I have integrated RingCentral API for making Authentication,Inbound and Outbound SMS,SMS Store.But for making Voice call I have integrated the WebPhone from https://github.com/ringcentral/ringcentral-web-phone .WebPhone is a browser based application and I want to integrate it in my Desktop application.How to retrieve the Address book and make a call from the list of contacts from Address book and make Voice call from WebPhone.

I can share more details if required.


Regards,


5 replies

If you want to use WebRTC in your desktop app, your desktop app must have a web browser embedded.

For example, electron has Chrome browser embedded so it is able to take advantages of WebRTC. Other languages also have solutions to embed a browser. This is a Java Desktop demo: https://github.com/tylerlong/jxbrowser-webrtc

  • Author
  • New Participant
  • 1 reply
  • August 8, 2018
Hi Tyler,

I am able to make WebPhone application execute in my desktop application with a browser control in Windows but every time when I invoke the browser control it ask authentication.
I want to make the login procedure only once at the start.
Also please let me know what is the API for making logout in C# and JavaScript.

Regards,

Amit Ohal

https://github.com/ringcentral/ringcentral-js#retrieving-and-setting-auth-information

After authorization, you retrieve the auth data and persist it somewhere.  Next time you invoke the browser control, set the auth data back.  Then there is no need to do authorization every time. 

Here is the JS code to do logout: https://github.com/ringcentral/ringcentral-js#logout

The code really helped out and this was made possible, the calling in desktop from the web phone does seems like a great help. I wandered around in the  Windows 10 Recovery Media for the recovery of the code possible.

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings