Hi guys,
I've got an issue I'm working on right now with an IRD strategy that I need some help with.
Before targeting I am doing a check to make sure I have agents logged in and not in a not ready state. If there are no agents available to take the call, eg. they've all logged out, or put themselves on not ready to go on a break (I know they shouldn't do this but agents will be agents

), I collect some details from the customer and create an email for an agent to call them back.
My problem is this:
These agents have both an email and a voice channel, and there is a requirement for them to adjust the status of those channels separately (another thing they shouldn't do).
This was working previously without the email channel using a customised version of the built in URS stat "StatAgentsTotal" (with "NotReadyForNextCall" removed from the mask). I am now using the CountSkillInGroup function which gives me better results but not quite perfect.
What I need to figure out is a way to check the status of only the voice DN's for a group of agents, or a skill expression.
Everything I've tried so far looks at the agent status overall, ignoring the DN type. So if they are not ready for voice but ready for email, the strategy sees > 0 agents logged in, same if they are not ready on email but ready for voice. The only time the stat shows 0 agents is when they are either logged out, or not ready on both channels.
Any ideas?