Sample Code

This appendix covers the following topics:

Sample Codes for Integration Levels and Extension

The following tables describe the locations of the sample codes for Standard Integration, Advanced Integration and Advanced Outbound Extension, and the functions supported by the corresponding sample implementations.

Switch Simulator Overview

The switch simulator is one of the Interaction Center server processes that is used in demonstration environments where a real switch is not available. The switch simulator supports teleset and route point functions, and can be accessed programmatically using the OpenTel Bean API (a Java API, package oracle.apps.cct.openTel.bean). The switch simulator models each line of the teleset and route point as extension objects. Extension objects can be accessed using the OpenTelExtensionBean. Events are sent by the switch simulator as OpenTel events.

Sample Adapter Design for Standard and Advanced Integration

The Standard Integration and Advanced Integration sample adapter connects to the switch simulator and forwards Adapter SDK method calls to the OpenTel Bean API method calls and also process OpenTel events. The sample adapter then translates the OpenTel events into Adapter events.

The following example demonstrates the relationship among the Oracle Interaction Center servers.

Interaction Center <---> Oracle Telephony Adapter Server <--> SampleAdapter <---> Switch Simulator.

SampleTeleDeviceFactory

SampleTeleDeviceFactory reads the IP address and port from the Hashtable in its init() method.

SampleTelesetDevice

SampleTelesetDevice maintains one OpenTelExtensionBean object for each line. Adapter SDK methods are directed to the appropriate OpenTelExtensionBean object based on the line index specified. SampleTelesetDevice registers a dedicated OpenTelEventListener for each OpenTelExtensionBean object to process switch simulator events.

SampleRoutePointDevice

SampleRoutePointDevice maintains one OpenTelExtensionBean object. Adapter SDK methods are directed to the route point OpenTelExtensionBean object. SampleRoutePointDevice registers itself as OpenTelEventListener to process switch simulator events.

Sample Adapter Design for Basic Integration

For Basic Integration sample adapter design, see Sample Code.