" /> CCPulse statistic calculation - Genesys CTI User Forum

Author Topic: CCPulse statistic calculation  (Read 3491 times)

Offline linalf

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
CCPulse statistic calculation
« on: September 14, 2007, 08:56:07 AM »
Advertisement
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..

Offline mark

  • Sr. Member
  • ****
  • Posts: 415
  • Karma: 2
Re: CCPulse statistic calculation
« Reply #1 on: September 14, 2007, 09:34:56 AM »
Hi linalf,

Can i ask why you would only want to see max wait time if there is more than 3 calls waiting?

Mark

Offline CTIgem

  • Sr. Member
  • ****
  • Posts: 273
  • Karma: 0
Re: CCPulse statistic calculation
« Reply #2 on: September 14, 2007, 12:22:46 PM »
CurrMaxWaitTime is standard in CCPulse.
Run it against Queue or VQ.

Offline mark

  • Sr. Member
  • ****
  • Posts: 415
  • Karma: 2
Re: CCPulse statistic calculation
« Reply #3 on: September 14, 2007, 02:15:22 PM »
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!