question

amit-ohal11143 avatar image
amit-ohal11143 asked symphony-garner12512 answered

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,


sdk
1 |3000

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

Tyler Liu avatar image
Tyler Liu answered
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
1 |3000

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

amit-ohal11143 avatar image
amit-ohal11143 answered
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
1 |3000

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

Tyler Liu avatar image
Tyler Liu answered
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. 
1 |3000

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

Tyler Liu avatar image
Tyler Liu answered
Here is the JS code to do logout:  https://github.com/ringcentral/ringcentral-js#logout
1 |3000

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

symphony-garner12512 avatar image
symphony-garner12512 answered
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.
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