Integrate RingCentral Phone Features with the RingCentral Call SDK

Embbnux Ji
RingCentral Developers
3 min readMay 12, 2020

For developers who want to integrate RingCentrals phone service, we provide the RingCentral WebRTC service and RESTful Call Control APIs for voice transmission and call control. And now we also have the RingCentral Call SDK to help developers to make and control calls easily and functionally.

We are happy to announce the new RingCentral Call SDK for Javascript.

Key features:

  • Call session management. Combined web phone session from WebRTC and telephony session from the Call Control API
  • Call session event. Handle telephony session event, sync status
  • Session functional API. Request call control API with function
  • Functional API to make and receive calls

Comparing with the RingCentral Web Phone and Call Control SDK

RingCentral Web Phone : connect user with the WebRTC and SIP based on WebSockets. Can only control the call in the current web phone device

RingCentral Call Control: control calls with RESTful APIs, this doesn’t support voice transmission, support to control all calls in current extension user, or account level (admin).

RingCentral Call: voice transmission with WebRTC, control calls with RESTful APIs, support to control all calls in current extension user.

Quickstart

The SDK is based on the RingCentral JS SDK and RingCentral Web Phone SDK. We use the JS SDK to authorize and register the web phone service — see code example below:

JS SDK to authorize and register the web phone service

To listen to a call session event you can use this code:

Listen to a call session event

To make a outbound call:

Outbound call

To get the call session list all you need to do is use this single line of code:

var sessions = rcCall.sessions;

To control the call session use this code below:

session.hold().then(...);
session.unhold().then(...);
session.toVoicemail().then(...);

Online demo

We created an online demo that you can check out on this Github page. Here are some screenshots so you can see how it works.

Receive inbound call
Make a outbound call
handle call
Get all calls

Get the demo source codes here.

Summary

That’s all about the Call JS SDK. If you are interested in learning more on how to integrate the RingCentral phone service, then make sure to go to our github page to find out even more about this SDK and make things even easier for yourself. Feel free to try it out and create issues here if you encounter any problems.

To learn even more about other features we have make sure to visit our developer site and if you’re ever stuck make sure to go to our developer forum.

Want to stay up to date and in the know about new APIs and features? Join our Game Changer Program and earn great rewards for building your skills and learning more about RingCentral!

--

--