Agent Interaction SDK
Services Code Example


Any authorized distribution of any copy of this code (including any related documentation) must reproduce the following restrictions, disclaimer and copyright notice:
The Genesys name, trademarks and/or logo(s) of Genesys shall not be used to name (even as a part of another name), endorse and/or promote products derived from this code without prior written permission from Genesys Telecommunications Laboratories, Inc.
The use, copy, and/or distribution of this code is subject to the terms of the Genesys Developer License Agreement. This code shall not be used, copied, and/or distributed under any other license agreement.

THIS CODE IS PROVIDED BY GENESYS TELECOMMUNICATIONS LABORATORIES, INC. (“GENESYS”) “AS IS” WITHOUT ANY WARRANTY OF ANY KIND. GENESYS HEREBY DISCLAIMS ALL EXPRESS, IMPLIED, OR STATUTORY CONDITIONS, REPRESENTATIONS AND WARRANTIES WITH RESPECT TO THIS CODE (OR ANY PART THEREOF), INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. GENESYS AND ITS SUPPLIERS SHALL NOT BE LIABLE FOR ANY DAMAGE SUFFERED AS A RESULT OF USING THIS CODE. IN NO EVENT SHALL GENESYS AND ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, ECONOMIC, INCIDENTAL, OR SPECIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, ANY LOST REVENUES OR PROFITS).

Copyright © 2007-2008 Genesys Telecommunications Laboratories, Inc. All rights reserved.

Table of Contents

  1. Introduction
  2. Setup
    1. Requirements
    2. Configuration
  3. Running the example

  1. Introduction
  2. This code example consists of a GUI application written in C# that shows how to perform various agent actions, such as logging in, making the agent ready or not ready, and logging the agent out. You can do this in either push mode or pull mode. You can also change agents.

    All of these actions are automatically updated using events from the Web Services.

  3. Setup
    1. Requirements
      • Visual Studio .Net 2003 or higher

      • Genesys Interface Server

      • Agent Interaction Services

    2. Configuration
      1. Copy the dll files and the ail-configuration.xml file (available on the product CD) into the ExternalDependencies directory provided with the AgentStatusExample code example.

      2. Set the properties of the ail-configuration.xml file, referring to the section called "The XML Configuration File" in Chapter 3 of the Agent Interaction SDK 7.5 Services Developer’s Guide for instructions on what to modify.

      3. Open the AgentStatusExample project in Visual Studio .NET.

      4. Set the ExternalDependencies directory as your working directory:

        1. Select Project > AgentStatusExample Properties...

        2. Select Configuration Properties

        3. Select Debugging

        4. In the Start options section, assign your ExternalDependencies directory to the Working Directory option. This ensures that the running application takes into account the correct ail-configuration.xml file.

      5. Make sure that all references point to the ExternalDependencies directory.

  4. Running The Example
    1. If your Genesys Interface Server integrates an AIL version prior to 7.0.104.00, uncomment the specified code in the AgentStatusForm.UpdateButtons() method of the AgentStatusForm.cs file.

    2. Rebuild the solution.

    3. Start the application.