Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: jeddite on August 25, 2019, 10:59:04 AM

Title: WDE Customization. Add attached data during ACW
Post by: jeddite on August 25, 2019, 10:59:04 AM
Hi all,
Is it possible to add attached data during agent in ACW status? Attached date should be collected by Speechminer.
I tried to create custom command and use method interaction.setAttachedData() but it`s not work. Could anyone help me with coorect method?

[code]
        public bool Execute(IDictionary<string, object> parameters, IProgressUpdater progressUpdater)
        {
            //this.log.Info((object)nameof(CompleteVoiceDispositionCodeOnBundleCommand));
            this.container.Resolve<IEventAggregator>();
            var bandle = parameters["CommandParameter"] as IInteractionsBundle;
            if (bandle != null)
            {
                foreach (IInteraction interaction in (IEnumerable<IInteraction>)bandle.Interactions)
                {
                    IInteractionVoice interactionVoice = interaction as IInteractionVoice;


                    if (interactionVoice != null)
                    {

                       
                        KeyValueCollection userData3 = new KeyValueCollection();
                        userData3.Add("Theme123","qwerty");
                        interaction.SetAttachedData(userData3);


                        var connID = interactionVoice.TConnectionId;

                        WindowsOptions newInstance = WindowsOptions.CreateNewInstance(interaction.ContextualConfigManager);

                        var result = this.voiceService.BeginSetCallQualification(interaction.Media.Channel, interactionVoice.Device[0],
                    }
                }
            }
            return false;
        }
[/code]
Title: Re: WDE Customization. Add attached data during ACW
Post by: cavagnaro on August 26, 2019, 04:05:42 AM
The interaction already is dead as far for Inbound calls. The telephony ConnID was disposed when the EventReleased happened.
In outbound, yes it is possible as OCS controls the interaction in a different way.

Title: Re: WDE Customization. Add attached data during ACW
Post by: jeddite on August 26, 2019, 09:04:18 AM
[quote author=cavagnaro link=topic=11420.msg52046#msg52046 date=1566792342]
The interaction already is dead as far for Inbound calls. The telephony ConnID was disposed when the EventReleased happened.
In outbound, yes it is possible as OCS controls the interaction in a different way.
[/quote]

Maybe, but after call release  and when i press "mark done" i see in the logs RequestDistributeUserEvent with ConnID.


01:52:23.163 Trc 04541 RequestDistributeUserEvent received from [232] (00000034 WorkspaceDesktop_123 192.168.10.98:46751)
message RequestDistributeUserEvent
AttributeReferenceID 16
AttributeUserData [44] 00 02 01 00..
'R_TimeInFocus' 39
'R_AgentDBID' 102
AttributeUserEvent EventUserEvent
AttributeThisDN '7001'
AttributeConnID 010a02e56c8f802d
AttributeCommunicationDN '7001'
Title: Re: WDE Customization. Add attached data during ACW
Post by: cavagnaro on August 26, 2019, 01:52:56 PM
And what is the return of that event? You can send anything, the important thing is the return

Enviado de meu SM-G9650 usando o Tapatalk

Title: Re: WDE Customization. Add attached data during ACW
Post by: Leon on August 26, 2019, 02:01:20 PM
You answer yourself, I don't know much about speechminer but with InfoMart you could do that configuring the propagation rule of UserData and using [b]RequestDistributeUserEvent [/b]to send the information :



https://docs.genesys.com/Documentation/GIM/8.5.0/Dep/GIMPropagationRulesv

[i]"Use the PARTY propagation rule to capture KVP values that are set after the interaction leaves the agent (for example, during after call work [ACW]) or for user data that should be associated only with the subject of the IRF or MSF record and not propagated to other resources."[/i]