Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: linalf on September 14, 2007, 08:56:07 AM
-
Does anybody Know the custom script for Maximum waiting time in Queue in CCPulse+? If there are 3 calls in Queue, the output should be the maximum wait time.
Please help..
-
Hi linalf,
Can i ask why you would only want to see max wait time if there is more than 3 calls waiting?
Mark
-
CurrMaxWaitTime is standard in CCPulse.
Run it against Queue or VQ.
-
Don't have CCPulse to hand to try this, but something like this could work:
[code]
if ccpulse.statistic("CurrMaxWaitingCalls") < 3
'-- : -- : --'
else
result.Duration = ccpulse.statistic("CurrMaxWaitTime")
[/code]
Basically, if there are less than 3 calls queuing, Max Wait Time will be --:--:--.
Potentially the above might not work, but it can be done from the stats within the template easily, would make it like:
[code]
if(ccpulse.Calls.Wait < 1)
'-- : -- : --'
else
result.Duration = ccpulse.Time.MaxWait
[/code]
ccpulse.Calls.Wait is your CurrNumberWaitingCalls stat in the template
ccpulse.Time.MaxWait is your CurrMaxWaitTime stat in the template.
Hope that helps!