Genesys CTI User Forum > Genesys-related Development

WDE ConnID

<< < (2/2)

PeteHoyle:
You would need a reference to 'Genesyslab.Desktop.Modules.Voice'

And then:

using Genesyslab.Desktop.Modules.Voice.Model.Interactions;

daniel_san:
During a voice call, the event interactionManager_InteractionEvent will be executed several times. Maybe sometimes the value is null, but on next event it´s not null.

You can try to do that:

void interactionManager_InteractionEvent(object sender, EventArgs<IInteraction> e)
{
      IInteraction interaction = e.Value;
      IInteractionVoice iv = interaction as IInteractionVoice;
            if(iv.TconnectionID!=null)
            //now you can work
}

I´m assuming, that you are working with Visual Studio, and not with another ide that not trigger some error before compilation.

Regards.

EDIT: what line are launching the error?

jvallejos:
Thanks Daniel san

With this line if(iv.TconnectionID!=null) work for me



Navigation

[0] Message Index

[*] Previous page

Go to full version