package tut;
import java.util.Locale;
import com.ibm.telephony.beans.directtalk.ApplicationProperties;
import com.ibm.telephony.beans.media.*;
import com.ibm.telephony.wvr.*;
/**
*
* InApp - a simple WVR application which lets the caller choose from a menu offering different functions
*/
public class InApp extends WVRApplication {
-
// Define the category for all the voice segments in this application.
private static final String CATEGORY = "Tutorials";
-
// Define a number of Voice Segment objects that are shared amongst all instances of this
// application within the JVM.
// Define the Welcome and Difficulties segments (example 1)
private static final VoiceSegment VS_WELCOME = new VoiceSegment(CATEGORY, "Welcome");
private static final VoiceSegment VS_DIFFICULTIES = new VoiceSegment(CATEGORY, "Difficulties");
/**
* voiceMain() - this is the entry point for the application
*/
public void voiceMain() throws WVRException {
-
// Define the Call object reference variable
Call call = null;
-
// Set the application properties
ApplicationProperties applicationProperties;
applicationProperties = this.getApplicationProperties();
-
// Create the WVR object and set the wait time
WVR wvr = new WVR(this, applicationProperties);
-
wvr.setWaitTime(-1);