question

amit-ohal11143 avatar image
amit-ohal11143 asked ·

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,

General Topic
1 |1000 characters needed characters left characters exceeded

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 |1000 characters needed characters left characters exceeded

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 |1000 characters needed characters left characters exceeded

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 |1000 characters needed characters left characters exceeded

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 |1000 characters needed characters left characters exceeded

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 |1000 characters needed characters left characters exceeded

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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