Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: cavagnaro on September 25, 2017, 03:47:35 PM

Title: Get current ConnID from Interaction
Post by: cavagnaro on September 25, 2017, 03:47:35 PM
Hi guys
Having a situation here.


PSDK C#


I need to get the current connID of an interaction. I am developing a software which monitors a few DNs. The idea is that a supervisor can release a call (by business model) at any time.
Do I need to monitor the events of each DN to get the ConnID for the current call on each Event or is there a way I could just query the ConnID of a DN at any moment to send the RequestReleaseCall?


Thanks
Title: Re: Get current ConnID from Interaction
Post by: hsujdik on September 25, 2017, 04:28:52 PM
RequestQueryAddress might do the trick (you can even do that on the TestPhone on the Query tab to see how the output comes - EventAddressInfo). You don’t even need to be registered to the DN to perform the RequestQueryAddress (although you’ll need to be registered to send the RequestReleaseCall)
Title: Re: Get current ConnID from Interaction
Post by: Gabi on October 19, 2017, 01:54:48 PM
Do you have an IInteraction object? If you do, you can get the ConnID like this:

interaction.EntrepriseLastInteractionEvent.ConnID.ToString()
Title: Re: Get current ConnID from Interaction
Post by: cavagnaro on October 19, 2017, 01:58:13 PM
Thanks guys, got it.
Just to mention that the connid in the PSDK is always capital letters and TServer uses lower ones...so be careful with that.

Enviado de meu E6633 usando Tapatalk