How is an incoming call routed to a Java application?

A Java application can be started by one of the following methods:
  1. An incoming telephone call is routed directly to the Java environment and the Java configuration maps the called number to the application.
  2. An incoming telephone call is routed directly to the Java environment and a CCXML document contains logic that can handle the call and route it to the application.
  3. A VoiceXML application can call a Java application.

The WVR class, which represents the Blueworx Voice Response system, establishes telephone calls and enables communication with the Blueworx Voice Response system. The WVR class can also be used to make outgoing calls and to return the call at the end of the interaction.

The need for multiple application instances

Each instance of a Java application typically handles a single call at one time. To deal with more than one call you need to have multiple instances of the application waiting for calls: as many as you expect to handle during your peak hour. If you have more than one application, you need a different set of instances for each, or you can have a “top-level” Java application that greets the caller, asks them what service they require, and calls other applications as needed. The service application can be written in Java, VoiceXML, or it can be a state table.