Live Communications Server, LCS, provides a lot of fun stuff that you can do with it, and after all if you have sold it to your customer wouldn't it be cool if you also could build an application that uses the LCS as an interface? I'm going to build a Bot that looks up some customer information when asked for it. Here's the instructions on how to get started:
- Take your favorite VPC (W2k3 with LCS and VS2003 installed on it)
I think I'll build an example later on VS2005 (not a promise)
- Download the RoleAgent.msi from the Microsoft web site, you can find it here:
It could still be located here (but you never know):
- Install it (it normally goes into "C:\Program Files\Microsoft Office Live Communications Server Role Agent")
- Read the ReadMe.doc file located in the directory.
- Download the RTC API V1.3 from here:
- Install it (it normally goes into "C:\Program Files\RTC Client API v1.3 SDK")
- Run the "C:\Program Files\RTC Client API v1.3 SDK\INSTALLATION\RtcApiSetup.msi"
- Follow the instructions in the RoleBot.doc document on how to Create Role Agent Accounts.
- Modify the startup function in RoleBot.cs in the following way:
role1 = new Role();
role1.LCSServerName = "moss.litwareinc.com";
role1.Transport = RTCConstants.RTCTR.TCP;
role1.Initialize("Support Questions Group", "email@example.com", "litwareinc\\supplyquestions", "pass@word1");
- Compile the project
- Run the generated RoleBot.msi file in "C:\Program Files\Microsoft Office Live Communications Server Role Agent\Samples\Setup1\Debug"
- Start the service RTC Role Agent Service
- You can now attach to the process and debug it from VS2003 to see what happens when you send messages to your agent