Place and Reply to an Instant Message Call (QuickStart)

Sample name: InstantMessagingCall

Sample location: %ProgramFiles%\Microsoft UCMA 3.0\SDK\Core\Sample Applications\QuickStarts\InstantMessagingCall

Description

The application initializes the platform, and logs in on behalf of a user. The sample then sends an instant message, with text of "Hello World", to another user who is logged in to a client such as Microsoft Lync 2010. The sample echoes instant messages sent by the user logged into Lync 2010. When the user logged into Lync 2010 responds with a message of text 'bye', or closes the instant messaging window, the sample shuts down the platform and exits.

Features

  • Call and conversation cleanup and use

  • Basic call placement

  • Instant messaging message use, including replying to incoming messages

  • InstantMessagingFlow handling and control

Prerequisites

  • Microsoft Lync Server 2010.

  • Two enabled to use Lync Server 2010.

  • The credentials for each user, and a client capable of signing in to Lync Server 2010.

  • A client signed in to Lync Server 2010.

Running the Sample

  1. Supply the user credentials in the accompanying app.config file, or you will be prompted for them when you run the sample.

  2. Open the project in Microsoft Visual Studio development system, and then press F5.

  3. The sample sends a "Hello World" message to the called party.

  4. Log in as the called party in Lync 2010 and send an instant message to the user the sample is logged in as.

  5. Terminate the sample by sending a message with the text "bye" to the user that the sample is logged in as.