Hey there, we are using CCX.

Attached is a script that shows what happens if a caller get queued. Problem with this is that if people call, the answering agents may be logged in, but not in a ready state. As our script is currently built, the caller will end up waiting in a loop forever until an agent actually goes into a ready state. what is a good way to solve this problem? I was looking at other scripts that use a loop counter condition that is set to be a greater then an integer that transfers callers to a voicemail.. Assume that means if someone is waiting in the que for greater then integer minutes they will get transferred to a voicemail