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
Subscribing to presence changes but only for users of certain Call Queues
Tags: presence
Apr 27, 2023 at 7:11am   •   2 replies  •  0 likes
WB - Jennifer Martinson

We are currently subscribed to receive presence change notifications. We are doing this because we want to make sure people are staying within those queues when they are available. Ideally though, we are only monitoring this for a handful of call queues, so I would prefer to only subscribe for that subset of users. As it is, I get everybody's updates and then just have to check and see if they are part of my "monitored queues". Is there a way to limit the subscription and provide additional filters for presence change notifications?

on Apr 27, 2023 at 9:38am   •  0 likes

The answer below is super helpful, but I wonder if we could take it a step further? I am interested in monitoring users who are part of specific Call Queues. Since a Call Queue also has an extension, is it possible to get notifications based upon the Call Queue Extension so that anybody who is currently within that Call queue would have their presence notifications sent to us?

on Apr 27, 2023 at 10:28am   •  0 likes

Unfortunately, there is no such event notification. But there will be coming a new event notification for call queue presence which apps can get notified when a member turns on/off accept calls via a current call queue or not. It will give something like this

"body":{
        "records": [
            {
                "member": {
                    "id": "411753183004"
                },
                "acceptCurrentQueueCalls": true
            },
            {
                "member": {
                    "id": "411753646416541"
                },
                "acceptCurrentQueueCalls": false
            }
        ]
}
on Apr 27, 2023 at 10:37am   •  0 likes

That's fantastic news! Any ideas when that will be coming out?

on Apr 27, 2023 at 11:43am   •  0 likes

I cannot commit to a date. But if there is no delay, then it will be available in a week or so.

1 Answer
answered on Apr 27, 2023 at 8:45am  

You can first read a call queue members, and use the id of each member (which is the user extension id) to create a list of presence notification filters so you will only receive the presence notification of those members. E.g.

// Response from reading a call queue members
{
  ...,
  "records" : [
    {
      "uri" : "https://platform.devtest.ringcentral.com/restapi/v1.0/account/11111111/extension/11112222",
      "id" : 11112222,
      "extensionNumber" : "101"
    },
    {
      "uri" : "https://platform.devtest.ringcentral.com/restapi/v1.0/account/11111111/extension/11113333",
      "id" : 11113333,
      "extensionNumber" : "102"
    }
  ],
  ...
}
// Create a list of user presence notification filter
var evenfilters = 
[
 '/restapi/v1.0/account/~/extension/11112222/presence',
 '/restapi/v1.0/account/~/extension/11113333/presence',
 ...
]

 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