Programmer 39-s Guide - Avaya Jtapi

The connection point representing the PBX. 3. Getting Started: Setting Up the Environment

import javax.telephony.*; import com.avaya.jtapi.tsapi.LucentProvider; public class TelephonyManager private Provider provider; public void initializeProvider(String aesIp, String switchName, String user, String password) try // Step 1: Create the Peer JtapiPeer peer = JtapiPeerFactory.getJtapiPeer(null); // Step 2: Construct the service string String serviceString = "AVAYA#" + aesIp + "#CSTA#" + switchName; // Step 3: Open the Provider connection String providerString = serviceString + ";loginID=" + user + ";password=" + password; provider = peer.getProvider(providerString); // Step 4: Wait until the provider is in service long timeout = System.currentTimeMillis() + 5000; while (provider.getState() != Provider.IN_SERVICE) if (System.currentTimeMillis() > timeout) throw new ProviderUnavailableException("Provider connection timed out."); Thread.sleep(100); System.out.println("Successfully connected to Avaya AES Provider."); catch (Exception e) System.err.println("Failed to initialize Avaya JTAPI Provider: " + e.getMessage()); public Provider getProvider() return this.provider; Use code with caution. 4. Core Call Control Concepts avaya jtapi programmer 39-s guide

Access enhanced call center features (VDNs, Skills, and ACD agents). 3. Connection & Security The connection point representing the PBX