Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Adam_W on October 07, 2011, 07:32:17 AM

Title: Send AttributeCallUUID with UserEvent
Post by: Adam_W on October 07, 2011, 07:32:17 AM
I'm trying to use Genesys Agent Scripting to send a UserEvent with a disposition code after a call has finished.

The event is sent successfully and ICON stores it in its G_CUSTOM_DATA_S table.  But InfoMart won't extract it because the CALLID field is missing.

Does anyone know how to attach AttributeCallUUID with a UserEvent?  The way I'm doing it just adds it to the UserData list, rather than an attribute of the event itself, if that makes sense.

Example below:

[code]
@07:42:32.3660 [0] 8.0.200.44 distribute_user_event: message EventUserEvent
AttributeEventSequenceNumber 00000000001ee297
AttributeTimeinuSecs 366000
AttributeTimeinSecs 1317969752 (07:42:32)
AttributeUserEvent EventUserEvent
AttributeUserData [171] 00 05 00 00..
'AttributeCallUUID' 'FOMKJ7VJHP41BBK1KBA5VVCG3O002LC0'
'test_key' 'test_value'
AttributeConnID 00c101f81ddf5d25
AttributeReferenceID 4
AttributeThisDN '8013'
[/code]


This is the code I'm using in the script:


[code]
com.genesyslab.ail.AilFactory factory = com.genesyslab.ail.AilLoader.getAilFactory();
com.genesyslab.ail.Dn dn = factory.getDn(dnId);
com.genesyslab.ail.Interaction ixn = factory.getInteraction(interactionId);
java.util.Hashtable map = new java.util.Hashtable();

map.put("test_key",outcome);
map.put("AttributeConnID",ixn.getTConnectionId());
map.put("AttributeCallUUID",callUUID);

try{
dn.sendUserEvent(map);
}catch(com.genesyslab.ail.exception.RequestFailedException exp) {}
[/code]


Maybe there is some method I can use to get the UUID, like getTConnectionId() above?
Title: Re: Send AttributeCallUUID with UserEvent
Post by: Adam_W on October 12, 2011, 01:13:08 PM
Still stuck on this.  I tried a couple of different ways of constructing the UserEvent but none of them produces the desired result!

Can't find a method like "getTCallUUID()" anywhere in the API spec either...
Title: Re: Send AttributeCallUUID with UserEvent
Post by: Adam_W on October 12, 2011, 01:49:17 PM
Hmm, seems like the call/party IDs should all be nicely linked together as long as AttributeConnId is attached to the UserEvent, which it is.

In which case I don't understand why it will not work.