Problem in Receiving Unsolicicted events using Protocol Manager

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

1 Like

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