News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Webhook Incoming Call All Users In Organization
Tags: authentication
Jul 10, 2019 at 11:45am   •   6 replies  •  1 likes
Jeff Craig

I'm creating an app for my organization that does a handful of customized things that RingCentral does not do. This is my first time to use the RingCentral API and I'm stuck on how to get the Incoming Call webhook to work for all extensions in my organization. I'm using the .NET SDK and right now I have:

var rc = new RestClient(CLIENT_ID, CLIENT_SECRET, SERVER_URL);
await rc.Authorize(USERNAME, EXTENSION, PASSWORD);
await rc.Restapi().Subscription().Post(new CreateSubscriptionRequest
{
     eventFilters = new[] { "/restapi/v1.0/account/~/extension/~/incoming-call-pickup"
     deliveryMode = new NotificationDeliveryModeRequest
     {
         transportType = "WebHook",
         address = IncomingCallWebHookAddress
     }
});


But this seems to only set up the webhook to be fired for events on this one user's extension, even though the user is a Super Admin.

Is it possible to set up this webhook so that it fires each time an incoming call comes in for the over 100 users in our organization? It seems like this would be a nightmare to manage long term unless I can just have the super admin grant permissions for all extensions.

Thanks in advance!

6 Answers
answered on Aug 4, 2021 at 12:36pm  

Thanks Phong.

Was missing leading "/"




 0
on Aug 4, 2021 at 12:40pm   •  0 likes

Actually, your filter was missing the 's' as it must be '/sessions'

answered on Aug 4, 2021 at 11:59am  

If I wanted to get notified every time an outbound call is made for any of our extensions, can I use this?

"/restapi/v1.0/account/~/extension/~/telephony/session"



 0
on Aug 4, 2021 at 12:21pm   •  0 likes

For getting notification on every extension, use the Account level event filter

/restapi/v1.0/account/~/telephony/sessions

For getting only outbound calls, use the direction params

/restapi/v1.0/account/~/telephony/sessions?direction=Outbound
answered on Aug 4, 2021 at 12:37pm  

All,

Not sure about the "incoming-call-pickup" event anymore but it seems that it is not supported.

To receive an event of a call gets connected, simply use the /telephony/sessions event filter with the direction=inbound, then detect the connected status of a call

/restapi/v1.0/account/~/telephony/sessions?direction=Inbound

Read this article for further info about telephony session notifications.


 0
answered on Aug 4, 2021 at 11:53am  

Is this EventFilter still valid? "eventFilters":["/restapi/v1.0/account/~/incoming-call-pickup"]

I got a Bad Response error


"errorCode":"CMN-101","message":"Parameter [eventFilters] value is invalid","errors":[{"errorCode":"CMN-101","message":"Parameter [eventFilters] value is invalid","parameterName":"eventFilters"}],"parameterName":"eventFilters


 0
answered on Jul 28, 2019 at 8:22am  

Thanks Phong - Changing to the below worked for me.

"/restapi/v1.0/account/~/incoming-call-pickup"

 0
answered on Jul 10, 2019 at 1:35pm  

Just change the event filter with this:

"/restapi/v1.0/account/~/incoming-call-pickup"

Make sure you login with a super admin extension.


 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us