Skip to main content
Question

Subscribing to presence changes but only for users of certain Call Queues


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?

2 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2314 replies
  • April 27, 2023

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',
 ...
]

  • Author
  • New Participant
  • 2 replies
  • April 27, 2023

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?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings