Genesys CTI User Forum
		Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: gading on January 01, 1970, 12:00:00 AM
		
			
			- 
				hi everyone... i need a little bit of help here
i'm trying to make a threshold that can detect when there is a call waiting in the queue but no agents are available. Here is the code that i used before but it just doesn't seem to work. Oh, and this threshold was set to the total no of agents available
if (Threshold.StatValue = 0) and (CurrNumberWaitingCalls>0) then
   Threshold.Result = true
end if
Thanks before,
gading
			 
			
			- 
				Can you define "not available?"
Logged out or are we talking about anything that is not loggedin/ready?
The easiest would be just to look at number of calls in a queue  if you have any agents available  you would not have any calls there. So just put the threshold on that...