question

Bharat Chauhan avatar image
Bharat Chauhan asked Phong Vu answered

Handled voice InBound call using our own website via API - Webhooks

Requirement:

We need to get the incoming call from our website users and website admin can receive a call using the browser.

Like, Some user call via mobile phone on specific number which is predefined in our website. On dedicated page of website they receive a popup and communicate with the users.

Question:

1.) Need to know about if it is possible using ringcentral API ?
2.) If possible then, Till now I have implement and get the "partyId" and "telephonySessionId" using the webhook subscription "/restapi/v1.0/account/~/extension/~/presence?detailedTelephonyState=true" on ring-out API

=> Now need to understand the further roadmap about how we can achieve above requirement using ringcentral API.

If anyone can provide some input on above that would be great to work further with this.

Thanks..!

call handling
1 |3000

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

1 Answer

Phong Vu avatar image
Phong Vu answered

I don't fully understand your question and explanation. But if you just need to detect incoming calls and implement inbound popup, then use of of these event notification filters to catch incoming call notifications.

If you want to catch incoming calls for the entire account (every user under a RingCentral account), use:

/restapi/v1.0/account/{accountId}/telephony/sessions?direction=Inbound

If you want to catch incoming calls for a particular user, use:

/restapi/v1.0/account/{accountId}/extension/{extensionId}/telephony/sessions?direction=Inbound

Then you can check the "from.phoneNumber" to identify the caller and fetch that user info to display in your popup. It's up to you to decide at what call status you want to fetch and display the popup.

Read this article to learn more about the telephony session events.

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