Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Madarasi on December 01, 2009, 08:49:03 AM

Title: Problem in Receiving Unsolicicted events using Protocol Manager
Post by: Madarasi on December 01, 2009, 08:49:03 AM
Hi,

I'm developing a SoftPhone.  I've implemented ProtocolManager to handle the server connectivity.  Now my problem is after creating VoiceProtocol with Protocol MAnager, i could not able to receive Unsolicited events from T-Server, i'm getting the following error.

"Genesyslab.Platform.Commons.Protocols.ProtocolException: External receiver is set, use its methods instead
  at Genesyslab.Platform.Commons.Protocols.DuplexChannel.get_InternalReceiver()
  at Genesyslab.Platform.Commons.Protocols.DuplexChannel.Receive(TimeSpan tsTimeout)
  at Genesyslab.Platform.Commons.Protocols.DuplexChannel.Receive()
  at TouchPoint.SoftPhone.Controller.SoftPhoneControllerFacade.ReceiveCalls()"

Can anyone give an idea to resolve this issue

S. Ramkumar
Title: Re: Problem in Receiving Unsolicicted events using Protocol Manager
Post by: Ramkumar on December 01, 2009, 11:32:21 AM
Hi,

I got the solution.  In ProtocolManager itself has "Receiver" property, using this property we can receive unsolicited events of all the registered servers.

Sample Code:

public static ProtocolManagementService protocolManager = new ProtocolManagementService();

IMessageReceiver GetReceiver=protocolManager.Receiver;

//Place where you need to receive unsolicited events
imessage response=GetReceiver.Receive();

S. Ramkumar