Wrox Programmer Forums
|
BOOK: Professional Unified Communications Development with Microsoft Lync Server 2010
This is the forum to discuss the Wrox book Professional Unified Communications Development with Microsoft Lync Server 2010 by George Durzi, Michael Greenlee; ISBN: 978-0-470-93903-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Unified Communications Development with Microsoft Lync Server 2010 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 16th, 2011, 10:43 PM
Registered User
 
Join Date: Jun 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to Reply to Instant Message

Hi,

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!
 
Old June 25th, 2011, 10:41 PM
Registered User
 
Join Date: May 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Teo, just seeing this now - this is the issue you emailed me about, right? Let me know if this was something different.
 
Old June 26th, 2011, 09:00 PM
Registered User
 
Join Date: Jun 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Replying to instant message

Hi Michael,

Thanks for the reply. This was a different question. I was trying to figure out how to reply to an instant message from a conversation that I didn't initiate. I was able to do that by setting up a flow configuration requested event.

Teo





Similar Threads
Thread Thread Starter Forum Replies Last Post
Instant Messenger Trouble with Message Window iceman90289 C# 2005 3 April 2nd, 2008 05:27 PM
i want to make an instant message that... iceman90289 C# 2005 3 March 28th, 2008 03:33 PM
ASP to setup auto reply message eapsokha Classic ASP Professional 2 September 8th, 2004 11:49 PM
Instant Messenger asims12 Classic ASP Basics 0 November 9th, 2003 01:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.