Summary: This section presents the design and use 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. |
This section shows how to make use of several classes of the Open Media Interaction Application Block.
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);
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");
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");