This demo application provides a complete view (server and client-side code) showing how to use the RingCentral WebRTC feature for voice calls from within the browser, and how to handle your API keys properly (making sure not to expose them server-side).
- A valid RingCentral account with access to Developer Platform
- Your RingCentral Sandbox account configured
- Node.js, Express.js, Bower installed (globally)
- A RingCentral Application defined which has VOIP Calling and Interoperability permissions enabled
- Change to the directory where your Git clones reside
git clone https://github.com/bdeanindy/ringcentral-webrtc-callus.git
thencd ringcentral-webrtc-callus
npm install
bower install
- Modify the
.env.tmpl
file (used to load environment variables locally from file) according to the properties named - Modify the
QUEUE_NUMBER
property to be a call queue in your RingCentral account (the direct number for the queue/group) - Make sure your call queue / group has members added to it
npm start
to begin the app- Visit
http://localhost:3000
in your browser (Chrome is only supported browser for WebRTC currently) - When the button turns green, click it to call your Call Queue/Group number using WebRTC directly from the browser
- When you are done talking, click the
Hang Up
button