Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: ahmetsys on July 31, 2019, 06:08:06 AM
-
Hi,
We are doing Interaction Workspace development. Our problem is, how can I pull the value of AttributeCallUUID in EventEstablished process in the method interactionManager_InteractionEvent in CustomModule class during development. we try to get value in (IInteractionVoice)e.Value but we cant find it.
Thanks for helping
-
Try this code:
[code]
private const string CALL_UUID = "CallUuid";
public CustomModule(IInteractionManager interactionManager)
{
...
interactionManager.InteractionCreated += interactionManager_InteractionCreated;
}
private void interactionManager_InteractionCreated(object sender, EventArgs<IInteraction> e)
{
e.Value.InteractionEvent += eventHandler_InteractionEvent;
}
private void eventHandler_InteractionEvent(object sender, InteractionEventArgs e)
{
IInteraction i = sender as IInteraction;
if (i.EntrepriseLastInteractionEvent is EventEstablished)
{
if (i.EntrepriseLastInteractionEvent.Contains(CALL_UUID))
{
String CallId = i.EntrepriseLastInteractionEvent[CALL_UUID].ToString();
log.Debug("UUID: " + CallId);
}
}
}[/code]
-
Its work
Thanks for answer,