question

sam-cohen12544 avatar image
sam-cohen12544 asked John Wang answered

Send request to our webpage when we start and end a call

Hi, is there a way to send call notification on our webpage like:


When the call is started, it sends web request like

https://ourwebsite.com/listen.php?started=1&from=111111111&to=22222222


And when the call ends it sends the web request like

https://ourwebsite.com/listen.php?ended=1&from=111111111&to=22222222



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.

1 Answer

John Wang avatar image
John Wang answered
You can do this by subscribing for presence events which indicate when a call starts and ends. You can do this in a client-side browser app using PubNub and on a server side app using Webhooks.

You can find more information on this here:

https://developer.ringcentral.com/api-reference#Subscriptions

You can find some tutorials here:

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