cc/td/doc/product/voice/sw_ap_to/rel_2_1
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Creating an Application

Creating an Application

The following sections serve demonstrate how to create a new application using the programming constructs and the Cisco Application Editor.

The tutorial provides step-by-step procedures for creating the Cisco IP AA application, which is provided with the Cisco Application Editor. It divides the process of creating the application into distinct tasks, as follows:

After completing this tutorial, you should have a sufficient understanding of the different features of the Cisco Application Editor so as to modify the Cisco IP AA application or to design your own application. You can view the completed Cisco IP AA application by opening the file aa.aef.


Caution   Modifying the aa.aef file could potentially damage your Cisco IP AA.

Cisco IP Auto Attendant Functionality and User Prompts

The Cisco IP AA application provides the following functionality:

The Cisco IP AA application requires the use of the following audio prompts, stored as .wav files in the WFAVVID/Prompts/user/en_Us directory and installed automatically with the Cisco IP Telephony application engine:

Beginning a New Application

This section describes how to perform the following procedures:

Open the Cisco Application Editor by selecting the following option from the Windows Start menu:

The system displays the Cisco Application Editor window.

Procedure


Step 1   Open a blank Designer window by choosing File > New.

The system displays a new Designer window, as shown in Figure 3-1.


Figure 3-1: A Blank Designer Window


Step 2   View the file's properties.

Step 3   Declare variables for the application.

The Variable pane lets you create, modify, and view the global variables for your application. You need to define a variable before you can define the action of an application step on that variable.

For an auto attendant type application, the following string variables have already been declared to store the filename of the user prompts. You need to define the name of the files when you define the variables.


Figure 3-2: Variable Pane



Figure 3-3: Edit Variable- operExtn



Figure 3-4: Completed Variable Window



Related Topics

Defining the Main Steps

This section describes how to do the following:

Procedure


Step 1   Define the main application steps.

Step 2   Customize the Output step.

Step 3   Customize the Label step.

Step 4   Customize the Menu step.

Step 5   Set the main menu prompt.


Figure 3-5: Menu Settings


When you are finished, the Designer window should appear as in Figure 3-6.


Figure 3-6: The Main Steps After Customizing


Step 6   Save your application.

Step 7   Expand the Menu step.


Figure 3-7:
Menu Step Outputs



The Menu step, like other application steps that control application branching, generates a number of outputs that you can use to direct control of the application logic. In the next section, you will learn how to add application steps to handle each of the possible branches provided.

Adding a Parse Input Step

When callers press 1, the application prompts them to enter an extension. You use a Parse Input step to handle this entry. To create a Parse Input step, perform the following procedures.

Procedure


Step 1   Add a Parse Input step to the application.

The Parse Input step captures user entries and stores them in a selected variable.


Figure 3-8:
The Input Tab for the Parse Input Step


Step 2   Add a Redirect step to the Successful branch of the Parse Input step.

If Parse Input is successful, the application will redirect the incoming call to the extension entered by the user and which is stored in the variable extnXfer. However, the Redirect step itself has four outputs that you have to handle to complete the step.


Figure 3-9: The Redirect Step for the Successful Output of Parse Input



Figure 3-10: The Redirect Step for the Successful Output of Parse Input-2


Step 3   To handle the Timeout output of the Parse Input step add an Output step to play the AASorry.wav prompt. You also need to add a Redirect step after the prompt.

Step 4   Paste the Redirect step after the Output step following the Unsuccessful output, using the icon on the toolbar or the option on the Edit menu.

Step 5   Handle the Unsuccessful output of the Parse Input step, as shown in Figure 3-11.


Figure 3-11: Handling the Unsuccessful Output of Parse Input


Step 6   After the Unsuccessful output, add an Output step to play the AASorry.wav prompt when the Parse Input step is not successful.

Step 7   Copy the Redirect step from the Parse Input step to the Output step.


Adding a Name to Address Step

When a caller enters 2, the application expects users to enter the first few characters of a user name. When the application receives these characters, it maps the caller's entry with a user's primary extension as defined in Cisco CallManager and redirects the call. To add this functionality, you use a Name to Address step.

Procedure


Step 1   Drag the Name to Address step to Key 2.

The Name to Address step maps user entries to a directory of extensions and provides Successful, Timeout, and Unsuccessful outputs.

The extensions and names used for this step are stored in the LDAP directory, along with the mapping between the two, and the minimum number of characters required to uniquely identify each user object.

Step 2   Add application steps to create the sequence, as shown in Figure 3-12.


Figure 3-12: Handling Key 2



Completing the Application

You have now completed the core functionality of the Cisco IP AA application, and all that remains is to handle the remaining three outputs of the Menu step: Operator, Unsuccessful, and Timeout, as shown in Figure 3-13.


Figure 3-13: Handling Operator, Unsuccessful, and the Rest


Procedure


Step 1   Copy a Redirect step to the Operator output of the Menu step.

Step 2   Add Output and Goto MainMenu steps to handle The Rest output of the Menu step.

Step 3   Copy Output and Redirect steps to the Unsuccessful output of the Menu step.

Step 4   Save your application by choosing File > Save.


Testing and Debugging

Once you have completed your application, you are ready to validate and debug it. There are two procedures available to do this. For both types, you can insert or delete, as well as enable or disable breakpoints, after the application window has opened.

Inserting a breakpoint at a step stops the debug process at that step. The user can continue the process by choosing either Debug > Continue or Debug > Step Over. On choosing Debug > Step Over, the debug process proceeds one step at a time. Therefore, the user must continue to choose Debug>Step Over until the user reaches the end of the application. Similarly, the user can remove the breakpoint by choosing Debug > Remove Breakpoint.

Event-triggered debugging

You use this procedure to debug applications that depend on external events for their execution. For example, Cisco IP AA depends on an external call event (an incoming call) for triggering the execution.

All applications that require event-triggered debugging must be registered by uploading to the Cisco IP Telephony Directory server using the Repository Manager. This means that every time you edit the application, you must re-register it. For details on the registration process, see the "Administering Applications."

To debug an event-triggered application, do the following.

Procedure.


Step 1   Choose Debug > Reactive Application.

The system displays the Reactive Application Information for Debugging dialog box, which lets you identify the application filename.

Step 2   Identify the filename of the application to be debugged and specify the amount of time the Cisco Application Engine should wait for an external event to trigger the application.

Step 3   Click OK.

How the event is invoked depends on the type of event required. For example, for the Cisco IP AA, a call is made to the required number and the application window opens in the Cisco Application Editor.

Step 4   Choose Debug > Continue or Debug > Step Over.

Step 5   Correct any errors flagged by the system prompt.


Non-event triggered debugging

You use this procedure to debug applications that do not require external events for their execution (for example, applications that derive their steps from the General palette alone).

Applications that require non-event triggered debugging can be created, validated, and debugged directly from the Cisco Application Editor.

To debug a non-event triggered application, perform the following steps.

Procedure


Step 1   From an existing or new application, choose Debug > Start.

Step 2   Correct any errors flagged by system prompts.


Deploying the Application

Once you are satisfied that your new application runs correctly, deploy the application by uploading it to the Cisco IP Telephony Directory and registering it with the production Cisco Application Engine.

Procedure


Step 1   Upload the application to the Cisco IP Telephony Directory.


Figure 3-14:
Repository Manager


Step 2   Add the application to the production Cisco IP Telephony application engine.

To register an application with a Cisco IP Telephony application engine, perform the following steps.

Step 3   Start the application by clicking the Yes radio box for Enabled.

Step 4   Click Update to enter the changes and close the window.



hometocprevnextglossaryfeedbacksearchhelp
Posted: Fri May 18 17:05:58 PDT 2001
All contents are Copyright © 1992--2001 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.