Author Topic: Problem in Receiving Unsolicicted events using Protocol Manager  (Read 4073 times)

Offline Madarasi

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Problem in Receiving Unsolicicted events using Protocol Manager
« 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

Ramkumar

  • Guest
Re: Problem in Receiving Unsolicicted events using Protocol Manager
« Reply #1 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