Hi,
I would like to know how to use existing protocol created in iWS to send request. For ex. i want to get OpenMedia protocol and using that i need to make agent ready/Not REady. I tried the below code snippet but its not working.
IAgent myAgent = container.Resolve<IAgent>();
Genesyslab.Desktop.Modules.Core.SDK.Protocol.IChannelManager channelManager = container.Resolve<
Genesyslab.Desktop.Modules.Core.SDK.Protocol.IChannelManager>();
interactionChannel = channelManager.Register("Interaction_Server", myAgent.UserName);
if (interactionChannel != null)
{
interactionMedia = interactionChannel.EnterpriseProtocols["openmedia"];
interactionMedia.GetProtocolRequest("Ready").With(new object[]
{ Convert.ToInt32(setting._proxyID), setting.CBMediaType, }).To(interactionChannel);
}
else
{
new ExceptionAnalyzer(ContainerAccessPoint.Container).PublishError(AlertSection.Public,
"interactionChannel is null ", null, null);
RequestCancelNotReadyForMedia requestCanceNotReady = RequestCancelNotReadyForMedia.Create();
requestCanceNotReady.MediaTypeName = setting.CBMediaType;
requestCanceNotReady.ProxyClientId = Convert.ToInt32(setting._proxyID);
IMessage message = interactionChannel.Protocol.Request(requestCanceNotReady);
}
Can any one help me to resolve this issue.