Skip to main content
The First Step
August 22, 2017
Question

How to get Incoming call information like phone number of the person called and the extension it was answered?

Hello ,


We are new to RingCentral. We are trying to get incoming call information with the extension the call is answered immediately (real time). We need a push notification or a trigger. That sends information to a particular URL.


How can we achieve this? We use .Net .


If it can be achieved through webhook. Where can I find a sample to create a webhook.


Any help is appreciated.


Thanks

1 reply

August 22, 2017
To get real-time, incoming call information, you should make a subscription with the presence event filter:

/restapi/v1.0/account/~/extension/~/presence?detailedTelephonyState=true

You can get more information on this here:

https://developer.ringcentral.com/api-docs/latest/index.html#!#RefNotifications.html

For C#, we have a PubNub subscription example:

https://github.com/ringcentral/ringcentral-csharp-client#subscription

For webhooks, we have some examples in JS and PHP:

* JS: https://github.com/grokify/ringcentral-demos-webhooks
* PHP (via Botman): https://github.com/ringcentral/glip-botman/blob/master/index.php

Try it out in C#.