In Omnichannel Voice, we have a workstream that contains 4 voice queues. We need calls to queue X that do not get answered by an agent to then route to queue Y.

Since the product does not allow calls to be routed from one voice queue to another once the call is in a queue, we need to determine at the workstream level using the route to queue rules if there are any agents in queue X that are available to take the call, if not test for available agents in queue Y, if there are agents available route the call to queue Y and so on. 

In other words, in a workstream - route to queue rule - how can we query queue X for number of agents with status/presence = available. 

Any help is GREATLY appreciated!