Author Message
imraan7862
Joined: Oct 6, 2017
Messages: 20
Offline
Hi guys,

I am trying to set up an event handler to trigger an event every time the Agent switches state e.g Ready to Not Ready, Can someone please assist.

It would be similar to the event handler that is used to detect call state changes but instead of using the call states I would like to use the Agent States.





private void OnConnectionStateChange(ConnectionStateEventArgs e)
{
if (e.NewState == Nortel.CCT.ConnectionState.Alerting)
{
......
}
}

I was thinking somewhere along those lines but firing on Agent state changes Events( Ready/ Not Ready).

Some assistance will be much appreciated still relatively novice in CCT.NET
FergusCameron [Avatar]
Joined: Apr 17, 2012
Messages: 131
Location: WI, USA
Offline
Subscribe for the 'UserPropertyChanged' event on the 'IAgent' object and use reflection to determine whether it is 'ReadyStatusAgentProperty'. Note that 'State' and 'ReadyStatus' are somewhat distinct in CCT terminology, you probably want the latter.

Fergus Cameron :: AVAYA :: DevConnect :: http://www.avaya.com/devconnect/
imraan7862
Joined: Oct 6, 2017
Messages: 20
Offline
Thank you for the assist I will give it a go
Go to:   
Mobile view