Platform SDK: Web Telephony Engine

Accessing Arrays

An array is a set of WTE computers that have similar configurations and share resources in order to increase efficiency. For example, several telephony applications can be kept in the array and shared among several servers, with each server using different devices for the same applications.

Web telephony engine arrays are represented as WTEArray objects. The set of WTEArray objects is managed through the WTEArrays collection, which is available through the Arrays property of the root object. You can obtain a reference to a WTEArray object using either of two methods of the WTEArrays collection:

The Item method of the WTEArrays collection returns a reference to any array you identify by index or name. Here are two VBScript examples:

Set objMyArray = Root.Arrays(1)
Set objAutoAttendendArray = Root.Arrays("Offshore Array")

The GetContainingArray method of the WTEArrays collection returns a reference to the containing array. (The containing array is the one to which the server running your WTE application belongs.) You can quickly obtain a reference to the containing array (also called the "current array") using code similar to this:

Set objCurArray = Root.Arrays.GetContainingArray

The WTEArray object has properties that provide access to other parts of the Web Telephony object model. The following table lists the properties that provide references to other objects and the objects returned.

Property Returns a reference to
Applications WTEApplications collection object
Log WTELog object
Servers WTEServers collection object
AddressGroups WTEAddressGroups collection object
WTEVendorDataSets WTEVendorDataSets collection object