Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: ahmetsys on July 31, 2019, 06:08:06 AM

Title: How to get AttributeCallUUID value?
Post 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
Title: Re: How to get AttributeCallUUID value?
Post by: PeteHoyle on July 31, 2019, 08:40:30 AM
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]
Title: Re: How to get AttributeCallUUID value?
Post by: ahmetsys on August 01, 2019, 05:12:06 AM
Its work

Thanks for answer,