" /> EWT not working in routing but works in reporting?? - Genesys CTI User Forum

Author Topic: EWT not working in routing but works in reporting??  (Read 3262 times)

Offline vma

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: 0
EWT not working in routing but works in reporting??
« on: September 21, 2010, 11:01:31 AM »
Advertisement
So I have this issue
I created a statistic in IRD called "mihai_EWT" to calculate the EWT. I call this statistic in routing using SDATA. The problem is that the value returned is always 0. I tried to set my variable where to return the value as Integer, Float, String.. anything.. still 0.
The strange thing is that CCPulse returns the EWT. So I checked logs for statserver. In statserver it says that it returns a value to URS also but in URS logs is 0 not the value that statserver sends.
URS has a connection to Statserver.
I have the queues that are in the group as Route DNs to the AG.
Here are some logs:
statistic from URS:
[code]
10:23:10.546 Trc 04541 Message OpenStat received from 2156 ( 'URS_P')
2010-09-21 10:23:10> Client: Message from URS_P(2156) received
2010-09-21 10:23:10> Client: Message 'OpenStat'
'OBJECT' 'GroupQueues' (6)
'OBJECT_ID' 'Telco-UK-EN'
'TENANT_ID' 'Resources'
'CATEGORY' 'ExpectedWaitTime' (33)
'SUBJECT' 'DNAction' (0)
'INTERVAL' 'Growing' (0)
'TM_LENGTH' 0
'NOTIFICATION_MODE' 'ChangesBasedNotification' (0)
'INSENS_PERCENTAGE' 0
'TM_NOTIFICATION_FREQ' 2
'TM_LEFT_RANGE_LIMIT' 0
'TM_RIGHT_RANGE_LIMIT' 30
'REQ_ID' 9
'USER_REQ_ID' 0
'TIME_PROFILE' 'Default'
'MainMask' all actions clear except for
'CallWait' (9)
'CallReleased' (50)
'CallMissed' (51)
'ACWCompleted' (52)
'ACWMissed' (53)
'AgentLogin' (54)
'AgentActive' (55)
'AgentReady' (56)
'RelMask' all actions clear except for
'CallEntered' (10)
[/code]

statistic from CCPulse:
[code]
10:20:43.781 Trc 04541 Message NewAPIOpenStat received from 2184 ( 'CCPulse')
2010-09-21 10:20:43> Client: Message from CCPulse(2184) received
2010-09-21 10:20:43> Client: Message 'NewAPIOpenStat'
'OBJECT' 'GroupQueues' (6)
'OBJECT_ID' 'Telco-UK-EN'
'STAT_TYPE' 'ExpectedWaitTime'
'VOID_VALUE' TKVList Length 41
'Insens' '2'
'TimeProfile' 'Default'
'TENANT_ID' 'Resources'
'NOTIFICATION_MODE' 'TimeBasedNotification' (1)
'INSENS_PERCENTAGE' 60
'REQ_ID' 1
'USER_REQ_ID' 2
2010-09-21 10:20:43> Client: Message 'OpenStat'
'CREATE_SUSPENDED' 'no'
'DistByConnID' 0
'TM_NOTIFICATION_FREQ' 60
'NOTIFICATION_MODE' 'TimeBasedNotification' (1)
'INSENS_PERCENTAGE' 2
'INTERVAL' 'Growing' (0)
'TIME_PROFILE' 'Default'
'STAT_TYPE' 'ExpectedWaitTime'
'USER_REQ_ID' 2
'REQ_ID' 1
'SUBJECT' 'DNAction' (0)
'CATEGORY' 'ExpectedWaitTime' (33)
'TENANT_ID' 'Resources'
'OBJECT_ID' 'Telco-UK-EN'
'OBJECT' 'GroupQueues' (6)
'VOID_VALUE' TKVList Length 41
'Insens' '2'
'TimeProfile' 'Default'
'MainMask' all actions clear except for
'CallWait' (9)
'CallReleased' (50)
'CallMissed' (51)
'ACWCompleted' (52)
'ACWMissed' (53)
'AgentLogin' (54)
'AgentActive' (55)
'AgentReady' (56)
'RelMask' all actions clear except for
'CallEntered' (10)
[/code]

Here statserver should return to URS value 45
[code]
2010-09-21 10:24:03> Client: Sending message to URS_P(2156)
2010-09-21 10:24:03> Client: Message 'Info' [stats:0xdb39a60]
'STRING_VALUE' '45'
'LONG_VALUE' 45
'TM_LENGTH' 209
'TM_SERVER' 1285057443
'USER_REQ_ID' 0
'REQ_ID' 9
[/code]

Here is what it gets to URS:
[code]
_I_I_00ba01d91f3bd00f [10:0d] HERE IS SDATA: Telco-UK-EN@StatServerRT_P - mihai_EWT
10:24:03.812_M_I_ [10:06] STATOBJECT(019fc6c0 9 2) tenant=Resources name=Telco-UK-EN@StatServerRT_P.GQ: statistic <mihai_EWT> asked
    _I_I_00ba01d91f3bd00f [10:0d] sdata returns 0(S)
  result of SData: FLOAT: 0
    _I_I_00ba01d91f3bd00f [09:04] ASSIGN: vEWT(LOCAL) <- STRING: 0
[/code]

You can find the log files here: [url=http://www.infobar.ro/Genesys]Log Files[/url]
« Last Edit: September 21, 2010, 11:12:01 AM by vma »

Offline kubikle

  • Full Member
  • ***
  • Posts: 140
  • Karma: 7
Re: EWT not working in routing but works in reporting??
« Reply #1 on: September 21, 2010, 08:54:49 PM »
Most likely the fact of appearing of call on Routing point change this statistic value (from 0 to something). As asked in the very begiining of routing strategy old value of statistic is used - message from statserver about new statistic value is somwhere in the network at that moments.

Based on following:
10.23.10 statistic is 0
10.24.03 statistic become 45 and message sent to router. EventRouteRequest happened and router
                asks for statistic value also exactly this moment - 10:24.03
10.24.56 statistic is 0
10.25.25 statistic get some not 0 value and message sent to router. EventRouteRequest happened
                and router asks for statistic value also exactly this moment - 10:25.25