" /> Is this a bug in SData? - Genesys CTI User Forum

Author Topic: Is this a bug in SData?  (Read 2727 times)

Offline vma

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: 0
Is this a bug in SData?
« on: March 25, 2014, 10:38:29 AM »
Advertisement
Hello,

In an URS strategy I want to check first if there are any logged in agents with specific skill set to route the call. For this I have a big VAG with all agents and then use dynamicgroup=CreateSkillGroup(statserver,VAG, skill expression). After that I apply SData with StatAgentsTotal on this dynamicgroup. The thing is that the skill expression is totaly ignored and I get the number of agents logged in that VAG. Here is logs:

_I_I_0077024297bc7156 [09:04] ASSIGN: svar_dynamicgroup(LOCAL) <- STRING: "?Contact_Centre:cs_agentii_rzb>=1@urs_statserver_p.GA"
...
_I_I_0077024297bc7156 [10:0d] HERE IS SDATA: ?Contact_Centre:cs_agentii_rzb>=1@urs_statserver_p - StatAgentsTotal
    _M_I_ [10:06] SO(3920b70 -1 0) ten=Resources name=?Contact_Centre:cs_agentii_rzb>=1@urs_statserver_p.GA: stat <StatAgentsTotal> created
12:20:49.509_M_I_ [10:4d] SO(3920b70 -1 0) ten=Resources name=Contact_Centre@urs_statserver_p.GA stat <StatAgentsTotal>: opening
12:20:49.509_M_I_ [10:4f] SO(3920b70 199 1) ten=Resources name=Contact_Centre@urs_statserver_p.GA: peek stat <StatAgentsTotal> 200 (skt 1)
12:20:49.509_M_I_ [10:06] SO(3920b70 199 1) ten=Resources name=?Contact_Centre:cs_agentii_rzb>=1@urs_statserver_p.GA: stat <StatAgentsTotal> asked (ntf 0)
12:20:49.509_I_I_0077024297bc7156 [09:04] <<<<<<<<<<<<suspend interp(SDATA), func:SData timers:00010
request to 65201(--) message RequestDistributeEvent
AttributeExtensions [96] 00 04 00 00..
'SIGNATURE' 'router'
'NAME' 'ur_server_p'
'VERSION' 'Version: 8.1.300.16'
'CLUSTER' 'ur_server_p'
AttributeUserData [147] 00 06 01 00..
'##STATISTIC##' 1
'CUSTOMER_ID' 'Resources'
'STATSERVER' 'urs_statserver_p'
'STATISTIC' 'StatAgentsTotal'
'TARGET' 'Contact_Centre'
'TYPE' 2
AttributeThisDN 'exr'
AttributeCustomerID 'Resources'
AttributeUserEvent EventUserEvent
..sent to gtstpri.test.rbro:5620(fd=13)
    _I_I_0077024297bc7156 [10:14] sdata returns 3(S)

the value returned is 3 but in fact in that group there is no agent logged having the skill cs_agentii_rzb>=1. Indeed there are 3 agents logged in but with other skill sets.
Even from the call to StatServer I see target is 'TARGET' 'Contact_Centre'. Shouldn't it be 'TARGET' '?Contact_Centre:cs_agentii_rzb>=1' ??

How do I get number of logged in agents in this group that satisfy that skill expression??

Thanks,
Mihai

Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: Is this a bug in SData?
« Reply #1 on: March 25, 2014, 03:04:20 PM »
In most cases SData doesn't work on raw (not wrapped into VAG) skill expressions - skill expression part in name of object is not supported with statserver and URS simply doesn't pass it to statserver.

Few exceptions (when SData accept skill expressions) are statistics "counted" by URS itself (not by statserver) like RStatAgentsReadyMedia, etc).

To count agents in skill expressions (or mixed cases agnetGroup+skill expressions) you can use function
CountSkillInGroup(statserver,VAG, skill expression).

Regards,
Terry