" /> Current Agent State - Genesys CTI User Forum

Author Topic: Current Agent State  (Read 8337 times)

Offline Elango

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Current Agent State
« on: June 26, 2015, 09:00:59 AM »
Advertisement
Hi Professionals, This is my first topic in this porum so I would like to ask apologise to everyone, if anything given is wrong.

I would like to get a particular agent "Current State" along with the "Time". Is it possible ? If yes can you guys help me with it...


Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Current Agent State
« Reply #1 on: June 26, 2015, 09:12:43 AM »
What type of application - CCP+, any custom app? For historical or real-time reporting purposes?
« Last Edit: June 26, 2015, 09:17:04 AM by Kubig »

Offline Elango

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: Current Agent State
« Reply #2 on: June 26, 2015, 09:29:31 AM »
Hi Kubig,
Its a custom app, for real-time reporting purpose.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Current Agent State
« Reply #3 on: June 26, 2015, 11:05:44 AM »
use following stat configuration:

[list]
[li]Category = CurrentState[/li]
[li]MainMask = *[/li]
[li]Objects = Agent[/li]
[li]Subject = AgentStatus[/li]
[/list]

Offline Elango

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: Current Agent State
« Reply #4 on: June 26, 2015, 11:57:48 AM »
Hi Kubig,

I used ur configurations and got the below response bt still there is no exact time value.

[b]Agent Id      : xxxxx
Login Id      : yyyyy
Object Type : Agent
Place            :
      Place ID          : zzzzz
      Place Status  : 23
      Time              : 1435367705
Place Count  : 1
Status          : 23
Time            : 1435367705
[/b]

The time value which I got is about 100 days (even I restart the server).

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Current Agent State
« Reply #5 on: June 26, 2015, 12:47:16 PM »
Weird because the metric begins to be collected only the first time StatServer is requested for it. What I mean is, if you created this today, Yesterday StatServer was not collecting any information about this agent as had no clue of that metric...so, how can it be 100 days?
From where are those "logs" you show?

Enviado de meu C6602 usando Tapatalk


Offline Elango

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: Current Agent State
« Reply #6 on: June 26, 2015, 01:12:30 PM »
Hi cavagnaro,

What does

[b]Time            : 1435367705[/b]

meant to be, in the above ? Is it the time duration of agent state : 23 ?

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Current Agent State
« Reply #7 on: June 26, 2015, 01:29:02 PM »
I think it should be time, when the current state has started. The number 23 is type of the current status.

Offline Elango

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: Current Agent State
« Reply #8 on: June 26, 2015, 01:50:59 PM »
Yeah,
that is, when iam converting this [b]1435367705[/b] seconds to Time Format it shows me nearly 100 Days...

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Current Agent State
« Reply #9 on: June 26, 2015, 01:55:44 PM »
Are you sure that the value is in seconds and not the unix time format?

Offline Elango

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: Current Agent State
« Reply #10 on: June 26, 2015, 01:59:01 PM »
Yeah Sure, I have tried all kinds of possible conversions...But everything is resulted in more than 50 Days.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Current Agent State
« Reply #11 on: June 26, 2015, 02:00:00 PM »
Ok, and this metric is new at all?
again, from where are these logs?
Show StatServer answer, not your app one

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Current Agent State
« Reply #12 on: June 26, 2015, 02:11:22 PM »
Do not what conversion did you try, but I tried the UNIX time and it is equals or greater than 50 or 100 days.

Offline Elango

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: Current Agent State
« Reply #13 on: June 26, 2015, 02:58:28 PM »
Take a look at the Server Log :


23:36:43.978 Trc 04541 Message NewAPIOpenStat received from 632 ( 'MyApp')
2015-06-26 23:36:43> Client: Message from MyApp(632) received
2015-06-26 23:36:43> Client: Message 'NewAPIOpenStat'
'TM_NOTIFICATION_FREQ' 1
'NOTIFICATION_MODE' 'TimeBasedNotification' (1)
'INSENS_PERCENTAGE' 1
'VOID_VALUE' TKVList Length 28
'Insens' 1
'Filter' ''
'USER_REQ_ID' 1
'TENANT_ID' 'Resources'
'OBJECT' 'Agent' (0)
'OBJECT_ID' 'P02'
[b]'STAT_TYPE' 'CurrentAgentState'[/b]
'REQ_ID' 1
2015-06-26 23:36:43> Client: Message 'OpenStat'
'CREATE_SUSPENDED' 'no'
'FILTER' ''
'DistByConnID' 0
'TM_NOTIFICATION_FREQ' 1
'NOTIFICATION_MODE' 'TimeBasedNotification' (1)
'INSENS_PERCENTAGE' 1
'STAT_TYPE' 'CurrentAgentState'
'USER_REQ_ID' 1
'REQ_ID' 1
'SUBJECT' 'AgentStatus' (2)
'CATEGORY' 'CurrentState' (10)
'TENANT_ID' 'Resources'
'OBJECT_ID' 'P02'
'OBJECT' 'Agent' (0)
'VOID_VALUE' TKVList Length 28
'Insens' 1
'Filter' ''
'MainMask' all statuses set
'RelMask' all statuses clear
2015-06-26 23:36:43> Client: Sending message to MyApp(632)
2015-06-26 23:36:43> Client: Message 'StatOpened' [stats:0x4bdfba0]
'LONG_VALUE' 0
'TM_LENGTH' 0
'TM_SERVER' 1435376203
'USER_REQ_ID' 1
'REQ_ID' 1
2015-06-26 23:36:44> Client: Sending message to MyApp(632)
2015-06-26 23:36:44> Client: Message 'Info' [stats:0x4bdfba0]
'LONG_VALUE' 0
'TM_LENGTH' 0
'TM_SERVER' 1435376204
'USER_REQ_ID' 1
'REQ_ID' 1

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Current Agent State
« Reply #14 on: June 26, 2015, 03:19:39 PM »
Ok, main mask should be
*, ~NotMonitored, ~Monitored

Try that

Enviado de meu C6602 usando Tapatalk