View Single Post
  #1 (permalink)  
Old June 16th, 2011, 11:43 PM
TeoDeLas TeoDeLas is offline
Registered User
Join Date: Jun 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to Reply to Instant Message


I'm working through some of the examples in the book, the UC Developer training kit and SDK samples. I have the scenarios working, but I can't seem to figure out how to reply to an Instant Message within a conversation that I didn't start. Below is some of the code I'm working with. I can write out to the console e.remoteparticipant.uri. I just can't call _im.flow.beginSendInstantMessage - I get InvalidOperationException.

void InstantMesageReceived(object sender, CallRececeivedEventArgs<InstantMessagingCall> e)


Console.writeLine(e.RemoteParticipant.Uri); //This works fine

InstantMessagingCall _imCall = e.Call;

_imCall.Flow.BeginSendInstantMessage("Hi",SendMess ageCompleted, _imCall); //This doesn't work


Thank you!
Reply With Quote