Open Media Interaction SDK 7.6 Application Blocks Guide

 

The Media Server Application Block

Summary: This section presents the design and use of the Media Server Application Block.

Design of the Media Server Application Block

The Media Server Application Block provides a set of classes that you can use to build a media server. Each class shows how to implement an MIL feature.

Figure 2.1. Class Diagram of the Media Server Application Block

Table 2.1 describes each of the components in Figure 2.1.

Class Name

Description

ConnectorMIL

Implements the connection to the Genesys Framework for a MIL application.

ucs.HandlingInteractions

Manages interaction data in the Universal Contact Server.

ixn.HandlingInteractions

Manages interactions in the Interaction Server.

SaveInteractionInUCSAndIxn

Performs the save of interactions both in the Universal Contact Server and the the Interaction Server.

LCAListener

Implements the LCA feature.

MyExtension

Implements a simple ESP extension.

Using the Media Server Application Block

This section shows how to make use of several classes of the Open Media Interaction Application Block.

Using ConnectorMIL

To use this class to connect, create a ConnectorMIL instance, then call its connect method with appropriate parameters.

ConnectorMIL mCnx = = new ConnectorMIL();
mCnx.connect("primaryHost", 0000, "applicationName", 1000, 3);

Using ucs.HandlingInteractions

Create a new com.genesyslab.omsdk.mil.applicationblocks.mediaserver.ucs.HandlingInteractions instance. Then, make a call to HandlingInteractions methods when you need to modify interaction data in the Universal Contact Server. The following code snippet shows how to create and save an interaction by using this class:

HandlingInteractions handlingInteractions = new HandlingInteractions();

handlingInteractions.saveInteraction("type", "subtype", "mediatype", "externalId", "id");

Using ixn.HandlingInteractions

Create a new com.genesyslab.omsdk.mil.applicationblocks.mediaserver.ixn.HandlingInteractions instance. Then, make call to HandlingInteractions methods when you need to modify interaction data in the Interaction Server. The following code snippet shows how to stop processing an interaction by using this class:

HandlingInteractions handlingInteractions = new HandlingInteractions();
handlingInteractions.stopInteraction("id", "ReasonCodeField", "stopReasonName", "stopReasonDescription");

Top of the page