Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
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!
Reply With Quote
  #2 (permalink)  
Old June 25th, 2011, 10:41 PM
Registered User
Points: 21, Level: 1
Points: 21, Level: 1 Points: 21, Level: 1 Points: 21, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Reply With Quote
  #3 (permalink)  
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 12:26 AM



All times are GMT -4. The time now is 06:22 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.