PreviousNextIndex
Creating Scripts for Testing > Using Scripts to Simulate IC and CTI Connectors > Creating a Connector Script > Sample Connector Scripts
 
Sample Connector Scripts

This section contains two sample scripts that illustrate the guidelines established in Connector Script Guidelines. You can use these sample scripts as models to create your own scripts. The scripts include:

Sample IC Connector Script

The following script is a sample of an IC connector script. This script tells the simulator to check whether a new call is coming in on channel 10. If the call is coming in on channel 10, the script instructs the simulator to set the id field of the vdu variable to the value 1122334455. If the call is coming in on any other channel, the script instructs the simulator to set the id field of the vdu variable to the value 6677889900.

Sample CTI Connector Script

The following script is a sample of a CTI connector script. You can use CTI connector scripts only to check for error responses when commands are invoked. If no error response is defined in the script for a particular CTI connector, the simulator uses the default action. The default action is usually the successful completion of the item.

The following script simulates various possible error responses when the simulator encounters the designated CTI commands.

This script performs the following actions in applications that use CTI connectors:


PreviousNextIndex

©2009, Avaya Inc. All rights reserved.