question

dev-juiced6790 avatar image
dev-juiced6790 asked ·

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
General Topic
1 |1500 characters needed characters left characters exceeded

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

1 Answer

· Write an Answer
John Wang avatar image
John Wang answered ·
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#.
2 comments
1 |1500 characters needed characters left characters exceeded

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

Currently, I do not have a webhook demo example yet.  I am working on it. But I have a sample code for C# Subscription using pub nub here, which you could refer to :     https://github.com/vyshakhbabji/ringcentral-csharp-demo/blob/master/ConsoleApplication1/Program.cs   
1 Like 1 ·
Thank you . 

Do you have any example to make subscription using C#?

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 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