" /> Populating call-related states to Info Mart state tables - Genesys CTI User Forum

Author Topic: Populating call-related states to Info Mart state tables  (Read 5256 times)

Offline Adam_W

  • Full Member
  • ***
  • Posts: 171
  • Karma: 0
Populating call-related states to Info Mart state tables
« on: April 12, 2011, 12:43:15 PM »
Advertisement
I'm trying to create an agent state report like the one available in WFM, but based on Info Mart data.

I notice that only non-call-related states (ready, not ready, acw, etc) are recorded in Info Mart (SM_RES_STATE_FACT table).  I need to build a report around all states (CallInbound, CallOutbound, CallDialling etc).

Is there any way to capture this information in the existing Info Mart tables?  I know it's possible to capture these states in the RESOURCE_STATE_FACT table based on the legacy StatServer STATUS table, but this isn't currently set up and I'd like to avoid having to create additional databases etc.

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Populating call-related states to Info Mart state tables
« Reply #1 on: April 12, 2011, 12:51:22 PM »
imho you should try DT_RES_STATE_FACT table. usage of legacy RESOURCE_STATE_FACT table which is sourced from stat server is not recommended for new deployments.

Offline Adam_W

  • Full Member
  • ***
  • Posts: 171
  • Karma: 0
Re: Populating call-related states to Info Mart state tables
« Reply #2 on: April 12, 2011, 01:16:22 PM »
Unfortunately I don't think call-related states are populated in DT_RES_STATE_FACT either.  The Info Mart User Guide names the following states:

• Unknown
• Busy
• Ready
• NotReady
• AfterCallWork (voice media only)
• LoggedOnOnly (voice media only)

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Populating call-related states to Info Mart state tables
« Reply #3 on: April 12, 2011, 01:31:25 PM »
could you show the example of report which you are trying to make?

Offline Adam_W

  • Full Member
  • ***
  • Posts: 171
  • Karma: 0
Re: Populating call-related states to Info Mart state tables
« Reply #4 on: April 12, 2011, 01:53:18 PM »
Sure, see below for the original WFM report (I couldn't attach it to this post for some reason):

[URL=http://img860.imageshack.us/i/agentstate.jpg/][img width=640 height=390]http://img860.imageshack.us/img860/6748/agentstate.jpg[/img][/URL]

I've made a comparable report from Info Mart based on agent name, state, reason, start time and duration.  This is fine, but it's missing all the call-related states.

In case you wonder why I don't just use the WFM report, the reason I'm trying to do this in Info Mart is because the WFM report is in hours and minutes, which isn't granular enough.  I need seconds as well.
« Last Edit: April 12, 2011, 01:55:45 PM by Adam_W »

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Populating call-related states to Info Mart state tables
« Reply #5 on: April 12, 2011, 02:49:24 PM »
[quote author=Adam_W link=topic=6336.msg27616#msg27616 date=1302616398]

I've made a comparable report from Info Mart based on agent name, state, reason, start time and duration.  This is fine, but it's missing all the call-related states.

[/quote]

i've made similar report too, but without callinbound and other call-related states ;) i need to take a time-out to think how to make such report.

As for assumption: DT_* tables are populated from interactions. Of course you can use INTERACTION_RESOURCE_FACT but it turns quite complicated query.

Offline eugene

  • Jr. Member
  • **
  • Posts: 85
  • Karma: 2
Re: Populating call-related states to Info Mart state tables
« Reply #6 on: April 14, 2011, 08:16:41 AM »
I wouldn't bother turning on the DT_* table. SM should be sufficient  Adam, you can get this by unioning your query to the voice_res_fact_ext table for the states you're looking for.

Offline Adam_W

  • Full Member
  • ***
  • Posts: 171
  • Karma: 0
Re: Populating call-related states to Info Mart state tables
« Reply #7 on: April 14, 2011, 10:11:27 AM »
Yeah the VOICE_RES_FACT_EXT table does look useful but the only issue is that it doesn't really record the start times for each state within that interaction.

It seems like 1 row in that table can record multiple states relating to the same call, so it may not be clear when each state began (e.g. if the agent entered CallConsult state several times during that call, when did each one occur?).

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Populating call-related states to Info Mart state tables
« Reply #8 on: April 14, 2011, 11:51:23 AM »
The table VOICE_RES_FACT_EXT is the extension of INTERACTION_RESOURCE_FACT. this table populated directly from interactions.

Offline eugene

  • Jr. Member
  • **
  • Posts: 85
  • Karma: 2
Re: Populating call-related states to Info Mart state tables
« Reply #9 on: April 15, 2011, 05:20:59 AM »
[quote author=Adam_W link=topic=6336.msg27671#msg27671 date=1302775887]
Yeah the VOICE_RES_FACT_EXT table does look useful but the only issue is that it doesn't really record the start times for each state within that interaction.

It seems like 1 row in that table can record multiple states relating to the same call, so it may not be clear when each state began (e.g. if the agent entered CallConsult state several times during that call, when did each one occur?).
[/quote]


Adam, i gave you the wrong table to go after i actually meant the ixn_resource_state_fact i've produced a diary like - Statserver STATUS table which i presume is what you're looking for.