Accept and Terminate an Incoming Call (QuickStart)

Sample name: BasicCallHandling

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

Description

The application initializes the platform to start listening on behalf of a user, accepts the first incoming instant messaging call, and then terminates the call. This is followed by tearing down the conversation, and the platform. The application prints logging to the console, and then quits, shutting down the platform normally. Note that the sample does not send a response to the instant message that it receives.

Features

  • Basic Call placement

  • Handling of an incoming instant messaging call

  • Call and Conversation cleanup and use

  • Call termination on an established call

Prerequisites

  • Microsoft Lync Server 2010.

  • Two users capable of sending and receiving audio calls.

  • 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, and then press F5.

  3. Log in to a client (Microsoft Lync 2010) using the second user's credentials and send an instant message to the user whose credentials the endpoint is using.