I am working on a custom application based on the ICD system script in IPCC Express 4.0SR1. It all works fine and does what I want, except, if a call come into it and no one is logged into the agent, it tells the user they are in queue and waits for someone to log on. What I want to do, is if a call comes in and there are no agents logged in, send the call to voicemail. Sending calls to voicemail is already setup, so I just need to determine when a call comes in if agents are logged in or not, if so, process the call into the queue, if not, send it to voicemail. How can I determine if an agent is logged into the system?