Author Topic: How to attach user data POST call and send to InfoMart using ICON?  (Read 649 times)

Offline szs5tim

  • Newbie
  • *
  • Posts: 45
  • Karma: 0
Hi,

I am sending in a TLib RequestDistributeEvent from a Composer workflow to SIP Server after a call is released.
In the event I include the connection id of the call that was released and the user data.

This is received in SIP Server and he distributes this event to ICON which picks it up with the user data.
The problem is, in ICON's  G_CUSTOM_DATA_S table this KEYNAME and it's VALUE is stored without a CALLID or PARTYID and because of that it is never reaching InfoMart.

Any idea what can I do more besides adding the connection id to the RequestDistributeEvent in order for ICON to add the user data from this event to the call that was released ?

Thanks!

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2686
  • Karma: 42
Re: How to attach user data POST call and send to InfoMart using ICON?
« Reply #1 on: August 31, 2021, 12:36:05 AM »
Did you configure the certain KVP to be stored in "party" mode? By default the KVP is stored once call is released, so all subsequent updates of any fields have no effect at all.
Genesys certified professional consultant (GVP, SIP, GIR and Troubleshooting)

Offline szs5tim

  • Newbie
  • *
  • Posts: 45
  • Karma: 0
Re: How to attach user data POST call and send to InfoMart using ICON?
« Reply #2 on: August 31, 2021, 01:45:31 AM »
Did you configure the certain KVP to be stored in "party" mode? By default the KVP is stored once call is released, so all subsequent updates of any fields have no effect at all.

I configured an XML file that contains the mapping of User Data for use in Genesys Info Mart and the key history for all user data keys is set to ALL to save every change in value to the IDB, if that's what you mean with "party" mode.

But I think this doesn't even matter because this is is not attached before.

Here is a snippet of the TLIB part in SIPS log:

Code: [Select]
17:39:24.876 Int 04543 Interaction message "RequestDistributeUserEvent" received from 7956 ("ORS_MM_1_DC_MB2")
-- Absent ThisDN, ####### was used
@17:39:24.8760 [0] 8.1.104.24 send_to_client: message EventACK
AttributeEventSequenceNumber 0000000000f9a312
AttributeTimeinuSecs 876000
AttributeTimeinSecs 1630078764 (17:39:24)
AttributeReferenceID 6234
AttributeThisDN '#######'
AttributeUserEvent RequestDistributeUserEvent
17:39:24.876 Trc 04542 EventACK sent to [7956] (00001791 ORS_MM_1_DC_MB2 ######:47275)
@17:39:24.8760 [0] 8.1.104.24 distribute_user_event: message EventUserEvent
AttributeEventSequenceNumber 0000000000f9a313
AttributeTimeinuSecs 876000
AttributeTimeinSecs 1630078764 (17:39:24)
AttributeUserEvent EventUserEvent
AttributeReferenceID 6234
AttributeDNSyncInfo 96
AttributeConnID [b]0150032158b88de4[/b]
AttributeUserData [24] 00 01 00 00..
[b]'CUSTOM_DATA_4' 'test'[/b]
AttributeThisQueue '#######'
AttributeThisDN '##########'


And this is in ICON logs:

Code: [Select]
17:39:24.876 DssMonitor: set current dsLink = Tserver, session= 297715137, ref[336-104-0]
17:39:24.876 Int 04543 Interaction message "EventUserEvent" received from 65200 ("SIPServer_P_MB2@#######")
: message EventUserEvent
AttributeEventSequenceNumber 0000000000f9a313
AttributeTimeinuSecs 876000
AttributeTimeinSecs 1630078764 (17:39:24)
AttributeUserEvent EventUserEvent
AttributeReferenceID 6234
AttributeDNSyncInfo 96
AttributeConnID [b]0150032158b88de4[/b]
AttributeUserData [24] 00 01 00 00..
AttributeThisQueue '#######'
AttributeThisDN '#########'
17:39:24.876 [CSTATE] No CDATA key configured
17:39:24.876 [CSTATE] DN[########]S[0]ID[0][b][CUSTOM_DATA_4]='test'[/b]

Offline gen_rtfm

  • Full Member
  • ***
  • Posts: 110
  • Karma: 3
Re: How to attach user data POST call and send to InfoMart using ICON?
« Reply #3 on: August 31, 2021, 03:15:32 PM »
Hi,

Check table CTL_UD_TO_UDE_MAPPING in infomart. for each user data you have a propagation rule that controls this behavior.

Also, documentation describing the options:
https://docs.genesys.com/Documentation/GIM/latest/Dep/GIMPropagationRules

Br

Skickat från min Mi MIX 3 5G via Tapatalk


Offline szs5tim

  • Newbie
  • *
  • Posts: 45
  • Karma: 0
Re: How to attach user data POST call and send to InfoMart using ICON?
« Reply #4 on: August 31, 2021, 06:06:20 PM »
Hi,

Check table CTL_UD_TO_UDE_MAPPING in infomart. for each user data you have a propagation rule that controls this behavior.

Also, documentation describing the options:
https://docs.genesys.com/Documentation/GIM/latest/Dep/GIMPropagationRules

Br

Skickat från min Mi MIX 3 5G via Tapatalk

Hi,

Yeah, the user data key is set to PARTY, not CALL but still nothing.  :(

Offline gen_rtfm

  • Full Member
  • ***
  • Posts: 110
  • Karma: 3
Re: How to attach user data POST call and send to InfoMart using ICON?
« Reply #5 on: August 31, 2021, 08:46:18 PM »
Do you have other userevents being saved to icon with relation to callids?

I'd take a look at those events if that's the case and see if you are configuring your events correctly.

I assume the icon instance has 'GUD' role?

Skickat från min Mi MIX 3 5G via Tapatalk


Offline szs5tim

  • Newbie
  • *
  • Posts: 45
  • Karma: 0
Re: How to attach user data POST call and send to InfoMart using ICON?
« Reply #6 on: August 31, 2021, 09:37:00 PM »
Do you have other userevents being saved to icon with relation to callids?

I'd take a look at those events if that's the case and see if you are configuring your events correctly.

I assume the icon instance has 'GUD' role?

Skickat från min Mi MIX 3 5G via Tapatalk

Yeah, of course.
Everything is working fine and I can query userdata in Info Mart based on call id when this was attached during an active call or in case of disposition codes it works as well when they are attached after the call is released and WDE is ACW.

So in essence I do not understand what is different between WDE attaching data for a call in ACW or me sending in the event via TLIB from ORS?
In both instances the call is released from SIP Server perspective...

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7430
  • Karma: 56330
Re: How to attach user data POST call and send to InfoMart using ICON?
« Reply #7 on: August 31, 2021, 11:00:02 PM »
Are you sending this event after ACW? Or during? You can only attach data as long as ConnID is alive at SIP Server

Offline szs5tim

  • Newbie
  • *
  • Posts: 45
  • Karma: 0
Re: How to attach user data POST call and send to InfoMart using ICON?
« Reply #8 on: August 31, 2021, 11:28:40 PM »
Are you sending this event after ACW? Or during? You can only attach data as long as ConnID is alive at SIP Server

These calls never connect with an agent.
The scenario is like this:

In a workflow I use parallel execution to play a call flow and hit an scxml state block that basically is a waiting event handler that is waiting for a custom event. In the call flow I handle the connection.disconnect.hangup event where I send a POST request to ORS that publishes the custom event I wait for in the workflow which contains the user data I want to attach to the call that was released. When this POST is received in ORS the wait event handlers transitions and a TLIB request is constructed containing the user data and connection id and sent to SIPS. SIPS receives this event and distributes this to ICON as well. And all this is working but there is never a callid or partyid associated to this user data key in ICON. In my understanding all this should be possible. Am I wrong?

Offline szs5tim

  • Newbie
  • *
  • Posts: 45
  • Karma: 0
Re: How to attach user data POST call and send to InfoMart using ICON?
« Reply #9 on: August 31, 2021, 11:35:18 PM »
My main issue that I build a string that acts as a customer journey in an IVR and attach this as user data to the call and it works fine as long as the routing disconnects the call.
When the user suddenly hangs up this is not working because the "bridge" between routing and GVP is SIP since all user data is added to SIP INFO headers and this is not possible when the call was released.
There is no SIP messaging from MCP to RM to SIPS when the call was ended and I can never get this user data from the VXML...

Any ideas to get this information besides the option I am trying to implement?

Thanks!  :)

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1818
  • Karma: 60
Re: How to attach user data POST call and send to InfoMart using ICON?
« Reply #10 on: September 01, 2021, 12:10:10 AM »
I would say it should be possible to implement it in the way you've described.

Please check ICON's 'max-party-info' configuration option as default value may be low depending on traffic on your platform.

R.

Offline gen_rtfm

  • Full Member
  • ***
  • Posts: 110
  • Karma: 3
Re: How to attach user data POST call and send to InfoMart using ICON?
« Reply #11 on: September 03, 2021, 04:23:08 AM »
Have you tried reaching out to customer care, see if they can make some sense of it?

Br

Skickat från min Mi MIX 3 5G via Tapatalk


Offline vanero

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: How to attach user data POST call and send to InfoMart using ICON?
« Reply #12 on: September 03, 2021, 07:48:34 PM »
Try this https://docs.genesys.com/Documentation/Options/latest/ICON/ICON-custom-states
it works for me, data persists even after acw finishes

Offline szs5tim

  • Newbie
  • *
  • Posts: 45
  • Karma: 0
Re: How to attach user data POST call and send to InfoMart using ICON?
« Reply #13 on: September 09, 2021, 06:37:21 PM »
I tried all proposed solutions, even opened a Genesys case and they pointed towards using GVP Reporting Server since the GVP solution is not Genesys native and the reporting was never fully implemented since it comes with it's own reporting solution.
Other alternatives were to constantly update the user data through ORS's external interface on every few blocks of the call flow or save the information in a external database.

As soon as ICON receives the eventCallDeleted event, updating the user data is not possible.


Offline gen_rtfm

  • Full Member
  • ***
  • Posts: 110
  • Karma: 3
Re: How to attach user data POST call and send to InfoMart using ICON?
« Reply #14 on: September 14, 2021, 03:05:04 AM »
A late suggestion: does the ors parallell that waits for a custom event receive interaction.deleted?

If it were in an IRD strategy you could use OnCallAbandoned to capture the interaction in this case...

You probably already looked it up but I thought I'd ask.

Skickat från min Mi MIX 3 5G via Tapatalk