" /> How to get AttributeCallUUID value? - Genesys CTI User Forum

Author Topic: How to get AttributeCallUUID value?  (Read 1458 times)

Offline ahmetsys

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
How to get AttributeCallUUID value?
« on: July 31, 2019, 06:08:06 AM »
Advertisement
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

Offline PeteHoyle

  • Full Member
  • ***
  • Posts: 126
  • Karma: 13
Re: How to get AttributeCallUUID value?
« Reply #1 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]

Offline ahmetsys

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: How to get AttributeCallUUID value?
« Reply #2 on: August 01, 2019, 05:12:06 AM »
Its work

Thanks for answer,