cisco unity express 1.1.2/2.0 script editor · pdf filecontents 4 cisco unity express script...

158
Corporate Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408 526-4000 800 553-NETS (6387) Fax: 408 526-4100 Cisco Unity Express Script Editor Installation and Configuration Guide Release 1.1.2/2.0 December 2004

Upload: nguyenhanh

Post on 17-Mar-2018

276 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Cisco Unity Express Script Editor Installation and Configuration GuideRelease 1.1.2/2.0December 2004

Corporate HeadquartersCisco Systems, Inc.170 West Tasman DriveSan Jose, CA 95134-1706 USAhttp://www.cisco.comTel: 408 526-4000

800 553-NETS (6387)Fax: 408 526-4100

Page 2: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS.

THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY.

The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB’s public domain version of the UNIX operating system. All rights reserved. Copyright © 1981, Regents of the University of California.

NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS” WITH ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE.

IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

Cisco Unity Express Script Editor Installation and Configuration GuideCopyright © 2003-2004 Cisco Systems, Inc. All rights reserved.

CCSP, the Cisco Square Bridge logo, Cisco Unity, Follow Me Browsing, FormShare, and StackWise are trademarks of Cisco Systems, Inc.; Changing the Way We Work, Live, Play, and Learn, and iQuick Study are service marks of Cisco Systems, Inc.; and Aironet, ASIST, BPX, Catalyst, CCDA, CCDP, CCIE, CCIP, CCNA, CCNP, Cisco, the Cisco Certified Internetwork Expert logo, Cisco IOS, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Empowering the Internet Generation, Enterprise/Solver, EtherChannel, EtherFast, EtherSwitch, Fast Step, GigaDrive, GigaStack, HomeLink, Internet Quotient, IOS, IP/TV, iQ Expertise, the iQ logo, iQ Net Readiness Scorecard, LightStream, Linksys, MeetingPlace, MGX, the Networkers logo, Networking Academy, Network Registrar, Packet, PIX, Post-Routing, Pre-Routing, ProConnect, RateMUX, Registrar, ScriptShare, SlideCast, SMARTnet, StrataView Plus, SwitchProbe, TeleRouter, The Fastest Way to Increase Your Internet Quotient, TransPath, and VCO are registered trademarks of Cisco Systems, Inc. and/or its affiliates in the United States and certain other countries.

All other trademarks mentioned in this document or Website are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (0406R)

Page 3: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Cisco Unity ExpCisco Unity Express Release 1.1.2/2.0

C O N T E N T S

Installing Cisco Unity Express Script Editor 1

Prerequisites 1

Procedure 1

Overview of Cisco Unity Express Script Editor 3

Creating Cisco Unity Express Scripts 3

Using the Cisco Unity Express Script Editor Window 4

Using the Menu Bar 6

File Menu Options 6

Edit Menu Options 7

Tools Menu Options 7

Window Menu Options 7

Help Menu Options 8

Using the Toolbar 8

Using the Palette Pane 9

Using the Design Pane 9

Starting a Script 9

Adding a Step 10

Customizing a Step 11

Using the Variable Pane 12

Defining Variables 13

Using Basic Built-in Variable Types 14

Exporting Variables Using Parameters 16

Using Advanced Built-in Variable Types 17

Using the Debug Pane 18

Using Prompts 18

Using Expressions 19

Using Expression Input Formats 20

Using Operators with the Expression Editor 23

Configuring Error Handling 24

Configuring Basic Error Handling 24

Continue on Prompt Errors 24

Error Output Branches 25

Configuring Advanced Error Handling 25

Using the On Exception Goto Step 25

3ress Script Editor Installation and Configuration Guide

Page 4: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Contents

Using Default Scripts 26

Configuring Script Interruption 26

Constructing a Simple Script 29

Creating an Alternate Greeting Script 29

Create the Scripts 30

Define Variables 30

Create the Prompt Files 30

Creating an Office Hours Menu Script 30

Create the Script Files 31

Create the Prompt Files 31

Main Script: S1_Main-OfficeHours.aef 32

Dial by Extension Subflow: S1_DialbyExtension.aef 34

Transfer to the Receptionist Subflow: S1_XfertoOper.aef 36

Creating an Office Directory Script 37

Create the Script File 37

Define Variables 38

Create the Prompt Files 39

Configuring an Auto Attendant Script 41

Overview 41

System Prompts Used in the AA Script 43

Configuring the Script 44

Configure the Auto Attendant Script Variables 44

Configure Steps in the Design Pane 45

Configure the Main Menu Step 47

Configure the Play Prompt Step 66

Configure the Call Redirect Step 67

Configure the If Step 67

Configure the Play Prompt Step 67

Insert the End Step 67

Script Step Reference Information 69

General Steps 69

Annotate 70

Call Subflow 71

General Tab 71

Parameter Mapping Tab 72

Day of Week 73

Decrement 75

4Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 5: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Contents

Delay 75

End 76

Goto 77

If 77

Increment 78

Label 78

On Exception Clear 79

On Exception Goto 79

Set 81

Start 82

Switch 82

Time of Day 83

Contact Steps 85

Accept 86

Get Contact Info 87

Set Contact Info 88

Terminate 90

Call Contact Steps 90

Call Redirect 91

Get Call Contact Info 93

Media Steps 95

Explicit Confirmation 96

General 96

Prompts 97

Input 99

Get Digit String 100

General 100

Prompt 102

Input 103

Filter 105

Implicit Confirmation 106

Menu 108

General 108

Prompt 110

Input 111

Name To User 113

General 114

Prompt 116

Input 118

5Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 6: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Contents

Play Prompt 119

General 120

Prompt 120

Input 121

User Steps 123

Get User Info 123

Prompt Steps 125

Create Conditional Prompt 125

Create Container Prompt 127

Creating a Concatenated Prompt 128

Creating an Escalating Prompt 129

Creating a Random Prompt 130

Create Generated Prompt 132

Generator Types 134

G L O S S A R Y

I N D E X

6Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 7: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Installing Cisco Unity Express Script Editor

This chapter describes how to install the Cisco Unity Express Script Editor application.

PrerequisitesInstall one of the following operating systems:

• Windows NT (Workstation or Server) with Service Pack 4 or later

• Windows 2000 (Professional or Server)

• Windows XP Professional

Note Do not install the Cisco Unity Express Script Editor application on hardware on which you previously installed the Cisco Customer Response Applications Developer (CRA) Editor application. These applications share registry files and will not work if installed on the same hardware.

ProcedureFollow these steps to install the Cisco Unity Express Script Editor software:

Step 1 Use a web browser to download the Cisco Unity Express Script Editor installation program from Cisco.com or install the Cisco Unity Express Script Editor from the Cisco Unity Express Application Software CD.

Step 2 Double-click the executable Cisco Unity Express Script Editor file. The filename will be similar to CiscoCUEEditorvx.x.exe, where x.x is the release that you are installing.

The InstallShield Wizard appears and begins extracting files for the installation. (This process may take a few minutes.)

Step 3 At the Welcome prompt, click Next.

The Software License Agreements dialog box appears.

Step 4 Read the software license agreements, then click Yes.

The Choose Destination Location dialog box appears.

1Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 8: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Installing Cisco Unity Express Script Editor Procedure

Step 5 Do one of the following:

• Click Next to accept the default directory option, C:\Program Files\wfavvid.

The Select Program Folder dialog box appears.

• Perform the following procedure to choose a different destination:

– Click Browse.

The Choose Folder dialog box appears.

– Browse to the desired location, and then click OK.

The Choose Folder dialog box closes, and the destination appears in the Choose Destination Location dialog box.

– Click Next.

The Select Program Folder dialog box appears.

Step 6 In the Select Program Folder dialog box, do one of the following to add program icons to the program folder:

• Accept the default location.

• Type the name of the new folder.

• From the list of folders, choose the folder in which you want to store the program icons.

Step 7 Click Next.

The Start Copying Files dialog box appears.

Step 8 Do one of the following:

• To change any of your previous choices, click Back, make the desired changes, return to the Start Copying Files dialog box, and click Finish.

• If you accept all your choices, click Finish.

The InstallShield Wizard closes, and the Cisco Unity Express Script Editor is installed at the indicated destination.

2Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 9: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor

The Cisco Unity Express Script Editor is a visual programming environment for creating auto attendant application scripts. You can use the Cisco Unity Express Script Editor on any PC with Microsoft Windows software.

Note Do not install the Cisco Unity Express Script Editor application on hardware on which you previously installed the Cisco Customer Response Applications Developer (CRA) Editor application. These applications share registry files and will not work if installed on the same hardware.

This chapter provides an overview of the Cisco Unity Express Script Editor application, including the windows and panes, and gives information about using script elements. It contains the following topics:

• Creating Cisco Unity Express Scripts, page 3

• Using the Cisco Unity Express Script Editor Window, page 4

• Using Prompts, page 18

• Using Expressions, page 19

• Configuring Error Handling, page 24

• Configuring Script Interruption, page 26

Creating Cisco Unity Express ScriptsThe Cisco Unity Express Script Editor allows you to create and validate scripts for handling calls that reach the auto attendant application. A script is comprised of steps and variables.

A step is a Java-based block of contact-processing logic. You do not need to understand Java programming to build a Cisco Unity Express script.

Each step has its own unique capabilities, such as simple incrementing, generating and playing out prompts, and obtaining user input.

Steps can act individually or they can be grouped to work as a subprocedure, called an output branch. An output branch returns a value to the main procedure.

Some steps require variables in order to complete their function; other steps do not require additional information.

Variables provide data that influence how the script will proceed. The data source may be user input or values calculated by other script steps or procedures.

3Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 10: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using the Cisco Unity Express Script Editor Window

Creating a script involves the following tasks:

• Assemble steps in an appropriate order.

Drag step icons from a palette on the left pane of the workspace to the design area on the right pane of the workspace. You can add, delete, or reorder steps as needed.

The Cisco Unity Express Script Editor supplies the code required to connect the steps.

• Provide any variable definitions and other parameters required for the steps.

• Validate the completed script directly in the Cisco Unity Express Script Editor.

Using the Cisco Unity Express Script Editor WindowTo start the Cisco Unity Express Script Editor, use the following path:

Start > Programs > Cisco CUE Developer > Cisco CUE EditorThe Cisco Unity Express Script Editor window appears, as shown in Figure 1.

4Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 11: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using the Cisco Unity Express Script Editor Window

Figure 1 Cisco Unity Express Script Editor Window

Table 1 describes the four panes of the Cisco Unity Express Script Editor window:

Table 1 Cisco Unity Express Script Editor Window

Pane Number Pane Name Description

1 Palette pane Use the Palette pane to choose the steps you need to create your script. See “Using the Palette Pane” on page 9 for a description of this pane.

2 Design pane Use the Design pane to create your script. See “Using the Design Pane” on page 9 for a description of this pane.

5Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 12: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using the Cisco Unity Express Script Editor Window

Using the Menu BarThe following sections describe the menu bar options in the Cisco Unity Express Script Editor window.

• File Menu Options, page 6

• Edit Menu Options, page 7

• Tools Menu Options, page 7

• Window Menu Options, page 7

• Help Menu Options, page 8

File Menu Options

Use File menu options to perform a variety of tasks with files as shown in Table 2:

3 Debug pane Use the Debug pane to view messages when you are validating a script. See “Using the Debug Pane” on page 18 for a description of this pane.

4 Variable pane Use the Variable pane to create, modify, and view variables for your script. See “Using the Variable Pane” on page 12 for a description of this pane.

Table 1 Cisco Unity Express Script Editor Window

Pane Number Pane Name Description

Table 2 File Menu Options

Option Description

New Creates a new script and places a Start step in the Design pane.

(The Start step is the first step of every new script.)

Open Displays a standard Open window that allows you to choose and open an existing script (.aef) file.

Use the Open option to modify an existing script.

Close Closes the current script file.

Save Saves the current script file.

Save As Opens a standard Save As window that you can use to save your current script by entering a filename with an .aef extension.

Print Prints the current file.

Properties Provides two tabs:

• General—Describes the type, location, and size of the opened file.

• Summary—Provides fields you can use to enter descriptive information about the opened file.

6Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 13: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using the Cisco Unity Express Script Editor Window

Edit Menu Options

Use Edit menu options to perform various editing tasks as shown in Table 3:

Tools Menu Options

The only Tools menu option is Validate.

Use the Validate menu option to check that your script sequence and your step properties usage conform to the general syntax that the Cisco Unity Express Script Engine requires.

Window Menu Options

Use Window menu options to control how multiple files appear in the Design pane as shown in Table 4:

Table 3 Edit Menu Options

Option Description

Undo Undoes last action

Redo Redoes last action

Cut Cuts selected items

Copy Copies selected items

Paste Pastes selected items

Table 4 Window Menu Options

Option Description

Cascade Displays files as stacked windows

Tile Horizontally Displays files as equal windows tiled horizontally

Tile Vertically Displays files as equal windows tiled vertically

7Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 14: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using the Cisco Unity Express Script Editor Window

Help Menu Options

Use Help menu options to obtain more information about Cisco Unity Express Script Editor screens, fields, and software as shown in Table 5:

Using the ToolbarThe Cisco Unity Express Script Editor toolbar provides icons you click to choose some of the same options available from the Menu bar. (See Figure 2.)

Figure 2 Cisco Unity Express Script Editor Toolbar

Table 6 describes the function of each numbered tool on the toolbar shown in Figure 2.

Table 5 Help Menu Options

Option Description

Help Displays information about the Cisco Unity Express Script Editor screens and fields.

About Displays the version number of the Cisco Unity Express Script Editor software.

Table 6 Cisco Unity Express Script Editor Window Toolbar Functions

Tool Number Description

1 Creates a script

2 Opens a script

3 Saves a script

4 Prints selected file

5 Cuts selected item

6 Copies selected item

7 Pastes selected item

8 Undoes previous command

9 Redoes previous command

8Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 15: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using the Cisco Unity Express Script Editor Window

Using the Palette PaneThe Palette pane of the Cisco Unity Express Script Editor contains all the steps available for developing scripts. (See Figure 3.)

Figure 3 .Cisco Unity Express Script Editor Palette Pane

For complete descriptions of the steps in every palette pane category, go to:

• “General Steps” on page 69

• “Contact Steps” on page 85

• “Call Contact Steps” on page 90

• “Media Steps” on page 95

• “User Steps” on page 123

• “Prompt Steps” on page 125

To display the contents of a palette, click the plus sign (+) to the left of the palette icon in the Palette pane.

To create your script, click a step in the Palette pane and drag it on top of the step that it should follow in the Design pane. Each step performs a specific function and creates a portion of the underlying programming. You can customize most of the steps once you have placed them in the Design pane.

Your cursor will display the international prohibited sign until you move a step into a location that the Cisco Unity Express Script Editor allows.

Note If you try to drag a step to the Design pane when a customizer window is open, the Design pane will not accept the step. Before you drag a step to the Design pane, close any open customizer window(s), one or more of which may be hidden behind the Cisco Unity Express Script Editor window.

Using the Design PaneThe Design pane of the Cisco Unity Express Script Editor is the location where you perform the largest portion of your script development.

Starting a Script

To begin a new script in the Design pane of the Cisco Unity Express Script Editor window, choose File > New. The Cisco Unity Express Script Editor adds the Start step automatically and provides the starting point to which you add your steps.

9Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 16: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using the Cisco Unity Express Script Editor Window

Adding a Step

To add a step to your script, drag the step icon from the Palette pane and drop it onto the step it will follow in the Design pane. Place the steps in logical order for the script you are building.

To change the order of a step in the script, drag the individual step icon from its old location to its new location. To delete a step, select the step icon and press the Delete key.

To end the script, click the General palette and drag End to your script. The End step appears.

Figure 4 shows an example of how a script displays in the Design pane.

Figure 4 Script Example in the Design Pane

Many steps have output branches under which you add steps to provide desired script logic based on the exit condition of the step.

In Figure 4 above, for example, the Menu step has five output branches:

• DialByExtn

• DialByName

• Operator

• Timeout

• Unsuccessful

Output branches often contain steps and other output branches. In Figure 4, for example, the DialByExtn output branch contains five steps below it, one of which (the Get Digit String step) contains three output branches.

To expand the script under a step, click the plus sign (+) to the left of the step icon. To contract the script under a step, click the minus sign (-) to the left of the step icon.

At run time, each script follows a hierarchical sequence, as indicated by the vertical lines connecting steps. In Figure 4, for example, if the script reaches the Timeout output branch of the Get Digit String step, the script will move to the next step at the level of the Menu step, which, in this example, is the Play Prompt step.

10Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 17: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using the Cisco Unity Express Script Editor Window

Customizing a Step

You can customize most of the steps in the Cisco Unity Express Script Editor by opening windows called customizer windows. A customizer window contains text fields, called properties, that you can configure to meet the needs of your script. Depending on the step, the properties may be grouped under multiple tabs.

To display the customizer window for a step, perform the following procedure:

Step 1 In the Design pane, right-click the step you want to customize.

The Properties popup menu appears. For example, Figure 5 shows the Menu step Properties popup menu.

Figure 5 Properties Popup Menu—Menu Step

Step 2 Click Properties.

The customizer window of the step appears. For example, Figure 6 shows the Menu customizer window.

11Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 18: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using the Cisco Unity Express Script Editor Window

Figure 6 Menu Customizer Window

Step 3 Enter appropriate data to customize the step. See each step description later in this guide for the explanation of the customizer window properties for that step.

Each customizer window contains four buttons:

• OK—Applies the changes and closes the customizer window.

• Apply—Applies the changes without closing the customizer window.

• Cancel—Closes the customizer window without applying any changes.

• Help—Displays context-sensitive help for this step.

Customizer windows may also have additional buttons that you use to modify and display various properties within a step.

Step 4 Click the appropriate button after you finish making the changes to the step.

Using the Variable PaneThe Variable pane of the Cisco Unit Express Script Editor is the location where you add and modify the variables used by the script. (See Figure 7 on page 13.) Variables store data that a script uses when it executes the steps. Any step in your script can use variables once you define them in the Variable pane of the Cisco Unity Express Script Editor window. (See Figure 1 on page 5.)

12Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 19: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using the Cisco Unity Express Script Editor Window

You can also map variables you define for your script to variables you define in a subflow, which is a set of steps that function as part of another script, called the primary script. A subflow can use and manipulate a variable, then return the data that is stored in the variable to the primary script. Scripts cannot share variables with other scripts, except in the case of default scripts, in which the primary script automatically transfers the values of its variables to a default script.

The value of a variable can change during execution.

This section includes the following topics:

• Defining Variables, page 13

• Using Basic Built-in Variable Types, page 14

• Exporting Variables Using Parameters, page 16

• Using Advanced Built-in Variable Types, page 17

Defining Variables

To define a new variable, click the New Variable icon at the top left corner of the Variable pane of the Cisco Unity Express Script Editor window. The Edit Variable window appears. (See Figure 7.)

Figure 7 Variable Pane and Edit Variable Window

Table 7 describes the function of each tool in the Variable pane.

After you use the Edit Variable window to define your variables, the variables appear in the Variable pane. You can select a variable and use the Modify or Delete icons to make any necessary changes.

Table 7 Variable Pane Toolbar Functions

Tool Number Description

1 New Variable icon

2 Delete Variable icon

3 Modify Variable icon

13Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 20: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using the Cisco Unity Express Script Editor Window

Table 8 describes the fields in the Edit Variable window.

Using Basic Built-in Variable Types

Table 9 describes the basic built-in variable types:

Table 8 Edit Variable Properties

Property Description

Name Name of the variable you want to declare.

Type Type of variable you want to declare. See “Using Basic Built-in Variable Types” section on page 14 for the available variable types.

Java Type Fully qualified class name located using the CLASSPATH environment variable on your computer.

Note The field displays the actual Java type corresponding to the built-in data type chosen in the Type drop-down menu.

Value Data you initially assign to a variable. The type of data you enter must match the data type you declared in the Type field.

Parameter If checked, sets the value for this parameter in the auto attendant web interface when you provision applications that use this script.

Table 9 Variable Types

Variable Name Description Java Class Name Variable Input Format

Boolean A Boolean variable is either true or false, and is used primarily by the If step in the General palette of the Cisco Unity Express Script Editor.

java.lang.Boolean • t, f

• true, false

Character A Character variable consists of alphanumeric characters.

java.lang.Character • Lowercase letters a to z

• Uppercase letters A to Z

• Digits 0 to 9

• Any escape sequence: “\t”, “\r”, “\0”, “\n”, “\f”, “\\”, “\”

• “\uXXXX” can be used to represent any character using the character hexadecimal Unicode number XXXX

Float A Float variable consists of decimal numbers.

java.lang.Float • 3.14159

• 2E-12

• -100

Integer An Integer variable consists of whole numbers, from -2147483648 to 2147483647, inclusive.

java.lang.Integer • 234556789

• 0

• -23

14Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 21: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using the Cisco Unity Express Script Editor Window

String A String variable consists of a set of Unicode characters, from “\u0000” to “\uffff” inclusive.

java.lang.String • “Hello”, “C:\WINNT\win.ini”—This format does not support any escape characters or Unicode characters.

• u“\”This is a quoted string\””, u“\tHello”, u“\u2222\u0065”, u“C:\\WINNT\\win.ini”, and so forth. This format supports the same escape sequences or Unicode characters described for the Character type.

Date The Date variable contains date information.

java.util.Date • D[12/13/03]

• D[Dec 13, 2003]

• D[January 20, 2003]

• D[Tuesday, April 12, 2003]

• D[12/13/03]

• D[12/13/03 5:50 PM]

• D[April 1, 2003 12:00:00 AM PST]

The parameter specified in between D[] is parsed based on any combination of the following two formats:

• “<date>”

• “<date> <time>”

The Cisco Unity Express Script Editor supports four <date> specification formats:

• SHORT is completely numeric, such as “12/13/03”

• MEDIUM is somewhat longer, such as “Jan 12, 2003”

• LONG is longer, such as “January 12, 2003”

• FULL is completely specified, such as “Tuesday, April 12, 2003”

Table 9 Variable Types (continued)

Variable Name Description Java Class Name Variable Input Format

15Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 22: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using the Cisco Unity Express Script Editor Window

Exporting Variables Using Parameters

You can declare variables as parameters by checking the Parameter check box in the Edit Variables dialog box.

This feature allows you to set the value for a parameter in the auto attendant web interface. Because the value is initialized at configuration time for the script that uses it, you can change the value without having to edit the script in the Cisco Unity Express Script Editor. Such a variable is called an exported variable.

For example, when you add a new automated attendant using the AA Wizard, the second window of the AA wizard (the Script Parameters window) provides a list of the parameters with their default or current values. You can modify the values in this list.

Time The Time variable contains time information.

java.sql.Time • T[3:39 AM]

• T[11:59:58 PM EST]

The parameter specified inside brackets of T[] is parsed based on the format “<time>”.

The Cisco Unity Express Script Editor supports three <time> specification formats:

• SHORT is short, such as “3:30 PM”

• MEDIUM is longer, such as “3:30:32 PM”

• LONG and FULL (which are identical) are more complete, such as “3:30:42 PM PST”

BigDecimal The BigDecimal variable consists of an arbitrary-precision integer along with a scale, where the scale is the number of digits to the right of the decimal point.

java.math.BigDecimal • 3.14159

• 2E-12

• -100

BigInteger The BigInteger variable represents arbitrary-precision integers.

java.lang.BigInteger • 234556789

• 0

• -23

Double The Double variable represents an expanded Float variable.

java.lang.Double • 3.14159

• 2E-12

• -100

Long The Long variable is an expanded Integer variable.

java.lang.Long • 234556789

• 0

• -23

Table 9 Variable Types (continued)

Variable Name Description Java Class Name Variable Input Format

16Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 23: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using the Cisco Unity Express Script Editor Window

The variable types that Cisco Unity Express supports for parameters include Number, Character, String, Boolean, and Prompt.

Using Advanced Built-in Variable Types

The Cisco Unity Express Script Editor includes the following advanced built-in variable types:

Contact Variable

Java Class Name: com.cisco.contact.Contact

A Contact variable consists of a contact representing a telephone call.

You can pass a Contact variable as a parameter to a subflow.

Prompt Variable

Java Class Name: com.cisco.prompt.Playable

A Prompt variable contains the information that the script uses to create the prompt or prompts that it plays back to callers. A Prompt variable can be as simple as a single prompt or as complex as a concatenation of multiple prompts.

You can use the following input formats to define Prompt variables:

• P[] or SP[]—Represents an empty prompt. (No prompt gets played back.)

• P[AA\AAWelcome], P[AA\AAWelcome.wav], P[prompt2], and so forth— Represents user-defined prompts located in the User Prompts directory. (The User Prompt directory contains the .wav files on your PC or server.)

• SP[dialtone], SP[gen\char\e.wav], and so forth—Represents system-defined prompts located in the System Prompts directory.

• DP[250], DP[500], and so forth—Represents a delay prompt of the specified number of milliseconds.

• S[Cisco], and so forth—Represents a prompt in which the specified text will be spelled out according to the rules of the current language of the contact in which the prompt will be played back.

• N[22.33], N[-2E-23], N[-1], and so forth—Represents a prompt that will be the spoken representation of the specified number; for example, “twenty-two point three three”, according to the rules of the current language of the contact in which the prompt is played back.

• #[1], #[22], and so forth—Represents a prompt that will be the spoken representation of the specified ordinal number; for example, “first”, “twenty-second”, according to the rules of the current language of the contact in which the prompt will be played back.

• $[12], $[32.50]—Represents a prompt that the script will play back as the specified amount in the system-configured currency in a colloquial format; for example, “twelve dollars”, “thirty-two francs and fifty centime”, according to the rules of the current language of the contact in which the prompt will be played back.

As in the other advanced variables, the expression input format for the prompt variable is the same as the variable input format:

• The parameter specified inside the brackets of S[] can also be the result of any string expression; for example S[lastName + firstName].

• The parameter specified inside the brackets of DP[], N[], #[], and $[] can also be the result of any number expression; for example, DP[delay], N[counter + 3], #[position], $[amount + 10.00].

17Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 24: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using Prompts

When you use operators with the Expression Editor, if at least one of the operands is a Prompt, then the result will be a Prompt concatenation of the two operands, where the other one is converted to a Prompt according to the following rules:

• The system converts a String of Character operand to a Prompt using the Spelling Generator (similar to the S[ ] format) or the Character Generator. (See “Spelling Generator” on page 135 and “Number Generator” on page 135 for information about the generator types.)

• The system converts a Number operand to a Prompt using the Number Generator (similar to the N[ ] format). (See “Number Generator” on page 135 for information about the generator type.)

• The system converts a Time operand to a Prompt using the Time Generator (see “Time Generator” on page 136).

• The system converts a Date operand to a Prompt using the Date Generator (see “Date Generator” on page 136).

User Variable

Java Class Name: com.cisco.user.User

A User variable contains information that is useful for user authentication.

You cannot manually enter a User variable as a value. User variables can be returned only from the Name To User step of the Media palette.

You can pass a User variable as a parameter to a subflow.

Using the Debug PaneUse the Debug pane to validate your script.

The Validation Error messages appear in this pane when a script is validated. Double-clicking the error message takes you to the script step for which the validation failed.

Using PromptsThe Cisco Unity Express Script Editor uses the following two types of prompts:

• System prompts—Used internally by Cisco modules and Cisco sample scripts.

Note System prompts are used internally by the system. We make no guarantees about the continued availability of any system prompt in future releases.

• User prompts—Defined by the user, and manageable by the administrator by means of the Voice Mail > Prompts web page of the Cisco Unity Express GUI administrator interface or by calling in to the Greeting Management System.

18Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 25: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using Expressions

All Media and Prompt steps support prompts specified in the following ways:

• String expression—User-defined prompts located in the User Prompts directory.

• Prompt expression—Dynamically created at run time.

Note You must define all prompts played back and recorded with a RIFF header of type WAVE and G711 u-law format.

The script retrieves both user and system prompts from the Prompt Repository. You can manage these prompts from the Voice Mail > Prompts web page of the Cisco Unity Express GUI administrator interface or by calling in to the Greeting Management System. (For more information on managing the prompts, refer to the Cisco Unity Express GUI and CLI administration documents for your system that can be found at http://www.cisco.com/univercd/cc/td/doc/product/voice/unityexp/index.htm.)

Using ExpressionsExpressions are useful if you do not know the exact value at design time and instead enter a formula that can be evaluated at run time. The resulting type of the expression must match the expected input type or types (which you check at design time).

Many steps include an Expression Editor (...) button in the customizer window, which you can use to enter an expression. (See Figure 8.)

Figure 8 Expression Editor Button in a Customizer Window Example

You can type an expression directly in the input text field, or click the Expression Editor (...) button to open the Expression Editor. (See Figure 9.)

19Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 26: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using Expressions

Figure 9 Expression Editor

You can enter the expression in the text field, or you can use the Variable drop-down menu to get quick access to variables you have previously defined in the script. When you choose a variable from the Variable drop-down menu, the variable name appears in the input text field.

After you enter the expression, click OK. The Expression Editor closes.

Using Expression Input FormatsThe following table describes the expression input formats for variable types.

Table 10 Expression Values

Expression Type Description Expression Input Format

Boolean A Boolean expression is either true or false. • true

• false

Character A Character expression consists of alphanumeric characters.

• Lowercase letters a to z

• Uppercase letters A to Z

• Digits 0 to 9

• Any escape sequence: “\t”, “\r”, “\0”, “\n”, “\f”, “\\”, “\”

• “\uXXXX” can be used to represent any character using the character hexadecimal Unicode number XXXX

20Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 27: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using Expressions

Float A Float expression consists of decimal numbers.

The script keeps all Float values in Double representation and typecasts down only when it assigns the value to a Float variable. This feature prevents any loss in precision by how Java stores Float values.

If the script cannot hold the value by a Float, the script automatically stores the value as a BigDecimal and typecasts it to a Float when it assigns the value to a variable, with some loss in precision.

• 3.14159

• 2E-12

• -100

Integer An Integer expression consists of whole numbers, from -2147483648 to 2147483647, inclusive.

The script first parses the value as an Integer. If this attempt is unsuccessful, the script parses the value as a Long. If this attempt fails, the script parses the value as a BigInteger. The script may typecast the value to an Integer when the value is assigned to a variable. If the script cannot represent the value as an Integer, the result may be unknown.

• 234556789

• 0

• -23

String A Stringexpression consists of a set of Unicode characters, from “\u0000” to “\uffff” inclusive.

• “Hello”, “C:\WINNT\win.ini”—This format does not support any escape characters or Unicode characters.

• u“\”This is a quoted string\””, u“\tHello”, u“\u2222\u0065”, u“C:\\WINNT\\win.ini”, and so forth. This format supports the same escape sequences or Unicode characters described for the Character expression type.

Table 10 Expression Values (continued)

Expression Type Description Expression Input Format

21Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 28: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using Expressions

Date The Date expression contains date information.

The parameter specified in between D[] is parsed based on any combination of the following two formats:

• “<date>”

• “<date> <time>”

The Cisco Unity Express Script Editor supports four <date> specification formats:

• SHORT is completely numeric, such as “12/13/03”

• MEDIUM is somewhat longer, such as “Jan 12, 2003”

• LONG is longer, such as “January 12, 2003”

• FULL is completely specified, such as “Tuesday, April 12, 2003”

• D[12/13/03]

• D[Dec 13, 2003]

• D[January 20, 2003]

• D[Tuesday, April 12, 2003]

• D[12/13/03]

• D[12/13/03 5:50 PM]

• D[April 1, 2003 12:00:00 AM PST]

Time The Time expression contains time information.

The parameter specified inside brackets of T[] is parsed based on the format “<time>”.

The Cisco Unity Express Script Editor supports three <time> specification formats:

• SHORT is short, such as “3:30 PM”

• MEDIUM is longer, such as “3:30:32 PM”

• LONG and FULL (which are identical) are more complete, such as “3:30:42 PM PST”

• T[3:39 AM]

• T[11:59:58 PM EST]

BigDecimal The BigDecimal expression consists of an arbitrary-precision integer along with a scale, where the scale is the number of digits to the right of the decimal point.

• 3.14159

• 2E-12

• -100

BigInteger The BigInteger expression represents arbitrary-precision integers.

• 234556789

• 0

• -23

Table 10 Expression Values (continued)

Expression Type Description Expression Input Format

22Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 29: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Using Expressions

Using Operators with the Expression EditorThe Cisco Unity Express Script Editor accepts the following operators, which are listed in order of execution priority:

1. Parentheses (...)—Works with any expression; allows you to give priority to the expression contained in the parentheses.

2. Multiplication (*), Division (/)—Works with any number expression (integer, long, float, decimal, BigInteger, BigDecimal)

Number operands are properly promoted to a valid type before testing.

3. Addition (+), Subtraction (-)—Works with any number expression (integer, long, float, decimal, BigInteger, BigDecimal)

Number operands are properly promoted to a valid type before testing.

4. Less Than (<), Greater Than (>), Less Than or Equal (<=), Greater Than or Equal (>=)

Comparison operands work only on String, Character, and Number operands.

5. Equal to (==), Not Equal to (!=)

Testing for the <null> constant is supported by the two equality operators.

6. And (&&)— Works only with Boolean expressions.

7. Or (||)—Works only with Boolean expressions.

8. Concatenation (+)

If at least one of the operands is a String, and the other one is not a prompt, then the other one is converted to a String using the String.value( ) method and the result is a new String corresponding to the concatenation of the String representation of both operands. Typically the String.valueOf() method simply calls the toString() method of the object being concatenated or returns the string “null” if the object is null.

If the operands are Characters, then they are concatenated together, resulting in a new String.

Double The Double expression represents an expanded Float variable.

If the script cannot hold the value by a Double, the script automatically stores it as a BigDecimal and typecasts it down to a Double when the script assigns a value to a variable, with some loss in precision.

• 3.14159

• 2E-12

• -100

Long The Long expression is an expanded Integer variable.

The script first parses the value as a Long and if it fails, the script parses the value as a BigInteger. The script may typecast the value to a Long when the script assigns the value to a variable. If the script cannot represent the value as a Long, the result may be unknown.

• 234556789

• 0

• -23

Table 10 Expression Values (continued)

Expression Type Description Expression Input Format

23Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 30: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Configuring Error Handling

Configuring Error HandlingThe Cisco Unity Express Script Editor allows you to create scripts with a variety of ways to handle errors.

Configuring Basic Error Handling

Continue on Prompt Errors

The Continue on Prompt Errors option allows the script to continue to execute when the script receives invalid input (for example, Invalid Audio Format or File Not Found).

The Cisco Unity Express Script Editor provides the Continue on Prompt Errors option in the customizer windows of steps in the Media palette. (See “Media Steps” on page 95.) For example, Figure 10 shows the Prompt tab of the Get Digit String customizer window.

Figure 10 Continue on Prompt Errors Option—Prompt Tab of the Get Digit String Customizer

Window

When enabled, the step continues with the next prompt in the list of prompts to be played back, or, if it is the last step in the list, it waits for caller input.

When you enable Continue on Prompt Errors, you instruct the script to ignore prompt errors and continue as if the playback of a particular prompt was successful. For example, in a sequence of prompts “1 + 2 + 3”, if prompt #1 fails, the step will continue with prompt #2. If prompt #3 fails, the step will continue, waiting for caller input as if prompt #3 had been properly played back.

When you disable Continue on Prompt Errors, the media steps generate an exception, which can then be handled in the script.

24Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 31: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Configuring Error Handling

Available prompt exceptions are:

• PromptException

• UndefinedPromptGenerator

• UndefinedPromptException

• InvalidPromptArgumentException

• UnsupportedPromptExpression

Error Output Branches

Error output branches contain logic that provides instructions on what to do when typical errors occur.

Figure 11 shows error output branches under a Call Redirect step in a script.

Figure 11 Error Output Branches—Call Redirect Step

In this figure, the Call Redirect step includes logic for both an invalid extension and an out-of-service extension.

Note The script provides error branches only for expected error conditions, not for system errors.

Configuring Advanced Error Handling

Using the On Exception Goto Step

The On Exception Goto step of the General palette (see “On Exception Goto” on page 79) sends the execution to a specified place in the script when an exception is generated.

By using the On Exception Goto step for a specific exception in a script, you can register a new handler for a specific exception or override a previously existing one.

The registration process affects the complete script. The assigned handler activates the script no matter where the exception occurs (before, during, or after the given step). After the step executes, the handler is registered until either a new one is re-registered or the exception is cleared with the On Exception Clear step of the General palette.

If an exception results in a subflow, the script first consults the exception handlers of the subflows. If none are defined for the given exception, the exception aborts the subflow and the Cisco Unity Express application looks for exception handlers in the parent script. This process continues until the script finds an exception handler or the top level of the script is reached.

25Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 32: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Configuring Script Interruption

If no exception handlers are registered, the script aborts and error handling falls back to the last level of error handling, which is the default script.

Using Default Scripts

The default script is the last level of user-defined error handling before the Cisco Unity Express Script Editor applies a default system treatment to all active contacts.

The Cisco Unity Express Script Editor invokes this default script under the following conditions:

• The main script aborts, which happens for either of the following reasons:

– An uncaught exception occurs.

– The Cisco Unity Express application software is unable to invoke the primary script because it has not been properly validated.

• An incoming call must be aborted because the Cisco Unity Express application software has reached its limit for the number of simultaneous sessions for the application.

In each of these scenarios, the Cisco Unity Express Script Editor marks all active contacts as aborting before the default script is executed. The final state of these contacts is ABORTED even if they are transferred or redirected as a result of the execution of the default script.

Note Remember that the purpose of the default script is to gracefully terminate the call when the main script fails, not to have a fall back to provide the original services intended by the primary script. This distinction is important because using system resources to execute this default script may impair system performance. If the primary script fails too often, fix the primary script rather than provide another script to attempt the same task.

The default script does not execute if the primary script ends normally. If contacts are still active when the primary script ends, all active contacts not marked as handled will abort, and all active contacts marked as handled are simply terminated. In this case, check the primary script for any design problems.

Note Remember that the default script provides only a final feedback to the contact regarding the system problem and does not continue the service or restart the service.

The system applies the CallContact script if the contact is still active after the system executes the default script (if any). The CallContact script plays back the prompt, “We are currently experiencing system problems, please call back later” as an announcement, followed by a fast busy signal.

Configuring Script InterruptionScript interruption is a feature that allows external events to interrupt the current processing of a script in order to return to another part of the script or stop the execution of the script.

Script interruption is typically used when the script needs to be notified that one of its contacts has been remotely terminated, such as when the caller hangs up.

Note In every case, any event that triggers the need to interrupt the script can occur at any time while the script executes other steps.

26Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 33: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Configuring Script Interruption

By default, scripts are automatically interruptible before any step is executed. Should any external event (such as that described above) interrupt the script, the script will continue processing based on the proper handling for the specific event before it begins to execute the next step.

If you want two consecutive steps to execute without the possibility of interruption, you must move these two steps to a subflow where you can disable interruptions completely while the script processes that subflow.

Cisco Unity Express Script Editor has an “interruptible” option for some steps that allows you to indicate whether or not the script can interrupt the step from within when an external event occurs.

When a contact terminates remotely, the script performs one of the following actions:

• When a caller hangs up, the script will be interrupted (if possible) and a ContactInactiveException will be generated. This exception can then be caught with the OnExceptionGoto step of the General palette and properly handled.

• If a caller hangs up and no exception handling logic is available, the script immediately aborts.

• When managing multiple contacts, the OnExceptionGoto step cannot differentiate which contact was remotely terminated. Instead, it must specify a Label to which it can loop through all known contact variables and use the Get Contact Info step of the General palette to search for an Active flag.

If an interrupting event happens when the script is not currently interruptible, the script is automatically interrupted whenever it becomes interruptible again. For example, although a script is not interruptible when it is running a subflow marked to disable interruptions, it will process the interruption as soon as the subflow terminates and control is returned to the parent (if that primary script is interruptible)

27Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 34: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Overview of Cisco Unity Express Script Editor Configuring Script Interruption

28Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 35: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Constructing a Simple Script

This chapter describes simple techniques you can use when designing custom auto attendant scripts with the Cisco Unity Express Script Editor. Sample scripts are included to illustrate the techniques. Each script contains the following activities or steps:

• Start the script.

• Accept a call.

• Execute one or more subprocesses. Subprocesss can be nested within other subprocesses.

• End the script.

Note The sample scripts in this chapter illustrate how to configure scripts for certain components of a complete auto attendant application. Use these scripts in conjunction with other scripts to configure fully your auto attendant application.

This chapter includes the following sections:

• Creating an Alternate Greeting Script, page 29

• Creating an Office Hours Menu Script, page 30

• Creating an Office Directory Script, page 37

Creating an Alternate Greeting ScriptUse these procedures to create a script that checks the system for an Emergency Alternate Greeting and plays one if it exists. The caller does not have to perform any actions that initiate this script. The system administrator creates an alternate greeting file, which is played when a caller reaches the auto attendant.

Use the following script files to create this script:

• S5_Main-EmergAltGrt.aef: A user-defined script file. Be sure to use this name when referring to the entire script.

• checkAltGreet.aef: system script file that searches for an alternate greeting script file.

Use the following prompt files:

• S5_MainMenu.wav: A user-defined prompt file that contains an alternate main menu message that t you created prior to defining the S5_Main-EmergAltGrt.aef script. This main menu should include the alternate greeting option.

29Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 36: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Constructing a Simple Script Creating an Office Hours Menu Script

• AltGreeting.wav: system prompt file that contains the alternate greeting message that comes with the Cisco Unity Express system.

Create the ScriptsCreate the S5_Main-EmergAltGrt.aef script using the following steps, variables, and prompts. You must create the prompt .wav file before initiating this script.

Start/* S5_Main-EmergAltGrt.aef */Accept (contact: --Triggering Contact--)Call Subflow -- checkAltGreet.aef/* Main menu - replace this ... */Main Menu:Play Prompt (contact: --Triggering Contact--, prompt: S5_MainMenu)Terminate (contact: --Triggering Contact--)End

This script performs the following steps:

1. Starts the script.

2. Accepts an incoming call.

3. Checks if an alternate greeting file is recorded and installed in the Cisco Unity Express system.

4. Begins a subprocess to play the main menu for the caller. The Play Prompt step retrieves and plays the alternate main menu script (S5_MainMenu). Then the subprocess ends.

5. Ends the script.

Define VariablesVariables for this script are shown in the table below.

Create the Prompt Files

Creating an Office Hours Menu ScriptThis office hours menu script provides call handling for calls that arrive after office hours. If a call arrives after hours, the office hours of the company are announced and, for the purposes of this simple example, the caller is requested to call back later.

Name Type Value

S5_MainMenu com.cisco.prompt.Playable S5_MainMenu.wav

Prompt Filename Audio Content

S5_MainMenu.wav Thank you for calling Widget Systems. Please insert your main menu here. Goodbye.

30Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 37: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Constructing a Simple Script Creating an Office Hours Menu Script

The office hours menu script includes the following auto attendant functions:

• Office hours decisions (Day of Week and Time of Day branching)

• Dial by Extension

• Transfer a call to the receptionist

• Build a loop that repeats 3 times and then terminates in an error condition (S1_DialbyExtension.aef script)

The Dial-by-Extension and Transfer functions are isolated in individual scripts called by the main script, so that those elements can be reused in other scripts.

Create the Script FilesYou must create the following script files:

• Main Script: S1_Main-OfficeHours.aef

• Dial by Extension Subflow: S1_DialbyExtension.aef

• Transfer to the Receptionist Subflow: S1_XfertoOper.aef

Create the Prompt FilesThe following prompt files are used by the scripts:

• S1_AfterHours

• S1_EnterExt

• S1_ExtBusy

• S1_Goodbye

• S1_InvalidExt

• S1_MainMenu

• S1_OperBusy

• S1_OperXfer

• S1_SystemProblems

31Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 38: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Constructing a Simple Script Creating an Office Hours Menu Script

Main Script: S1_Main-OfficeHours.aef

Script Content

Start/* S1_Main-OfficeHours.aef *//* Basic Day-Of-Week and ... */Accept (contact: --Triggering/* Office Hours check */Day of Week

WeekdaysTime of Day

Work hoursGoto Main Menu

After hoursGoto After-hours

WeekendGoto After-hours

/* Main menu: Press 1 if ... */Main Menu:Menu (contact: --Triggering Contact--, prompt: S1_MainMenu)

Dial by NumberCall Subflow -- S1_DialbyExtension.aefEnd

OperatorCall Subflow -- S1_XfertoOper.aefEnd

TimeoutPlay Prompt (contact: --Triggering Contact--, prompt: S1_SystemProblems)Terminate (contact: --Triggering Contact--)End

UnsuccessfulPlay Prompt (contact: --Triggering Contact--, prompt: S1_SystemProblems)Terminate (contact: --Triggering Contact--)End

/* Present after hours msg ... */After-hours:Play Prompt (contact: --Triggering Contact--, prompt: S1_AfterHours)Terminate (contact: --Triggering Contact--)End

Variables

Name Type Value

S1_MainMenu com.cisco.prompt.Playable S1_MainMenu.wav

S1_SystemProblems com.cisco.prompt.Playable S1_SystemProblems.wav

S1_AfterHours com.cisco.prompt.Playable S1_AfterHours.wav

MainOperExt java.lang.String 0

32Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 39: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Constructing a Simple Script Creating an Office Hours Menu Script

Prompt Content

Prompt Filename Audio Content

S1_MainMenu.wav Thank you for calling Widget Systems. Please press 1 if you know the extension of the person you wish to reach, or press 2 to speak to our receptionist.

S1_SystemProblems.wav We’re sorry, the system seems to be experiencing some problems right now. Please call back again at a later time.

S1_AfterHours.wav Our office hours are from 8:30 am to 5 pm Monday to Friday. Please call back during that time.

33Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 40: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Constructing a Simple Script Creating an Office Hours Menu Script

Dial by Extension Subflow: S1_DialbyExtension.aef

Script Content

Start/* S1_DialbyExtension.aef */ tryagain: Get Digit String(contact: --Triggering Contact--, result digit string: extension)

SuccessfulCreate Generated Prompt( telephone.number type, store in spelledprompt )Implicit Confirmation (contact: --Triggering Contact--)

NoGoto tryagain

YesCall Redirect (contact: --Triggering Contact--, extension: extension)

SuccessfulEnd

BusyPlay Prompt (contact: --Triggering Contact--, prompt: S1_ExtBusy)Terminate (contact: --Triggering Contact--)End

InvalidPlay Prompt (contact: --Triggering Contact--, prompt:

S1_InvalidExt)Decrement againIf ( again == 0 ) Then

TruePlay Prompt (contact: --Triggering Contact--, prompt:

S1_SystemProblems)Terminate (contact: --Triggering Contact--)End

FalseGoto tryagain

UnsuccessfulPlay Prompt (contact: --Triggering Contact--, prompt:

S1_InvalidExt)Play Prompt (contact: --Triggering Contact--, prompt: S1_Goodbye)Terminate (contact: --Triggering Contact--)End

TimeoutPlay Prompt (contact: --Triggering Contact--, prompt: S1_SystemProblems)Terminate (contact: --Triggering Contact--)End

UnsuccessfulPlay Prompt (contact: --Triggering Contact--, prompt: S1_SystemProblems)Terminate (contact: --Triggering Contact--)End

Variables

Name Type Value

extension java.lang.String

again java.lang.Integer 3

spelledprompt com.cisco.prompt.Playable ..

S1_ExtBusy com.cisco.prompt.Playable S1_ExtBusy.wav

S1_InvalidExt com.cisco.prompt.Playable S1_InvalidExt.wav

34Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 41: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Constructing a Simple Script Creating an Office Hours Menu Script

Prompts

S1_SystemProblems com.cisco.prompt.Playable S1_SystemProblems.wav

S1_Goodbye com.cisco.prompt.Playable S1_Goodbye.wav

S1_EnterExt com.cisco.prompt.Playable S1_EnterExt.wav

Prompt Filename Audio Content

S1_EnterExt.wav S1_EnterExt.wav

S1_ExtBusy.wav Sorry, this extension is busy right now. Please call back again at a later time.

S1_InvalidExt.wav You have entered an invalid extension.

S1_Goodbye.wav Goodbye.

Name Type Value

35Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 42: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Constructing a Simple Script Creating an Office Hours Menu Script

Transfer to the Receptionist Subflow: S1_XfertoOper.aef

Script Content

Start/* S1_XfertoOper.aef */Play Prompt (contact: --Triggering Contact--, prompt: S1_OperXfer)Call Redirect (contact: --Triggering Contact--, extension: OperExt)

SuccessfulEnd

BusySet condition = true

InvalidPlay Prompt (contact: --Triggering Contact--, prompt: S1_SystemProblems)Terminate (contact: --Triggering Contact--)End

UnsuccessfulSet condition = false

Create Conditional Prompt (store in OperNotAvail)Play Prompt (contact: --Triggering Contact--, prompt: OperNotAvail)Terminate (contact: --Triggering Contact--)End

Variables

Prompts

Name Type Value

S1_OperXfer com.cisco.prompt.Playable S1_OperXfer.wav

OperExt java.lang.String 0

S1_SystemProblems com.cisco.prompt.Playable S1_SystemProblems.wav

OperNotAvail com.cisco.prompt.Playable ..

condition java.lang.Boolean true

S1_OperBusy com.cisco.prompt.Playable S1_OperBusy.wav

Prompt Filename Audio Content

S1_OperXfer.wav Transferring to the receptionist.

S1_OperBusy.wav The receptionist is busy on another call right now. Please call back again at a later time.

S1_SystemProblems.wav We�re sorry, the system seems to be experiencing some problems right now. Please call back again at a later time.

36Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 43: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Constructing a Simple Script Creating an Office Directory Script

Creating an Office Directory ScriptThis script presents a menu of employee names, the location of the office, directions to the office, and fax contact information.

Create the Script FileYou must create the S2_Main-Office-Dir.aef script file:

Start/* S2_Main-Office-Dir.aef *//* Basic Office Directory ... */Accept (contact: --Triggering Contact--)MainMenu:Menu (contact: --Triggering Contact--, prompt: S2_MainMenu)

Office DirectoryMenu (contact: --Triggering Contact--, prompt: S2_OfficeDir)

JohnCall Redirect (contact: --Triggering Contact--, extension: John)

SuccessfulEnd

BusyEnd

InvalidGoto Error

UnsuccessfulGoto Error

MaryCall Redirect (contact: --Triggering Contact--, extension: Mary)

SuccessfulEnd

BusyEnd

InvalidGoto Error

UnsuccessfulGoto Error

JanetCall Redirect (contact: --Triggering Contact--, extension: Janet)

SuccessfulEnd

BusyEnd

InvalidGoto Error

UnsuccessfulGoto Error

BruceCall Redirect (contact: --Triggering Contact--, extension: Bruce)

SuccessfulEnd

BusyEnd

InvalidGoto Error

UnsuccessfulGoto Error

CandiceCall Redirect (contact: --Triggering Contact--, extension: Candice)

Successful

37Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 44: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Constructing a Simple Script Creating an Office Directory Script

EndBusy

EndInvalid

Goto ErrorUnsuccessful

Goto ErrorMike

Call Redirect (contact: --Triggering Contact--, extension: Mike)Successful

EndBusy

EndInvalid

Goto ErrorUnsuccessful

Goto ErrorAnyone else

Call Redirect (contact: --Triggering Contact--, extension: Janet)Successful

EndBusy

EndInvalid

Goto ErrorUnsuccessful

Goto ErrorTimeout

Goto OfficeDirUnsuccessful

Goto ErrorLocation info

Play Prompt (contact: --Triggering Contact--, prompt: S2_LocationInfo)Terminate (contact: --Triggering Contact--)End

Fax Number InfoPlay Prompt (contact: --Triggering Contact--, prompt: S2_FaxInfo)Terminate (contact: --Triggering Contact--)End

TimeoutGoto MainMenu

UnsuccessfulGoto Error

Error:Play Prompt (contact: --Triggering Contact--, prompt: S2_SystemProblems)Terminate (contact: --Triggering Contact--)End

Define Variables

Name Type Value

S2_MainMenu com.cisco.prompt.Playable S2_MainMenu.wav

S2_SystemProblems com.cisco.prompt.Playable S2_SystemProblems.wav

S2_OfficeDir com.cisco.prompt.Playable S2_OfficeDir

S2_LocationInfo com.cisco.prompt.Playable S2_LocationInfo

S2_FaxInfo com.cisco.prompt.Playable S2_FaxInfo

38Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 45: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Constructing a Simple Script Creating an Office Directory Script

Create the Prompt Files

John java.lang.String 6005

Mary java.lang.String 6015

Janet java.lang.String 6008

Bruce java.lang.String 6020

Candice java.lang.String 6007

Mike java.lang.String 6012

Prompt File Name Audio Content

S2_MainMenu.wav Thank you for calling the Widget charity office. Please press 1 if you wish to speak to one of our associates, press 2 for the hours and location of our office, or press 3 to contact us by fax.

S2_OfficeDir.wav Please press 1 for John, 2 for Mary, 3 for Janet, 4 for Bruce, 5 for Candice, 6 for Mike and 7 if you have not heard the name of the associate you want to speak to.

S2_LocationInfo.wav Our office is open Mondays and Wednesdays from 10am until 3pm. We are located at the north-west corner of Custer Road and Legacy Avenue. The address is 2059 Custer Road, Wichita, Alaska. Thanks for calling, goodbye.

S2_FaxInfo.wav You can reach us at one of the following fax numbers: 800.555.2001, 800.555.1445 or 956.555.2323. Thanks for calling, goodbye.

S2_SystemProblems.wav We're sorry, the system seems to be experiencing some problems right now. Please call back again at a later time.

Name Type Value

39Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 46: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Constructing a Simple Script Creating an Office Directory Script

40Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 47: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script

This chapter describes how to configure an auto attendant (AA) script. It uses the sample script aa_sample1.aef, which is included with the Cisco Unity Express Script Editor, to illustrate basic procedures for configuringauto attendant scripts.

This document contains the following sections:

• Overview, page 41

• System Prompts Used in the AA Script, page 43

• Configuring the Script, page 44

– Configure the Main Menu Step, page 47

– Configure the Play Prompt Step, page 66

– Configure the Call Redirect Step, page 67

– Configure the If Step, page 67

– Configure the Play Prompt Step, page 67

– Insert the End Step, page 67

OverviewYou can use the Cisco Unity Express Script Editor to create custom scripts for the auto attendant.

The aa_sample1.aef file is a script that answers a call, asks for the name or extension of the person to whom the caller would like to be connected, and transfers the call.

Note You can modify the aa_sample1.aef file to create your own AA script. Make a backup copy of the aa_sample1.aef file before modifying it, so that you always have access to the original file.

Figure 12 shows the aa_sample1.aef script as it appears in the Design pane of the Cisco Unity Express Script Editor window.

41Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 48: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Overview

Figure 12 aa_sample1.aef Script

The aa_sample1.aef script performs the following tasks:

1. The Accept step accepts the call.

2. The next three Set steps initialize, or clear, several variables: the main menu to play for the caller, the extension that will receive the call, and the name of the called person.

3. The Call Subflow step looks for an alternate emergency prompt and plays the prompt if required.

4. The Play Prompt step plays a welcome prompt, asking the caller to perform one of three actions:

• Press “1” to enter an extension number.

• Press “2” to enter the name of a person.

If the caller chooses to spell a name, the script maps the letters entered against the available users defined in a specified directory and transfers the call to the primary extension of the user.

If more than one match occurs, the script prompts the caller to choose the correct extension. If too many matches occur, the script prompts the caller to enter more characters. If no match occurs, the script prompts the caller to enter another name.

• Press “0” to speak to an operator.

Note This Welcome prompt is a parameter, which means that the administrator can configure this prompt when provisioning an application with this script. (For more information on provisioning applications, refer to the Cisco Unity Express CLI Administrator Guide or the Cisco Unity Express GUI Administrator Guide for your system. See the list of administrator guides at http://www.cisco.com/univercd/cc/td/doc/product/voice/unityexp/index.html.)

5. The Main Menu step is the beginning of a process that checks the caller’s extension choice.

6. The Set prefixPrompt step initializes the beginning section of the prompt that the caller hears.

42Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 49: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script System Prompts Used in the AA Script

7. The Menu step contains a subprocess that checks the extension’s status.

8. The Play Prompt step plays a message to the caller regarding the status of the extension. If the script receives a valid extension, it transfers the call.

• If the destination is busy, the caller hears the system prompt, “The phone number you are trying to reach is currently busy.”

• If the destination is out of service, the caller hears the system prompt, “The phone number you are trying to reach is currently out of service.”

9. The Call Redirect step sends the caller to the operator if the extension is not available.

10. The If step determines if the caller has reached the maximum number of tries to connect to a valid extension.

11. The Play Prompt step plays a message if the maximum number of tries has been reached without reaching a valid extension.

System Prompts Used in the AA ScriptThe aa_sample1.aef script uses system prompts stored as .wav files, which are installed automatically with the Cisco Unity Express software. These audio prompts include the following:

• AAMainMenu.wav—Provides a menu of choices: press 1 to enter an extension, press 2 to enter the first few characters of a user name, or press 0 to speak to an operator.

• AASorry.wav—States that the transfer was not successful.

• AABusyExtn.wav—States that the dialed extension is busy.

• AAInvalidExtn.wav—States that the entered extension is not a valid choice.

• AAExntOutofService.wav—States that the entered extension is no longer in service.

• AAWelcome.wav—Greets the caller.

In the auto attendant application, you can configure the filename for the AAWelcome.wav prompt by selecting the Voice Mail > Auto Attendant menu option on the Cisco Unity Express GUI administration web interface. You can change the default welcome prompt to reference a custom prompt.

Note For custom scripts, you need to record your own prompts. You can either have them recorded professionally or you can use the Greeting Management System to record them in your own voice. For more information about the Greeting Management System, refer to the Cisco Unity Express GUI Administrator Guide or the Cisco Unity Express CLI Administrator Guide for your system. See the list of administrator guides at http://www.cisco.com/univercd/cc/td/doc/product/voice/unityexp/index.html.

43Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 50: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

Configuring the ScriptThis chapter describes the steps necessary to configure the sample auto attendant script. Perform the following tasks:

Configure the Auto Attendant Script VariablesUsing the Variable pane of the Cisco Unity Express Script Editor, define the script variables as shown in Figure 13.

Figure 13 Variables Pane of the aa_sample1.aef Script

Table 11 describes the variables used in the aa_sample1.aef script.

Table 11 Variables in the aa_sample1.aef Script

Variable NameVariable Type Value Function

welcomePrompt Prompt P[AA\Welcome.wav]

Greets the caller. See page 67. The designer defines this variable as a parameter so that the administrator can configure it when provisioning an application with this script.

extnXfer String — Stores the extension to which the caller is transferred. See page 50.

user User null Identifies the user that the caller chooses with the Name To User step. See page 57.

menuPrompt Prompt — This prompt presents the initial menu of options for calling by name or by extension. See page 45.

prefixPrompt Prompt — Informs the caller of the status of the call. This value is dependent on many steps. See page 50.

attempts Integer 1 Stores the number of times the script has attempted confirmation. See page 54.

extnPrompt Prompt — Prompts the caller to enter the extension number. See page 50.

namePrompt Prompt — Asks the caller to enter the name of the person the caller wants to reach. See page 47.

prompt Prompt — Used for a variety of purposes throughout the script, such as playing a recorded status message, asking the caller for input, playing a menu of options, and so on. See page 47.

44Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 51: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

Configure Steps in the Design PaneIn the Design pane, perform the following tasks:

Step 1 Insert the Start step. Every script built in the Design pane of the Cisco Unity Express Script Editor window begins with a Start step, which needs no configuration and has no customizer window.

Step 2 Insert the Accept step. This step accepts the default contact; no configuration is necessary for this step.

Step 3 Insert the Menu Prompt step. This step sets the value of menuPrompt to SP[AA/AAMainMenu], which is the system prompt for playing the main menu, as shown in Figure 14.

Figure 14 Set Customizer Window—Configured General Tab

Step 4 Insert the Extension Prompt step. This step sets the value of extnPrompt to SP[AA/AAEnterExtn], which is the system prompt that asks the caller to enter the extension number.

Step 5 Insert the Name Prompt step. This step sets the value of namePrompt to SP[AA/AANameDial], which is the system prompt that asks the caller to enter the name of the called person.

spokenName Document null Stores the audio document of the spoken name of the person the caller is trying to reach. See page 59.

name String — Stores the written name of the person the caller is trying to reach. See page 59.

MaxRetry Integer 3 Stores the maximum retries a caller can make in this script before the script terminates the call. See page 54.

This variable is a parameter so that the administrator can configure it when provisioning an application with this script.

operExtn String — Stores the Operator extension the Call Redirect step uses to transfer the call to the operator. See page 67.

This variable is a parameter so that the administrator can configure it when provisioning an application with this script.

Table 11 Variables in the aa_sample1.aef Script (continued)

Variable NameVariable Type Value Function

45Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 52: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

Step 6 Insert the Call Subflow step. The General tab of the Call Subflow step sets the subflow name to checkAltGreet.aef, as shown in Figure 15.

Figure 15 Call Subflow Customizer Window—Configured General Tab

The Subflow Name, checkAltGreet.aef , checks if an alternate greeting is enabled. If it is, then the subflow plays the alternate greeting and returns to the aa_sample1.aef script. Check Disable interruptions so that other script steps cannot interrupt the Call Subflow process.

Step 7 Insert the play prompt step. This step plays the Welcome prompt, as shown in Figure 16.

Figure 16 Play Prompt Customizer Window—Configured Prompt Tab

46Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 53: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

Configure the fields in the tabs of the Play Prompt customizer window as follows:

• General tab

– Contact—Triggering contact: The contact that triggered the script remains the contact for this step.

– Interruptible—No: No external events can interrupt the playback of the prompt.

• Prompt tab

– Prompt—welcomePrompt: This prompt plays back to greet the caller.

– Barge In—No: The caller must listen to the whole prompt before responding.

– Continue on Prompt Errors—Yes: If a prompt error occurs, the script continues to play the next prompt, or, if this is the last prompt in the sequence, the script waits for caller input.

• Input tab

– Flush Input Buffer— Yes: This step erases previous input.

Step 8 Insert the Label step. This step creates a target for the script. This target is used later in the script when an output branch reaches a timeout, unsuccessful, or otherwise dead-end position and the script returns the caller to the Label step to try again.The Label step is named MainMenu.

Configure the Main Menu Step

Perform the following tasks to configure the Main Menu Label step that you just created:

Step 1 Create the Container Prompt step. This step, as shown in Figure 17, creates an escalating prompt called prompt, which combines menuPrompt (the first prompt created in the scriptStep 3) with a new prompt called prefixPrompt. The prefixPrompt variable initializes with no value, but as the caller loops through the application and fails to be connected to a destination, this variable holds an error message to be played back to the caller. The prompt is an escalating prompt so that the error message plays only on the first attempt of the subsequent Menu step, which uses the prompt created by this step.

47Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 54: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

Figure 17 Create Container Prompt—Configured General Tab

Configure the fields in the tabs of the Create Container Prompt window as follows:

• Output Prompt—prompt: This prompt results from this Create Container Prompt step.

• Prompt Container Type—escalating: This step creates an escalating prompt.

• Prompts List Box

– prefixPrompt + menuPrompt

– menuPrompt

This specifies the prompt phrases that are played if the Media step uses more than one attempt at eliciting a valid response from the caller.

Step 2 Insert the Prefix Prompt Set step. This step sets the value of prefixPrompt to P[], which means it is empty. When callers are returned to the MainMenu Label step to listen to menu options again, this Set step clears prefixPrompt of values that the script may have previously assigned to it. Call Redirect steps often return callers to the MainMenu Label. See Figure 25 on page 55 for an example.

Step 3 Insert the Menu step. The Menu step receives either speech or digits in response to prompts, as shown in Figure 18. The script procedures configured under the Menu step transfer the call to the proper extension if the script receives valid input from the caller.

48Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 55: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

Figure 18 Menu Customizer Window—Configured General Tab

The Menu customizer window contains the following values:

• General tab

– Contact—Triggering Contact: The contact that triggered this script remains the contact for this step.

– Options—DialByExtn, DialByName, Operator: The list of options the menu offers to the caller. The tags map to the output points to determine the execution of branching output paths. DialByExtn is mapped to dial keypad 1. DialByName is mapped to dial keypad 2. Operator is mapped to dial keypad 0.

– Interruptible—Yes: External events can interrupt the execution of this step.

• Prompt tab

– Prompt—Prompt: The step plays this prompt back to the caller.

– Barge In—Yes: The caller can respond without first having to listen to the playback of the entire prompt.

– Continue on Prompt Errors—Yes: If a prompt error occurs, the script continues to play the next prompt, or, if this is the last prompt in the sequence, the script waits for caller input.

• Input tab

– Timeout (in sec)—5: After playing all prompts, the script waits 5 seconds for initial input from the caller before re-attempting with a timeout error, or, if this was the last attempt, the script executes the Timeout output branch.

– Maximum Retries—5: The script will retry to receive input 5 times before sending the script to the Unsuccessful output branch.

– Flush Input Buffer—No: The script saves previous input.

49Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 56: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

Configure the Menu Step Output Branches

The Menu step contains two built-in output branches: Timeout and Unsuccessful. The Timeout and Unsuccessful output branches need no scripting. If the script reaches either of these branches, it proceeds to the next step on the same level as the Menu step, the second Play Prompt step (see “Configure the Play Prompt Step” on page 66).

You must configure three output branches, as shown in Figure 19. These branches correspond to the three choices menuPrompt gives the caller: dial by extension, dial by name, or dial the operator.

Figure 19 Menu Step Output Branches

Perform the following tasks to configure the Menu step output branches:

Step 1 Configure the DialByExtn Output Branch. If the caller chooses menu option “1” (presses an extension number) when given the option by the Menu step, the script executes the DialByExtn output branch. The DialByExtn output branch of the Menu step receives the extension number provided by the caller, as shown in Figure 20

Figure 20 DialByExtn Scripting

The DialByExtn output branch contains the following steps:

• Label step (DialByExtn): Creates a target DialByExtn.

• Create Container Prompt step: Creates a concatenated container prompt, consisting of prefixPrompt (see page 47) and extnPrompt, a preset prompt that prompts the caller to enter the extension number (with a possible error message when looping back if there is an error connecting to the destination).

• Set step: Sets the value of prefixPrompt to P[], which clears prefixPrompt of any values that the script may have previously assigned.

• Get Digit String step: Receives the digits entered by the caller in response to prompt, stores them in a result digit string variable named extnXfer, and then attempts to transfer the call.

The Get Digit String has three output branches: Successful, Timeout, and Unsuccessful, as shown in Figure 21.

50Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 57: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

Figure 21 Get Digit String Output Branches

The following are the three output branches of the Get Digit String step:

• Timeout Output branch: If the Get Digit String step does not receive input before reaching the timeout limit, the script executes the Timeout output branch, and the script skips the rest of the output branches of the Menu step and proceeds to the second Play Prompt step (see page 66).

• Unsuccessful Output branch: If the Get Digit String step is unsuccessful in receiving valid input, the script executes the Unsuccessful output branch, and the script skips the rest of the output branches of the Menu step and proceeds to the second Play Prompt step (see page 66).

• Successful Output branch: If the Get Digit String step successfully receives caller input, the script executes the Successful output branch. The Successful output branch transfers the call, as shown in Figure 22.

Figure 22 Get Digit String—Successful Branch Scripting

Note See Figure 25 for the diagram of the Implicit Confirmation Yes branch steps.

Step 2 Configure the If step for the get digit string successful branch. The If step checks if the extension entered (extnXfer) is empty or not by evaluating the expression (extnXfer == “”). The If step has two output branches:

51Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 58: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

• True output branch: If the If step determines that the extension entered is empty, the script executes the True output branch. The True output branch increments the number of attempts by one and gives the caller another try. The True output branch of the If step contains three functional steps:

– Play Prompt Step: The Play Prompt step plays an empty prompt, P[], to flush the DTMF buffer of any digits that the script may have accumulated as part of the previous Get Digit String step.

Note The Play Prompt step has an empty prompt to enable the script to return immediately from this step after flushing out the buffer.

– Increment step: The Increment step increases the number of attempts until the maximum number of retries is reached.

– Goto step: The Goto step returns the caller to the beginning of the DialByExtn Label step at the beginning of the DialByExtn output branch in order to give the caller more attempts to input the proper extension.

• False output branch: If the If step determines that the caller has entered an extension, the script executes the False output branch. The False output branch of the If step proceeds to the next step (Create Generated Prompt step).

Step 3 Create Generated Prompt step for the get digit string successful branch. This step, as shown in Figure 23, creates a prompt to play back to the caller the digits received, in order to confirm the caller input before transferring the call.

52Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 59: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

Figure 23 Configured Create Generated Prompt Customizer Window

The Create Generated Prompt customizer window contains the following values:

• Output Prompt—prompt: Stores the value that results from this step.

• Generator Type— telephone.number: Generator type. (See page 138.)

• Constructor Type—number: Constructor type. (See page 135.)

• Argument Information list box—extnXfer: The extnXfer variable stores the results of the number constructor.

Step 4 Create Implicit Confirmation step for the Get Digit String Successful branch. This step confirms the extension entered without requiring more input from the caller, as shown in Figure 24.

53Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 60: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

Figure 24 Configured Implicit Confirmation Customizer Window

The Implicit Confirmation customizer window contains the following values:

• Contact—Triggering Contact: The contact that triggered the script remains the contact for this step.

• Prompt—SP[AA/AACallingExtn] + prompt: The system prompt and the generated prompt indicate the specified extension the script plays back to the caller.

• Timeout (in sec)— 2: The caller has 2 seconds to stop the transfer before the script accepts the confirmation and transfers the call.

• Interruptible—Yes: External events are allowed to interrupt the execution of this step.

• Continue on Prompt Errors—Yes: In the event of a prompt error, the script will play the next prompt in the sequence, or if this is the last prompt, will wait for caller input.

Configure the Implicit Confirmation Step

The Implicit Confirmation step has two output branches:

• No output branch: If the caller interrupts the Implicit Confirmation step and does not give confirmation, the script executes the No output branch. The No output branch of the Implicit Confirmation step uses an If step to try again, until the maximum number of retries is reached. The If step determines whether or not the maximum number of retries has been reached by evaluating the expression attempts < MaxRetry. The expression determines if the number of attempts, as stored in the Attempts variable, is less than the maximum number of retries, as stored in the MaxRetry variable.

54Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 61: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

The If step has two output branches:

– True output branch: If the If step determines that the maximum number of retries has not been reached, the script executes the True output branch. The True output branch increments the number of retries by one and gives the caller another try. The True output branch of the If step contains three functional steps:

1. Play Prompt step: The Play Prompt step plays an empty prompt, P[] to flush the DTMF buffer of any digits that the script may have accumulated as part of the previous Implicit Confirmation step.

Note The Play Prompt step has an empty prompt to enable the script to return immediately from this step after flushing out the buffer.

2. Increment step: The Increment step increases the number of attempts until the maximum number of retries is reached.

3. Goto step: The Goto step returns the caller to the beginning of the DialByExtn Label step at the beginning of the DialByExtn output branch in order to give the caller more attempts to input the proper extension.

– False output branch: If the If step determines that the maximum number or retries has been reached, the script executes the False output branch.The False output branch of the If step skips the rest of the steps under the Menu step and proceeds to the second Play Prompt step (see page 66).

• Yes output branch: If the Implicit Confirmation step successfully confirms the extension, the script executes the Yes output branch. The Yes output branch of the Implicit Confirmation step transfers the call.The Yes output branch contains the following steps:

– Call Redirect step for the Yes output branch: As in the other two main output branches of the Menu step (DialByName and Operator), the DialByExtn output branch contains the Call Redirect step, which attempts to transfer the call, in this case to the desired extension number. The Call Redirect step has four output branches, as shown in Figure 25:

Figure 25 Call Redirect Output Branch Scripting

55Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 62: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

1. Successful output branch for the call redirect step: If the Call Redirect step successfully transfers the call, the script executes the Successful output branch. The Successful output branch of the Call Redirect step marks the contact as Handled and ends the script. The Successful output branch of the Call Redirect step contains two steps. The Set Contact Info step marks the call as Handled. The End step ends this branch of the script.

2. Busy output branch for the Call Redirect step: If the Call Redirect step registers the destination extension as busy, the script executes the Busy output branch. The Busy output branch of the Call Redirect step sets the value of the prefixPrompt variable to inform the caller that the extension was busy. The Busy output branch of the Call Redirect step contains the Set step. The Set step, as shown in Figure 25, sets the value of prefixPrompt to contain a system prompt that plays back a message to the caller that the extension is busy.

3. Invalid output branch for the call redirect step: If the Call Redirect step registers the destination extension as invalid, the script executes the Invalid output branch. The Invalid output branch of the Call Redirect step sets the value of the prefixPrompt variable to inform the caller that the extension was invalid.The Invalid output branch of the Call Redirect step contains the Set step. The Set step, as shown in Figure 25, sets the value of prefixPrompt to contain a system prompt that plays back a message to the caller that the extension is busy.

4. Unsuccessful output branch for the call redirect step: If the Call Redirect step registers the destination extension as out of service, the script executes the Unsuccessful output branch. The Unsuccessful output branch of the Call Redirect step sets the value of the prefixPrompt variable to inform the caller that the extension was out of service. The Unsuccessful output branch of the Call Redirect step contains the Set step. The Set step, as shown in Figure 25, sets the value of prefixPrompt to contain a system prompt that plays back a message to the caller that the extension is busy.

– If step for the Yes output branch: The If step allows the script to determine whether or not the maximum number of retries has been reached by evaluating the expression attempts < MaxRetry. This expression determines if the number of attempts, as stored in the attempts variable, is less than the maximum number of retries, as stored in the MaxRetry variable. The If step has two output branches, True and False:

True: If the If step determines that the maximum number of retries has not been reached, the script executes the True output branch. The True output branch of the If step allows the caller to keep returning to the MainMenu label until it reaches the maximum number of retries.

The True output branch contains two steps. The Increment step increases the numbers or retries by 1. The Goto step sends the caller back to the MainMenu label step to provide the caller another opportunity to enter an extension.

False: If the If step determines that the maximum number of retries has been reached, the script executes the False output branch.The False output branch of the If step proceeds to the second Play Prompt step (see page 66).

56Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 63: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

Configure the Menu Step Output Branches (continued)

Perform the following tasks to continue configuration of the Menu step output branches:

Step 1 Configure the DialByName output branch. If the caller chooses menu option “2” (presses to enter the name of a person) when given the option by the Menu step, the script executes the DialByName output branch. The DialByName output branch, as shown in Figure 26, receives the name of the person the caller desires to reach.

Figure 26 DialByName Output Branch Scripting

Step 2 Configure the Label step (DialByName). The Label step is named DialByName to provide a target for the script so that the caller has more opportunities, if necessary, to enter a name successfully.

Step 3 Configure the create Container Prompt step. The Create Container Prompt step creates a prompt that asks the caller to enter the name of the desired person.

Step 4 Configure the Set Step. Configure the Set step to clear the value of the prefixPrompt variable so that it can be assigned by subsequent steps.

Step 5 Configure the Name To User step. The Name To User step, as shown in Figure 27, allows the caller to find a user based on DTMF digits input from the caller.

57Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 64: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

Figure 27 Name To User Customizer Window—Configured General Tab

The Name To User customizer window contains the following values:

• General tab

– Contact—Triggering Contact: The contact that triggered the script remains the contact for this step.

– Result User—user: The user variable stores the user object that maps to the selection of the caller.

– Announce When Number of Matches Less Than—4: If the number of matches is less than 4, the script prompts the caller to choose the correct entry from the list of matches. If the number of matches is greater than or equal to 4, the script prompts the caller to enter additional letters to reduce the number of matches.

– Operator—Yes: The script gives the caller the option to connect to an operator by pressing “0”.

– Interruptible—Yes: External events can interrupt the playback of the prompt.

• Prompt tab

– Prompt—Customize Prompt: The script uses a customized prompt.

– Prompt—prompt: The prompt variable stores the custom prompt the script plays back to the caller.

– Barge In—Yes: The caller can respond without first having to listen to the playback of the entire prompt.

– Continue On Prompt Errors—Yes: If a prompt error occurs, the script continues to play the next prompt, or, if this prompt is the last in the sequence, the script waits for caller input.

58Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 65: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

• Input tab

– Input Length—30: Specifies that the script automatically triggers a lookup when the caller enters 30 digits.

– Terminating Key—#: The terminating key is “#”.

– Cancel Key—*: The cancel key is “*”.

– Maximum Retries—5: The maximum number of retries is 5.

– Initial Timeout (in sec)—5: The step times out if the script receives no input within 5 seconds after playing back the prompt.

– Interdigit Timeout (in sec)—3: The step times out if the script receives no input between digits for 3 seconds.

– Flush Input Buffer—No: The script saves input previously entered by the caller.

The Name To User step has four output branches: Successful, Timeout, Unsuccessful, and Operator. The Timeout and Unsuccessful output branches need no scripting. If the step times out, the script proceeds to the second Play Prompt step (see page 66). If an invalid entry is made after 5 attempts, the script also proceeds to the second Play Prompt step (see page 66).

Perform the following tasks to configure the output branches for the Name to User step:

Step 1 Configure the Successful output branch for the Name to User step. The Successful output branch of the Name To User step, as shown in Figure 28, receives confirmation of the name from the caller and to transfer the call. The steps under this branch are similar to the steps under the Successful output branch of the Get Digit String step above (See page 50): the script requests confirmation and redirects the call to the desired extension.

Figure 28 Name To User—Successful Output Branch Scripting

Step 2 Configure the Get User Info step for the Name to User successful output branch. The Get User Info step, as shown in Figure 29, makes user attributes available to the script.

59Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 66: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

Figure 29 Configured Get User Info Customizer Window

The Get User Info customizer window contains the following values:

• User—user: Specifies user as the variable that holds a handle to the user information selected by the Name To User step.

• Attribute/Variable text box

– Full Name—name

– Extension—extnXfer

– Spoken Name—spokenName

Step 3 Configure the if step for the Name to User successful output branch. The If step creates a prompt based on whether or not a recording of the spoken name of the person whose extension is being called is available. The If step evaluates the Boolean expression spokenName==null. This expression determines if the value of the Document variable spokenName is equal to null.

Step 4 Configure the True output branch for the Name to User Successful If step. If the If step determines that a recording of the spoken name of the person whose extension is being called is not available, the script executes the True output branch. The True output branch of the If step instructs prompt to play the system prompt SP[AA/AACalling], which does not play the name of the person being called.

Step 5 Configure the False output branch for the Name to User Successful If step. If the If step determines that a recording of the spoken name of the person whose extension is being called is available, the script executes the False output branch. The False output branch of the If step instructs prompt to play the system prompt SP[AA/AACallingName], which is then followed by the spoken name.

Step 6 Configure the Implicit Confirmation step for the Name to User successful output branch. The Implicit Confirmation step confirms the name entered without demanding more input from the caller. The Implicit Confirmation step performs in a similar way to the DialByExtn section above. (See page 53.)

The Implicit Confirmation step has two output branches (see Figure 28.). To configure the output branches for the Implicit Confirmation step, perform the following tasks:

60Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 67: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

Step 1 Configure the No output branch for the Implicit Confirmation step. If the Implicit Confirmation step does not successfully confirm the choice of the caller, the script executes the No output branch. The No output branch of the If step, as shown in Figure 30, creates a prompt that provides the caller an opportunity to explicitly confirm the choice.

Figure 30 Name To User—No Output Branch of Implicit Confirmation Step

Step 2 Create the Conditional Prompt step for the No branch. The Create Conditional Prompt step creates a prompt based on whether or not the variable spokenName is null. The spokenName variable is not null if a spoken name exists for the selected user in the directory.

Step 3 Create the Set step for the No branch. The Set step appends the prompt created by the Create Conditional Prompt step with the system prompt SP[AA/AAWantToCall].

Step 4 Create the Explicit Confirmation step for the No branch. The Explicit Confirmation step makes an explicit confirmation of the name of the desired person, as shown in Figure 31.

Figure 31 Explicit Confirmation Customizer Window—Configured Prompt Tab

61Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 68: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

The Explicit Confirmation customizer window contains the following values:

• General tab

– Contact—Triggering Contact: The contact that triggered the script remains the contact for this step.

– Interruptible—Yes: External events can interrupt the playback of the prompt.

• Prompt tab

– Initial Prompt—prompt: The prompt variable stores the first prompt.

– Error Prompt—prompt: The prompt variable plays in the event of an input error.

– Timeout Prompt—prompt: The prompt variable plays if the timeout limit is reached.

– Barge In—Yes: The caller can respond without first having to listen to the playback of the entire prompt.

– Continue on Prompt Errors—Yes: If a prompt error occurs, the script continues to play the next prompt, or, if this is the last prompt in the sequence, the script waits for caller input.

• Input tab

– Timeout (in sec)—5: After playing all prompts, the script waits 5 seconds for initial input from the caller before re-attempting with a timeout error, or, if this was the last attempt, the script executes the Timeout output branch.

– Maximum Retries—3: The script will attempt a maximum of 3 retries to receive confirmation before executing the Unsuccessful output branch.

– Flush Input Buffer—Yes: The step erases previous input.

– Grammar—grammar: Leave blank.

The Explicit Confirmation step has four output branches: Yes, No, Timeout, and Error.

Configure the Yes output branch for the Explicit Confirmation step. If the Explicit Confirmation step successfully receives confirmation from the caller, the script executes the Yes output branch. The Yes output branch of the Explicit Confirmation step directs the script to the Xfer Label step under the Yes output branch of the Implicit Confirmation step (see page 63), which contains the steps necessary to redirect the call to the desired extension.

Step 5 Configure the No output branch for the Explicit Confirmation step. The No output branch contains the If Step. The If step determines whether or not the maximum number of retries has been reached by evaluating the expression attempts < MaxRetry. This expression determines if the number of attempts (as stored by the attempts variable) is less than the maximum retries value stored in the MaxRetry variable. If the If step determines that the maximum number of retries has not been reached, the script executes the True output branch. The True output branch of the If step provides the caller with another opportunity to enter the name of the desired person.

Step 6 Configure the Increment step of the True output branch. The Increment step increases the value of the attempts variable by 1.

Step 7 Configure the Goto step of the True output branch. The Goto step returns the caller to the beginning of the DialByName Label step at the beginning of the DialByName output branch in order to give the caller more attempts to input the proper name.

As stated in Step 5 above, the If step for the No output branch determines if the maximum number of retries has not been reached. If the number has been reached, the script executes the False output branch. The script proceeds to the second Play Prompt step (see page 66).

62Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 69: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

After completing configuration for the No output branch of the Implicit Confirmation step, you must configure the Yes output branch. The Yes output branch of the Implicit Confirmation step redirects the call to the desired extension, as shown in Figure 32.

Figure 32 Name To User—Yes Output Branch of Implicit Confirmation Step

To configure the Yes output branch of the Implicit Confirmation step, perform the following tasks:

Step 1 Create a Label step for the Implicit Confirmation Yes branch. The Label step has the value Xfer that provides a target for the Yes output branch of the Explicit Confirmation step above (see page 62).

Step 2 Create the first If step for the Implicit Confirmation Yes branch. The first If step directs the script based on whether or not the desired extension exists by evaluating the expression extnXfer != null. The expression determines if the value of the extnXfer variable (which stores the extension number) is not null.

Step 3 Configure the False output branch for the first If step. If the If step finds no extension for the selected user, the script executes the False output branch, which has one step, the Set step. The Set step sets the value of a prompt that will be played back to inform the caller that the extension was invalid.

Step 4 Configure the True output branch for the first If step. If the If step evaluates the desired extension as valid, the script executes the True output branch. The True output branch of the If step transfers the call using the Call Redirect step.

As in the other two main output branches of the Menu step (DialByExtn and Operator), the DialByName output branch contains the Call Redirect step, which attempts to transfer the call, in this case to the desired extension number. To configure the Call Redirect step, perform the following tasks:

63Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 70: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

Step 1 Configure the Successful output branch for the Call Redirect step. The Successful output branch of the Call Redirect step uses the Set Contact Info step to mark the contact as Handled and the End step to end the script.

Step 2 Configure the Busy output branch for the Call Redirect step. The Busy output branch of the Call Redirect step uses the Set step to set the value of the prefixPrompt variable to contain a system prompt that will play back a message to the caller that the extension is busy when the script proceeds to the final Play Prompt step (see page 67).

Step 3 Configure the Invalid output branch for the Call Redirect step. If the Call Redirect step registers the destination extension as invalid, the script executes the Invalid output branch. The Invalid output branch of the Call Redirect step uses the Set step to set the value of the prefixPrompt variable to contain a system prompt that will play back a message to the caller that the extension is invalid when the script proceeds to the final Play Prompt step (see page 67).

Step 4 Configure the Unsuccessful output branch for the Call Redirect step. If the Call Redirect step registers the destination extension as out of service, the script executes the Unsuccessful output branch. The Unsuccessful output branch of the Call Redirect step uses the Set step to set the value of the prefixPrompt variable to contain a system prompt that will play back a message to the caller that the extension is out of service when the script proceeds to the final Play Prompt step (see page 67).

After configuring the first If Step for the Yes output branch of the Implicit Confirmation step, you need to configure the second If step. Perform the following tasks:

Step 1 Create the second If step for the Implicit Confirmation Yes branch. The second If step directs the script based on whether or not the maximum number of retries has been reached by evaluating the expression attempts < MaxRetry. The expression determines if the number of attempts, as stored in the attempts variable, is less than the maximum number of retries allowed, as stored in the MaxRetry variable.

Step 2 Configure the False output branch for the If step. If the second If step finds that the maximum number of retries has been reached, the script executes the False output branch, and the script proceeds to the final Play Prompt step (see page 67).

Step 3 Configure the True output branch for the If step. If the If step finds that the maximum number of retries has not been reached, the script executes the True output branch. The True output branch of the If step provides more opportunities for the caller to successfully enter a name. The Increment step increases the value of the attempts variable by 1. The Goto step returns the caller to the beginning of the DialByName Label step at the beginning of the DialByName output branch of the Get Digit String step in order to give the caller more attempts to input the proper extension.

64Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 71: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

Configure the Name to User Step (continued)

To complete configuration of the output branches for the Name to User step, configure the Operator Output Branch for the Name to User Step. If the Name to User step receives caller input for transfer to the operator, the script executes the Operator output branch.The output branch transfers the call to an operator, as shown in Figure 33.

Figure 33 Name to User—Operator Output Branch

The Operator output branch uses the Goto step. to send the caller to the Operator output branch of the Menu step. If the caller chooses menu option “3” to speak to an operator when given the option by the Menu step, the script executes the Operator output branch.

The Operator output branch transfers the call to an operator, as shown in Figure 34.

Figure 34 Menu—Operator Output Branch

To configure the Operator output branch, perform the following tasks:

Step 1 Create the Label step (Xfer Operator) for the Operator branch. The Label step has the value Xfer Operator that provides a target for the Goto step.

Step 2 Create the Call Redirect step for the Operator branch. As in the other two main output branches of the Menu step (DialByExtn and DialByName), the Operator output branch contains the Call Redirect step, which attempts to transfer the call, in this case to the operator.

65Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 72: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

Step 3 Configure the Successful output branch for the Call Redirect step. The Successful output branch of the Call Redirect step uses the Set Contact Info step to mark the contact as Handled and the End step to end the script.

Step 4 Configure the Busy output branch for the Call Redirect step. The Busy output branch of the Call Redirect step uses the Set step to set the value of the prefixPrompt variable to contain a system prompt that will play back a message to the caller that the extension is busy when the script proceeds to the final Play Prompt step (see page 67).

Step 5 Configure the Invalid Output branch for the Call Redirect step. If the Call Redirect step registers the destination extension as invalid, the script executes the Invalid output branch. The Invalid output branch of the Call Redirect step uses the Set step to set the value of the prefixPrompt variable. This variable contains a system prompt that will play back a message to the caller that the extension is invalid when the script proceeds to the final Play Prompt step (see page 67).

Step 6 Configure the Unsuccessful output branch for the Call Redirect step. If the Call Redirect step registers the destination extension as out of service, the script executes the Unsuccessful output branch. The Unsuccessful output branch of the Call Redirect step uses the Set step to set the value of the prefixPrompt variable to contain a system prompt that will play back a message to the caller that the extension is out of service when the script proceeds to the final Play Prompt step (see page 67).

Step 7 Configure the If step for the operator branch. The If step allows the script to determine whether or not the maximum number of retries has been reached by evaluating the expression attempts < MaxRetry. The expression determines if the number of attempts, as stored in the attempts variable, is less than the maximum number of retries, as stored in the MaxRetry variable.

Step 8 Configure the True output branch for the Operator branch If step. If the If step determines that the maximum number of retries has not been reached, the script executes the True output branch. The True output branch of the If step allows the caller to keep returning to the MainMenu label until the system reaches the maximum number of retries.The Increment step increases the value of the attempts variable by 1. The Goto step sends the script back to the MainMenu label.

Step 9 Configure the False output branch for the Operator branch If step. If the If step determines that the maximum number of retries has been reached, the script executes the False output branch. The False output branch of the If step proceeds to the next step at the same level in the script as the Menu step, which is the Play Prompt step. (See Figure 12.)

Configure the Play Prompt Step

If none of the steps and branches under the Menu step succeed in transferring the call, the script proceeds to the Play Prompt step. The Play Prompt step, as shown in Figure 35, plays (as a last resort) a prompt informing the caller of the inability to transfer the call. The Play Prompt step plays prefixPrompt + SP[AA/AASorry], which informs the caller of the reason that the attempted transfer was unsuccessful.

66Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 73: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

Figure 35 End of Script

Configure the Call Redirect Step

After the Play Prompt step informs the caller of the unsuccessful call transfer, the Call Redirect step attempts to redirect the call to an operator, using the extension number stored in the operExtn variable.

Configure the If Step

The If step determines whether or not the maximum number of retries has been reached. As in the previous examples, the If step and Increment step allow the caller the maximum number of retries. If the transfer is successful, the script ends.

Configure the Play Prompt Step

After the maximum number of retries is reached without successfully transferring the call to an operator, the Play Prompt step plays prefixPrompt, which explains why the transfer was unsuccessful.

Insert the End Step

The End step ends the script and releases all system resources. The End step requires no configuration.

67Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 74: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Configuring an Auto Attendant Script Configuring the Script

68Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 75: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference Information

This chapter lists all the steps available for use in creating scripts. These steps are accessed using the palette pane (see Using the Palette Pane, page 9). This chapter includes the following sections:

• General Steps, page 69

• Contact Steps, page 85

• Call Contact Steps, page 90

• Media Steps, page 95

• User Steps, page 123

• Prompt Steps, page 125

General StepsThe steps in the General palette of the Cisco Unity Express Script Editor provide basic programming functionality for scripting.

The General palette contains the following steps:

• Annotate, page 70

• Call Subflow, page 71

• Day of Week, page 73

• Decrement, page 75

• Delay, page 75

• End, page 76

• Goto, page 77

• If, page 77

• Increment, page 78

• Label, page 78

• On Exception Clear, page 79

• On Exception Goto, page 79

• Set, page 81

• Start, page 82

69Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 76: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationGeneral Steps

• Switch, page 82

• Time of Day, page 83

Figure 36 shows the steps in the General palette as they appear in the Palette pane of the Cisco Unity Express Script Editor.

Figure 36 General Palette Steps

AnnotateUse the Annotate step to enter comments that explain the function of a script segment.

Figure 37 shows the customizer window for the Annotate step.

Figure 37 Annotate Customizer Window

To annotate a script, enter your comments in the Enter Comments field and click OK.

The Annotate customizer window closes and the first words of your annotation appear next to the Annotate icon in the Design pane of the Cisco Unity Express Script Editor.

This step has no effect on script logic.

70Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 77: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationGeneral Steps

Call SubflowUse the Call Subflow step to execute a subflow, which is analogous to a subroutine or module in structured programming.

Use the Cisco Unity Express Script Editor to create the subflow as an independent script that you can reuse in other scripts. Subflows can be nested; that is, you can call subflows from within scripts that are themselves used as subflows.

During run time, if an exception occurs within a subflow and you do not handle the exception within the subflow, the exception is available to the parent script for processing. For more information about exceptions, see the “On Exception Goto” section on page 79.

The Call Subflow customizer window contains two tabs:

• General Tab, page 71

• Parameter Mapping Tab, page 72

General Tab

Use the General tab of the Call Subflow customizer window, shown in Figure 38, to specify the filename of the subflow you want to call.

Figure 38 Call Subflow Customizer Window—General Tab

Table 12 describes the fields of the General tab.

Follow these steps to use the General tab of the Call Subflow customizer window to call a subflow:

Table 12 Call Subflow Fields—General Tab

Field Description

Subflow Name Filename of the subflow you want to call.

Disable Interruptions If the check box is checked, execution of the step cannot be interrupted by external events.

71Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 78: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationGeneral Steps

Step 1 If necessary, click the General tab.

The General tab of the Call Subflow customizer window appears.

Step 2 In the Subflow Name text field, enter the filename of the script that contains the desired subflow.

Step 3 If you want to prevent external events from interrupting the Call Subflow step, check the Disable Interruption check box.

Step 4 Click Apply.

Step 5 See “Parameter Mapping Tab” on page 72 to configure the subflow parameters.

Parameter Mapping Tab

Use the Parameter Mapping tab of the Call Subflow customizer window, shown in Figure 39, to map variables or expressions from the main script to variables in the subflow you specified in the General tab of the Call Subflow customizer window.

Note You must define variables in the map script before you can map them.

You can map variables only to variables of the same type. For example, you can map a string variable in the main script only to a string variable in the subflow.

You can pass in any valid expression; for example, “4” or an expression such as “counter + 3”.

When the script calls a subflow, the subflow has access to the variables from the main script that you specify on the Parameter Mapping tab. If the subflow changes the value of a mapped variable, that change carries over to the main script when the subflow returns control to the main script.

Figure 39 Call Subflow Customizer Window—Parameter Mapping Tab

Table 13 describes the fields of the Parameter Mapping tab.

72Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 79: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationGeneral Steps

Follow these steps to map variables or expressions:

Step 1 If necessary, click the Parameter tab.

The Parameter tab of the Call Subflow customizer window appears.

Step 2 Click Add.

The Parameter Mapping dialog box appears, as shown in Figure 40.

Figure 40 Parameter Mapping Dialog Box

Step 3 In the From Expression field, enter the variable name or expression from the main script.

Step 4 In the To Variable field, enter the variable name from the subflow.

Step 5 Click OK to add the mapping to the script.

The Parameter Mapping dialog box closes. The name and type of the variable you entered in the To Variable text field appear in the list box of the Call Subflow window.

Step 6 Click OK.

The Call Subflow customizer window closes. The script name you specified in the General tab appears next to the Call Subflow step icon in the Design pane of the Cisco Unity Express Script Editor.

Day of WeekUse the Day of Week step to direct the script to different connection output branches depending on the current day of the week.

When the Cisco Unity Express system clock matches one of the days associated with a connection, the script executes any steps that you configured for that day’s connection branch.

Table 13 Call Subflow Fields—Parameter Mapping Tab

Field Description

From Name of the variable from the main script that will receive the value of the variable from the subflow script.

To Name of the variable from the subflow script that will be assigned to the variable in the main script.

Type Variable type.

73Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 80: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationGeneral Steps

Configure all days with output branches and assign each day its own connection(s). If a day is not assigned to at least one output branch, the Cisco Unity Express Script Editor displays a warning dialog box when you close the Day of Week customizer window.

Figure 41 shows the customizer window for the Day of Week step.

Figure 41 Day of Week Customizer Window

Table 14 describes the fields of the Day of Week customizer window.

Follow these steps to add a connection output branch and associate it with days of the week:

Step 1 Click Add.

The Add Connection Name dialog box appears. (See Figure 42.)

Figure 42 Add Connection Name Dialog Box

Step 2 In the Connector Name text field, enter a name for the connection branch and click OK.

The Add Connection Name dialog box closes, and the name of the new connection appears in the Connections list box of the Day of Week customizer window.

Table 14 Day of Week Customizer Window Fields

Field Description

Connections Output branches that execute depending on a specified day of week.

Days Days of the week for each connection branch.

74Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 81: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationGeneral Steps

Step 3 Select the new connection in the Connections list box, and check the check boxes for the days you want to associate with that branch.

Note If you want to modify the name of an already existing connection output branch—to make it easier to understand your script, for example—select the connection in the Connections list box, and then click Modify. The Modify Connection Name dialog box appears, which contains the same field as the Add Connection Name dialog box and is configured in the same way.

Step 4 Click OK.

The Day of Week customizer window closes.

DecrementUse the Decrement step to decrease the value of a chosen Integer variable by one. This step is a specialized version of the Set step of the General palette, which you use to assign any value to a variable.

Figure 43 shows the customizer window for the Decrement step.

Figure 43 Decrement Customizer Window

To decrease the chosen Integer variable by one, choose the desired variable from the Variable drop-down menu and click OK.

The Decrement customizer window closes. The variable appears next to the Decrement step icon in the Design pane of the Cisco Unity Express Script Editor.

DelayUse the Delay step to pause the processing of a script for a specified number of seconds.

Figure 44 shows the customizer window for the Delay step.

75Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 82: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationGeneral Steps

Figure 44 Delay Customizer Window

Table 15 describes the fields of the Delay customizer window.

Follow these steps to specify a script processing delay:

Step 1 In the Enter delay time text field, enter the number of seconds for the delay, or click the Expression Editor (...) button to enter any valid expression.

Step 2 To allow external events to interrupt the delay, click the Yes radio button.

Step 3 Click OK.

The Delay customizer window closes. Either the number of seconds or the name of the variable appears next to the Delay step of the Design pane of the Cisco Unity Express Script Editor.

EndUse the End step at the end of a script to complete processing and free all allocated resources.

You can also use the End step at the end of a branch of logic in a script. Any call still active by the time this step is executed will automatically be processed by the system default logic.

This step has no properties and does not require a customizer.

Table 15 Delay Customizer Window Fields

Field Description

Enter delay time in seconds or enter an expression Length of time in seconds for the delay, or an expression that specifies the length of the delay.

Interruptible If Yes is clicked, the delay is interruptible by external events.

76Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 83: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationGeneral Steps

GotoUse the Goto step to cause the script logic to branch to a specified Label step within the script.

Note You must create a specific Label step before you can customize the Goto step to branch to that label.

Figure 45 shows the customizer window for the Goto step.

Figure 45 Goto Customizer Window

To cause the script logic to branch to a specific Label step, choose that Label step from the Select a Label drop-down menu and click OK.

The Goto customizer window closes. The label name appears next to the Goto step icon in the Design pane of the Cisco Unity Express Script Editor.

IfUse the If step to cause the script to go to one of two branches based on the evaluation of a specified Boolean expression.

The If step automatically adds two output branches, True and False:

• True—Steps following this output branch execute if the expression is true.

• False—Steps following this output branch execute if the expression is false.

Figure 46 shows the customizer window for the If step.

Figure 46 If Customizer Window

77Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 84: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationGeneral Steps

To create True and False output branches, either enter an expression in the text field or click the Expression Editor (...) button to enter an expression and click OK.

The If customizer window closes. The expression appears next to the If step icon in the Design pane of the Cisco Unity Express Script Editor.

IncrementUse the Increment step to increase the value of a chosen Integer variable by one. This step is a specialized version of the Set step of the General palette, which you use to assign any value to a variable.

Figure 47 shows the customizer window for the Increment step.

Figure 47 Increment Customizer Window

To increase the value of a specific Integer variable by one, choose that Integer type variable from the Variable drop-down menu and click OK.

The Increment customizer window closes. The variable appears next to the Increment step icon in the Design pane of the Cisco Unity Express Script Editor.

LabelUse the Label step to insert a label into a script to serve as a target for a Goto step within the same script.

Figure 48 shows the customizer window for the Label step.

Figure 48 Label Customizer Window

To insert a label into a script, enter a name in the Enter Label Name text field, and then click OK.

The Label customizer window closes. The Label name appears next to the Label step icon in the Design pane of the Cisco Unity Express Script Editor.

78Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 85: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationGeneral Steps

On Exception ClearUse the On Exception Clear step to remove an exception set by a previous On Exception Goto step.

Typically, this step is used in the following sequence:

1. An On Exception Goto step directs the script to a Label step.

2. The Label step is configured with a script to handle the exception.

3. An On Exception Clear step is then used to clear the exception.

You may also use this step when you no longer need to handle the selected exception within the script.

Figure 49 shows the customizer window for the On Exception Clear step.

Figure 49 On Exception Clear Customizer Window

To clear an exception, select the specific exception from the list box and click OK.

The On Exception Clear customizer window closes. The exception being cleared appears next to the On Exception Clear step icon in the Design pane of the Cisco Unity Express Script Editor.

On Exception GotoUse the On Exception Goto step to catch problems that may occur during script execution and allow a graceful exit from the situation.

You can include any script steps in the Exception Flow branch that you want to use to respond to the exception.

If you are using subflows and the subflow does not handle an exception, the exception is returned to the script and the script can respond to it.

Figure 50 shows the customizer window for the On Exception Goto step.

79Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 86: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationGeneral Steps

Figure 50 On Exception Goto Customizer Window

Table 16 describes the fields of the On Exception Goto customizer window.

Follow these steps to create a response to an exception:

Step 1 In the Choose the exception from the list box, select the exception that will trigger the execution of the On Exception Goto step.

Step 2 From the Choose the label from the list drop-down menu, choose the label to which the script will branch when the exception occurs.

Step 3 From the Save root cause (optional) drop-down menu, choose an exception object, if desired.

Step 4 Click OK.

The On Exception Goto customizer window closes. The information you selected appears next to the On Exception Goto step icon in the Design pane of the Cisco Unity Express Script Editor.

Table 16 On Exception Goto Fields

Field Description

Choose the exception from the list Exception that triggers the execution of the step.

Choose the label from the list Label to which the script will branch.

Save root cause (optional) Cause of the exception, saved in an exception object using the “Save root cause” field.

The object type must correspond to the type of exception being caught or to a base class of that exception. If it does not, no warning will be generated at design time, but an error will result at run time.

80Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 87: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationGeneral Steps

SetUse the Set step to change the value of a variable.

The Set step supports type casting (with possible loss of precision) from any Number data type (Integer, Float, Long, Double, BigInteger, BigDecimal) to any other Number data type.

You can also use the Set step to convert a String variable to any Number data type. For String conversions, the system replaces all “*” characters with a decimal point (“.”) before performing the conversion.

Figure 51 shows the customizer window for the Set step.

Figure 51 Set Customizer Window

Table 17 describes the fields of the Set customizer window.

Follow these steps to set the value for a variable:

Step 1 From the Variable drop-down menu, choose the variable for which the value will be set.

The Type field automatically displays the type of the variable you chose.

Step 2 From the Assign drop-down menu, choose the value for the specified variable or click the Expression Editor (...) button to enter any valid expression.

Step 3 Click OK.

The Set customizer window closes. The information you entered appears next to the Set step icon in the Design pane of the Cisco Unity Express Script Editor.

Table 17 Set Customizer Window Fields

Field Description

Variable Variable for which the value will be set.

Type Variable type. The application software assigns this value.

Assign Value for the specified variable.

81Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 88: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationGeneral Steps

StartThe Cisco Unity Express Script Editor automatically adds the Start step when you create a new script by choosing File > New.

This step has no properties and does not require a customizer. It is not shown in any palette.

SwitchUse the Switch step to cause the program logic to branch to one of a number of cases based on the evaluation of a specified expression.

A case is a method for providing script logic based on the value of a variable at a point in time. You can assign one case for each value. The Switch step lets you define any number of case output branches. You can then create a separate script logic for each branch.

The Switch step supports switching based on the following variables:

• Integer—Comparison of integers.

• String—Comparison of string variables (case insensitive).

The type of switching is automatically determined by the type of the specified expression.

If the integer or string expression you specify for a case is equal to the global expression defined in the Switch Expression field, the script executes the steps configured for that case output branch.

The Default branch of the step allows you to handle cases where none of the branches matches the expression.

Figure 52 shows the customizer window for the Switch step.

Figure 52 Switch Customizer Window

Table 18 describes the fields of the Switch customizer window.

82Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 89: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationGeneral Steps

Follow these steps to create script logic for one or more cases:

Step 1 From the Switch Expression drop-down menu, select a variable or expression, or click the Expression Editor (...) button to enter any valid expression.

Step 2 Click Add.

The Switch Case and Label dialog box appears, as shown in Figure 53.

Figure 53 Switch Case and Label Dialog Box

Step 3 In the Output Label Name field, enter an output label name.

The script will branch to this Label when the variable equals the value specified in the Case field.

Step 4 Click OK.

The Switch Case and Label dialog box closes.

Step 5 Click OK.

The Switch customizer window closes. The information you entered appears next to the Switch step icon in the Design pane of the Cisco Unity Express Script Editor.

Time of DayUse the Time of Day step to cause the script to branch to different connection branches depending on the current time of day.

When the Cisco Unity Express system clock indicates that the time of day matches the time associated with a connection, the script executes any steps configured for that output branch.

Associate each output branch with a specified range of time.

Table 18 Switch Customizer Window Fields

Field Description

Switch Expression Expression to be executed.

Switch Case(s) • Case—Output branch containing script logic specific to one possible variable value.

• Label—Target to which the script branches when the variable equals a specific value.

83Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 90: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationGeneral Steps

During run time, if the current time falls out of the configured time range, the script follows the Rest output branch of the Time of Day step.

Figure 54 shows the customizer window for the Time of Day step.

Figure 54 Time of Day Customizer Window

Table 19 describes the fields of the Time of Day customizer window.

Follow these steps to add a new connection and specify a range of hours for that connection:

Step 1 Click Add.

The Add Connection Name dialog box appears as shown in Figure 55.

Figure 55 Add Connection Name Dialog Box

Step 2 In the Connection Name field, enter the new connection name and click OK.

The Add Connection dialog box closes. The name of the new connection appears in the Connections text box of the Day of Week customizer window.

Step 3 To specify a range of hours, select the connection in the Connections text box and click Add Time.

The Add Range of Hours dialog box appears as shown in See Figure 56.

Table 19 Time of Day Customer Window Fields

Field Description

Connections Output branches that execute depending on specified time of day

Time Ranges Time ranges for each connection branch

84Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 91: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationContact Steps

Figure 56 Add Range of Hours Dialog Box

Step 4 From the Start Time list, choose a start time.

Step 5 From the End Time list, select an end time.

Step 6 Click OK.

The Add Range of Hours dialog box closes.

Step 7 Click OK.

The Time of Day customizer window closes.

Contact StepsThe steps in the Contact palette of the Cisco Unity Express Script Editor provide designers with a way to control contacts.

A contact represents one form of connection, such as a telephone call, with a remote user. Scripts use contacts to track connections through the system. The contact is established when the connection is made. The contact lasts until the connection is terminated, for example, when the script transfers or disconnects a telephone call.

Configure each step that acts on contacts to accept the implicit contact (by choosing the “-- Triggering Contact --” default) or to use a variable that can hold the handle to this contact. Use the Set Contact Info step of the Contact palette to mark the contact as Handled, which is important for reporting purposes.

The Contact palette contains the following steps:

• Accept, page 86

• Get Contact Info, page 87

• Set Contact Info, page 88

• Terminate, page 90

85Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 92: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationContact Steps

Figure 57 shows the steps in the Contact palette as they appear in the Palette pane of the Cisco Unity Express Script Editor.

Figure 57 Contact Palette Steps

AcceptUse the Accept step to accept a particular contact.

After the Start step, the Accept step is normally the first step in a Cisco Unity Express script, triggered by an incoming contact.

The caller hears ringing until the script reaches this step.

Figure 58 shows the customizer window for the Accept step.

Figure 58 Accept Customizer Window

Table 20 describes the field of the Accept customizer window.

To configure the Accept step, click the Contact drop-down arrow to choose a contact and click OK.

The Accept customizer window closes. The name of the Contact variable appears next to the Accept step icon in the Design pane of the Cisco Unity Express Script Editor.

Table 20 Accept Customizer Window Field

Field Description

Contact Contact variable.

Default is Triggering Contact, unless another contact is defined.

86Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 93: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationContact Steps

Get Contact InfoUse the Get Contact Info step to extract information from a particular type of object and store it in script variables so that this contact information is available to subsequent steps in the script.

Figure 59 shows the customizer window for the Get Contact Info step.

Figure 59 Get Contact Info Customizer Window

Table 21 describes the fields of the Get Contact Info customizer window.

Table 22 describes the information that the Get Contact Info step makes available to other steps in the script.

Table 21 Get Contact Info Customizer Window Fields

Field Description

Contact Contact variable for which you want to get information.

Default is Triggering Contact, unless another contact is defined.

Attribute/Variable Attributes and variables of contact information types.

Table 22 Get Contact Info Attributes

Attribute Description

Type String representing the type of contact. For Cisco Unity Express, the type is a call.

Language This option is for future use.

ASR Supported This option is for future use.

Is Active Boolean value indicating whether the call is still active.

Is Aborting Boolean value indicating whether the call is being aborted.

Session Handled Boolean value indicating whether the contact was previously marked as handled.

87Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 94: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationContact Steps

Follow these steps to get contact information:

Step 1 From the Contact drop-down menu, choose the Contact variable for which you want to get information.

Step 2 In the Attribute/Variable list box, select the desired attribute and click Set.The Get Contact Type dialog box appears, as shown in Figure 60.

Figure 60 Get Contact Type Dialog Box

Step 3 From the Select Variable drop-down menu, choose the desired variable and click OK.

The Get Contact Type dialog box closes. The name of the selected variable appears in the Variable column next to the selected attribute in the Get Contact Info customizer window.

Step 4 Click OK.

The Get Contact Info customizer window closes. The name of the selected Contact variable appears next to the Get Contact Info step icon in the Design pane of the Cisco Unity Express Script Editor.

Set Contact InfoUse the Set Contact Info step to modify the context information associated with a contact.

The Set Contact Info step often follows a Redirect step in the script to mark the contact as Handled.

Identifer Integer value containing the contact identifier assigned by the system guaranteed to be unique among all contacts.

Implementation ID String value containing the implementation-specific identifier for the contact. This value is unique for a given contact type. For a Cisco JTAPI call contact, this value is equivalent to the global call identifier obtained by the Cisco CallManager software.

Sequence Number Integer value containing the sequence number of the contact assigned by the system if the contact is associated with a session. The value is -1 if the contact is not associated with a session. For every new contact associated with a session, the system increments the value by one.

Session Session object associated with the contact. Null if none is found.

Table 22 Get Contact Info Attributes

Attribute Description

88Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 95: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationContact Steps

A contact can be marked Handled only while it is active. Once a contact becomes inactive (for example, after a successful transfer), the script has a maximum of 5 seconds to mark the contact as Handled; otherwise the mark will have no effect in reporting.

Note You cannot mark a contact as unhandled. Once a contact is reported as Handled, it will always be reported with that status.

Figure 61 shows the customizer window for the Set Contact Info step.

Figure 61 Set Contact Info Customizer Window

Table 23 describes the fields of the Set Contact Info customizer window.

Table 24 describes the attribute information provided in the customizer window of the Set Contact Info step.

Follow these steps to modify the context information associated with a contact:

Step 1 From the Contact drop-down menu, choose the Contact variable for which you want to set information.

Step 2 In the Attribute/Variable list box, select Handled and click Set.

Table 23 Set Contact Info Customizer Window Fields

Field Description

Contact Contact variable for which you want to set information.

Default is Triggering Contact, unless another contact is defined.

Attribute/Value Attributes and values of contact information types.

Table 24 Set Contact Info Attributes

Attribute Description

Language This option is for future use.

Handled Final result of contact; this is important for reporting purposes.

Session This option is for future use.

89Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 96: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationCall Contact Steps

An X appears in the Value column next to the Handled attribute.

Step 3 Click OK.

The Set Contact Info customizer window closes,. The name of the selected Contact variable appears next to the Set Contact Info step icon in the Design pane of the Cisco Unity Express Script Editor.

TerminateUse the Terminate step to disconnect the call.

Figure 62 shows the customizer window for the Terminate step.

Figure 62 Terminate Customizer Window

Table 25 describes the field of the Terminate customizer window.

To terminate a contact, click the Contact drop-down arrow to choose the contact that you want to terminate and click OK.

The Terminate customizer window closes. The name of the selected Contact variable appears next to the Terminate step icon in the Design pane of the Cisco Unity Express Script Editor.

Call Contact StepsThe steps in the Call Contact palette of the Cisco Unity Express Script Editor provide script designers with a way to manage calls.

The Call Contact palette contains the following steps:

• Call Redirect, page 91

• Get Call Contact Info, page 93

Figure 57 shows the steps in the Call Contact palette as they appear in the Palette pane of the Cisco Unity Express Script Editor.

Table 25 Terminate Customizer Window Field

Field Description

Contact Contact variable that you want terminated.

Default is Triggering Contact, unless another contact is defined.

90Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 97: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationCall Contact Steps

Figure 63 Call Contact Palette Steps

Call RedirectUse the Call Redirect step to redirect a call to another extension.

The Call Redirect step is often used in applications to transfer a call after a desired extension has been specified.

The Call Redirect step produces four output branches:

• Successful—The call is ringing at the specified extension.

• Busy—The specified extension is busy and the call cannot be transferred.

• Invalid—The specified extension does not exist.

• Unsuccessful—The redirect step fails internally.

Configure script steps after each of the four branches to handle the possible outcomes of a redirected call.

Figure 64 shows the customizer window for the Call Redirect step.

Figure 64 Call Redirect Customizer Window

Table 26 describes the fields of the Call Redirect customizer window.

Table 26 Call Redirect Customizer Window Fields

Field Description

Call Contact Contact that you want to redirect.

Default is Triggering Contact, unless another contact is defined.

91Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 98: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationCall Contact Steps

Table 27 describes the extensions supported by the Call Redirect step.

Extension Variable that holds the extension where the call is to be redirected.

(See Table 27 for supported extensions.)

Reset CTI Called Address

If Yes, the script resets the original destination of the call to the redirected destination.

If No, the script preserves the original call destination even after the Call Redirect step executes. The information associated with the call gives no indication that the Route point or CTI port was ever involved with the call.

Default is Yes. Set this field according to the requirements of the redirected destination.

Table 26 Call Redirect Customizer Window Fields (continued)

Field Description

Table 27 Call Redirect—Supported Extensions

Extension Description

Extensions starting with “#” or “*”

Extensions that trigger a network take-back and transfer where the specified string is outpulsed as is. The redirect is successful if a hang-up event occurs within a maximum of 5 seconds.

Note You can use a comma (,) in the string to insert a pause of 1 second before the next digit is outpulsed.

Extensions ending with “.wav”

Extensions that trigger a network announcement type of redirect. The system simulates a ring-back tone, plays back the specified .wav file 4 times, and finally simulates a fastbusy tone.

The redirect is successful if at any time the caller hangs up or the end of the fastbusy tone is reached, at which point the call is disconnected.

Extensions equal to “PROBLEMS”

Extensions that trigger a network announcement type of redirect with a system problem announcement.

The redirect is successful if at any time the caller hangs up or the end of the audio is reached. The call will be reported as disconnected, not redirected.

Extensions equal to “BUSY”, “RNA”1, “FASTBUSY” or “DIALTONE”

1. RNA = Ring No Answer

The specified audio treatment is generated before the call is disconnected.

The redirect is successful if at any time the caller hangs up or the end of the audio is reached. The call will be reported as disconnected, not redirected.

92Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 99: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationCall Contact Steps

Follow these steps to redirect a call:

Step 1 From the Call Contact drop-down menu, choose the Contact variable to trigger the Call Redirect step.

Step 2 From the Extension drop-down menu, choose the variable that holds the extension where the call is to be redirected.

Step 3 In the Reset CTI Called Address field, do one of the following:

• Click the Yes radio button if you want to reset the original destination of the call to the redirected destination.

• Click the No radio button if you want to preserve the original call destination even after the Call Redirect step executes.

Step 4 Click OK.

The Call Redirect customizer window closes, and the names of the selected Call Contact and extension variables appear next to the Call Redirect step icon in the Design pane of the Cisco Unity Express Script Editor.

Get Call Contact InfoUse the Get Call Contact Info step to access call-specific information and to store values in specified variables.

You can use this step to handle a call in a variety of ways depending on the source of the call and other properties associated with the session. For example, you can use this step with a Call Redirect step to transfer a call to another extension, or you can use this step with a Play Prompt step to play a voice prompt.

Figure 65 shows the customizer window for the Get Call Contact Info step.

Figure 65 Get Call Contact Info Customizer Window

93Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 100: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationCall Contact Steps

Table 28 describes the fields of the Get Call Contact Info customizer window.

Table 29 describes the arrival types of the Get Call Contact Info step.

Table 28 Get Call Contact Info Customizer Window Fields

Field Description

Call Contact Contact for which you want to get information.

Default is Triggering Contact, unless another contact is defined.

Calling Number Variable that stores the number of the originator of the call.

Called Number Variable that stores the number called by the calling party.

Arrival Type Variable that holds the arrival type of the call.

(See Table 29 for supported arrival types.)

Last Redirected Number The number from which the last call diversion or transfer was invoked.

This is the number at which the call was placed immediately before the current number.

Original Called Number Number called from the perspective of the called party.

Table 29 Get Call Contact Info—Arrival Types

(Event) Arrival Type Description

UNKNOWN The system is unable to determine how the call arrived.

DIRECT Incoming call that came directly from the originator.

REDIRECT Incoming call that was redirected to this application.

FORWARD_ALL Incoming call that was forwarded from its original destination.

FORWARD_BUSY Call that was forwarded to the current application because the original extension was busy.

FORWARD_NO_ANSWER Call that was forwarded to the current application because the original extension exceeded the maximum number of rings.

TRANSFER Incoming call that originated locally as part of the Transfer feature.

OUTBOUND Call that was the result of an outgoing call created by an application.

TIME_OF_DAY Call that was the result of a time-of-day forwarding.

DO_NOT_DISTURB Call that was the result of a do-not-disturb forwarding.

FOLLOW_ME Call that was the result of a follow-me forwarding.

OUT_OF_SERVICE Call that was received because the originally called party was out of service.

AWAY Call that was received because the originally called party was away.

94Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 101: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Follow these steps to access call-specific information:

Step 1 From the Call Contact drop-down menu, choose the Contact variable for which you want to retrieve information.

Step 2 From the Calling Number drop-down menu, choose the variable that stores the number where the call originated.

Step 3 From the Called Number drop-down menu, choose the variable that stores the destination number.

Step 4 From the Arrival Type drop-down menu, choose the variable that stores the arrival type for the call.

Step 5 From the Last Redirect Number drop-down menu, choose the variable that stores the number from which the last call diversion or transfer was invoked.

Step 6 From the Original Called Number drop-down menu, choose the variable that stores the original destination number.

Step 7 Click OK. The Get Call Contact Info customizer window closes. The name of the selected Call Contact variable appears next to the Get Call Contact Info step icon in the Design pane of the Cisco Unity Express Script Editor.

Media StepsThe steps in the Media palette of the Cisco Unity Express Script Editor provide script designers with a way to process media interactions with callers.

Media interactions can include playing prompts and acquiring Dual Tone Multi-Frequency (DTMF) input.

The Media palette contains the following steps:

• Explicit Confirmation, page 96

• Get Digit String, page 100

• Implicit Confirmation, page 106

• Menu, page 108

• Name To User, page 113

• Play Prompt, page 119

Figure 57 shows the steps in the Media palette as they appear in the Palette pane of the Cisco Unity Express Script Editor.

95Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 102: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Figure 66 Media Palette Steps

Note If you apply any of these Media steps to a contact that is not associated with a Media channel (also called a dialog channel), a ChannelUnsupportedException results.

Explicit ConfirmationUse the Explicit Confirmation step to confirm an explicit response to a prompt.

The Explicit Confirmation step is defined with a default grammar that accepts 1 for yes and 2 for no.

The customizer window of the Explicit Confirmation step contains three tabs:

• General, page 96

• Prompts, page 97

• Input, page 99

General

Use the General tab of the Explicit Confirmation customizer window, as shown in Figure 67, to select the contact on which to perform the confirmation and to set the Interruptible option.

Figure 67 Explicit Confirmation Customizer Window—General Tab

96Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 103: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Table 30 describes the fields of the General tab.

Follow these steps to specify the contact that triggers the execution of the Explicit Confirmation step:

Step 1 From the Contact drop-down menu, choose the Contact variable that is to be confirmed.

Step 2 In the Interruptible field, do one of the following:

• Click the Yes radio button to allow an external event to interrupt the step.

• Click the No radio button to require the step to complete before any other process can execute.

Step 3 Click Apply.

Continue with “Prompts” on page 97 to configure the Prompts tab of the Explicit Confirmation customizer window.

Prompts

Use the Prompts tab of the Explicit Confirmation customizer window, as shown in Figure 68, to specify initial, error, and timeout prompts and to set Barge In and Continue On Prompt Errors options.

Figure 68 Explicit Confirmation Customizer Window—Prompts Tab

Table 30 Explicit Confirmation Customizer Window Fields—General Tab

Property Description

Contact Contact that triggers the execution of the step.

Default is the Triggering Contact, unless another contact is specified.

Interruptible If Yes, an external event (such as a caller hanging up) can interrupt the step.

If No, the step must complete before any other process can execute.

97Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 104: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Table 31 describes the fields of the Prompts tab.

Follow these steps to specify prompts and prompt status:

Step 1 In the Initial Prompt field, do one of the following:

• Enter a value.

• From the Initial Prompt drop-down menu, choose a prompt variable.

• Click the Expression Editor (...) button and enter a prompt expression.

Step 2 In the Error Prompt field, do one of the following:

• Enter a value.

• In the Error Prompt drop-down menu, choose a prompt variable.

• Click the Expression Editor (...) button and enter a prompt expression.

Step 3 In the Timeout Prompt field, do one of the following:

• Enter a value.

• In the Timeout Prompt drop-down menu, choose a prompt variable.

• Click the Expression Editor (...) button and enter a prompt expression.

Step 4 In the Barge In field, do one of the following:

• Click the Yes radio button to allow the caller to interrupt the prompt.

• Click the No radio button to require the prompt to complete playback before the caller can respond.

Step 5 In the Continue on Prompt Errors field, do one of the following:

• Click the Yes radio button to instruct the step to continue with the next prompt in the list if an error occurs in a prompt.

• Click the No radio button to cause an exception to result.

Step 6 Click Apply.

Continue with “Input” on page 99 to configure the Input tab of the Explicit Confirmation customizer window.

Table 31 Explicit Confirmation Customizer Window Fields—Prompts Tab

Field Description

Initial Prompt First prompt to be played back.

Error Prompt Prompt to be played in the event of an input error.

Timeout Prompt Prompt to be played in the event of a timeout.

Barge In If Yes, the caller can interrupt the prompt.

If No, the prompt must complete playback before the caller can respond.

Continue on Prompt Errors If Yes, the step continues with the next prompt in the list if a prompt error occurs, or, if this prompt was the last in the list, the step waits for input from the caller.

If No, an exception results, which can then be handled in the script.

98Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 105: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Input

Use the Input tab of the Explicit Confirmation customizer window, as shown in Figure 69, to set timeout duration, maximum number of retries, and Flush Input Buffer options.

Figure 69 Explicit Confirmation Customizer Window—Input Tab

Table 32 describes the fields of the Input tab.

Follow these steps to specify the values of various types of input:

Step 1 From the Timeout (In Sec) drop-down menu, choose the number of seconds that the step waits for a response before timing out.

Step 2 From the Maximum Retries drop-down menu, choose the number of times a new entry can be entered after a timeout or invalid key.

Step 3 In the Flush Input Buffer field, do one of the following:

• Click the Yes radio button to cause the system to erase previously entered input before capturing new caller input.

• Click the No radio button to allow callers to type ahead and have the input saved.

Table 32 Explicit Confirmation Customizer Window Fields—Input Tab

Field Description

Timeout (in sec) Number of seconds that the step waits for a response before timing out.

Maximum Retries Number of times a new entry can be entered after a timeout or invalid key.

Flush input Buffer If Yes, the system erases previously entered input before capturing caller input.

If No, the system does not erase previously entered input before capturing caller input.

Grammar Optional grammar expression to be used for recognizing Yes or No.

If supplied, the grammar will override the system default grammar.

99Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 106: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Step 4 In the Grammar field, do one of the following:

• Enter a value.

• From the Grammar drop-down menu, choose the variable that contains the grammar value.

• Click the Expression Editor (...) button and enter a grammar expression.

Step 5 Click OK.

The Explicit Confirmation customizer window closes. The name of the triggering contact appears next to the Explicit Confirmation step icon in the Design pane of the Cisco Unity Express Script Editor.

Get Digit StringUse the Get Digit String step to capture a DTMF digit string from the caller in response to a prompt.

The Get Digit String step waits for input until the caller does one of the following:

• Presses the terminating key (DTMF only).

• Exhausts the maximum number of retries.

• Enters the maximum number of keys (DTMF only).

• Does not respond before the timeout length is reached.

Note When any previous escalating prompt in the script enters the Get Digit String step, the previous escalating prompt is reset to the first prompt in its list.

The Get Digit String step provides three output branches:

• Successful—Input was valid.

• Timeout—After the retry limit was reached, the last try timed out.

• Unsuccessful—After the retry limit was reached, an invalid key was pressed.

Note In the event of an error, the accumulated digits are returned and saved in the specified variable before the script exits through the unsuccessful or timeout output branches.

The customizer window of the Get Digit String step contains four tabs:

• General, page 100

• Prompt, page 102

• Input, page 103

• Filter, page 105

General

Use the General tab of the Get Digit String step, as shown in Figure 70, to choose the contact, specify the variable that will store the digit string, and specify whether or not the step is interruptible by external events.

100Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 107: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Figure 70 Get Digit String Customizer Window—General Tab

Table 33 describes the fields of the General tab.

Follow these steps to specify the contact that triggers the execution of the Get Digit String step:

Step 1 From the Contact drop-down menu, choose the Contact variable that triggers the execution of the step.

Step 2 In the Interruptible field, do one of the following:

• Click the Yes radio button to allow an external event, such as a caller hanging up, to interrupt the step.

• Click the No radio button to require the step to complete before any other process can execute.

Step 3 Click Apply.

Continue with “Prompt” on page 102 to configure the Prompt tab of the Get Digit String customizer window.

Table 33 Get Digit String Customizer Window Fields—General Tab

Field Description

Contact Contact that triggers the execution of the step.

Default is Triggering Contact, unless another contact is specified.

Result Digit String Name of the variable that stores the digits that the caller enters.

Interruptible If Yes, an external event (such as a caller hanging up) can interrupt the step.

If No, the step must complete before any other process can execute.

101Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 108: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Prompt

Use the Prompt tab of the Get Digit String customizer window, as shown in Figure 71, to specify a prompt, and to set Barge In and Continue on Prompt Errors options.

Figure 71 Get Digit String Customizer Window—Prompt Tab

Table 34 describes the fields of the Prompt tab.

Follow these steps to configure the prompt properties of the Get Digit String step:

Step 1 From the Prompt drop-down menu, choose the prompt to be played.

Step 2 In the Barge In field, do one of the following:

• Click the Yes radio button to allow the caller to interrupt the prompt.

• Click the No radio button to require the prompt to complete playback before the caller can respond.

Table 34 Get Digit String Customizer Window Fields—Prompt Tab

Field Description

Prompt Prompt to be played back.

Barge In If Yes, the caller can interrupt the prompt.

If No, the prompt must complete playback before the caller can respond.

Continue on Prompt Errors If Yes, the step continues with the next prompt in the list if a prompt error occurs, or, if this prompt was the last in the list, the step waits for input from the caller.

If No, an exception results, which can then be handled in the script.

102Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 109: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Step 3 In the Continue on Prompt Errors field, do one of the following:

• Click the Yes radio button to instruct the step to continue with the next prompt in the list if an error occurs in a prompt.

• Click the No radio button to cause an exception to result.

Step 4 Click Apply.

Continue with “Input” on page 103 to configure the Input tab of the Get Digit String customizer window.

Input

Use the Input tab of the Get Digit String customizer window, as shown in Figure 72, to set conditions for receiving caller input.

Figure 72 Get Digit String Customizer Window—Input Tab

Table 35 describes the fields of the Input tab.

Table 35 Get Digit String Customizer Window Fields—Input Tab

Field Description

Input Length Maximum number of digits or characters. When this limit is reached, the step stops accumulating digits and returns.

Terminating Key Key used to indicate the end of caller input (DTMF only). The terminating key overrides the Input Length to terminate input.

Cancel Key Key the caller presses to start over.

103Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 110: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Follow these steps to configure caller input in the Get Digit String customizer window:

Step 1 In the Input Length text field, enter a number.

Step 2 From the Terminating Key drop-down menu, choose a terminating key.

Step 3 From the Cancel Key drop-down menu, choose a cancel key.

Step 4 From the Maximum Retries drop-down menu, choose a number.

Step 5 From the Initial timeout (in sec) drop-down menu, choose a number of seconds.

Step 6 From the Interdigit timeout (in sec) drop-down menu, choose a number of seconds.

Step 7 In the Flush Input Buffer field, do one of the following:

• Click the Yes radio button to cause the system to erase previously entered input before capturing new caller input.

• Click the No radio button to allow callers to type ahead and have the input saved.

Step 8 In the Clear DTMF Buffer on Retry field, do one of the following:

• Click the Yes radio button to clear the DTMF buffer before each retry.

• Click the No radio button to not clear the DTMF buffer before each retry.

Step 9 Click Apply.

Continue with “Filter” on page 105 to configure the Filter tab of the Get Digit String customizer window.

Maximum Retries Number of times a new entry can be entered after a timeout or invalid key.

After the maximum number of retries is reached, the step continues on the Timeout or Unsuccessful output branch, depending on whether the last try timed out or an invalid key was entered. On a retry because of an invalid key, a system prompt plays.

A “0” value means that no retry is allowed; in this case, the script must handle the retry scenario.

Initial timeout (in sec) Number of seconds the system waits for initial input from the caller.

Interdigit timeout (in sec) Number of seconds that the system waits for the caller to enter the next digit after receiving initial input from the caller (DTMF).

Flush Input Buffer If Yes, the system erases previously entered input before capturing caller input.

If No, the system does not erase previously entered input before capturing caller input.

Clear DTMF Buffer on Retry

If Yes, the step clears the DTMF buffer before each retry.

If No, the step does not clear the DTMF buffer before each retry.

Table 35 Get Digit String Customizer Window Fields—Input Tab (continued)

Field Description

104Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 111: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Filter

Use the Filter tab of the Get Digit String customizer window, as shown in Figure 73, to specify digits that can be accepted from the caller.

Figure 73 Get Digit String Customizer Window—Filter Tab

Table 36 describes the field of the Filter tab.

To specify the digits you want to accept from the caller, check the desired digit check boxes and click OK.

The Get Digit String customizer window closes. The name of the triggering contact and the result digit string variable appear next to the Get Digit String step icon in the Design pane of the Cisco Unity Express Script Editor.

Table 36 Get Digit String Customizer Window Fields—Filter Tab

Field Description

Digit selection box Use the Filter tab to specify the digits that you want to accept from the caller (excluding the terminating and cancel keys). If the caller enters digits that you do not choose, the system plays an error prompt for the caller and retries the Input step until the maximum numbers of retries is reached. At that time, the Unsuccessful output branch executes.

105Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 112: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Implicit ConfirmationUse the Implicit Confirmation step to confirm an action without having to ask a question.

A prompt explaining the action to be taken is played back and the system waits a configured number of seconds for input from the caller. If the caller presses any DTMF digits before the configured timeout, the confirmation is considered to have failed, and an Explicit Confirmation step should be used.

Note When any previous escalating prompt in the script enters the Implicit Confirmation step, the previous escalating prompt is reset to the first prompt in its list.

For example, when a valid string of digits is received, a prompt plays the extension that will be dialed, based on the caller’s input. The Implicit Confirmation step is configured in this example to give the caller two seconds after hearing the prompt to decline confirmation before timeout.

Under the No output branch of the Implicit Confirmation step, an If step tracks the number of times the confirmation is attempted before the script moves to a subsequent step.

If the extension played back to the caller is accurate and the caller makes no effort to stop the operation, the Yes output branch executes and a Call Redirect step attempts to connect the caller to the desired extension.

Figure 74 shows the customizer window for the Implicit Confirmation step.

Figure 74 Implicit Confirmation Customizer Window

Table 37 describes the fields of the Implicit Confirmation customizer window.

Table 37 Implicit Confirmation Fields

Field Description

Contact Contact that triggers the execution of the step.

Default is the Triggering Contact, unless another contact is specified.

Prompt Prompt played to the caller.

106Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 113: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Follow these steps to configure the Implicit Confirmation contact information:

Step 1 From the Contact drop-down menu, choose the Contact variable that triggers the execution of the step.

Step 2 From the Prompt drop-down menu, choose the prompt that is played to the caller.

Step 3 From the Timeout (in secs) drop-down menu, choose the number of seconds without a caller response before confirmation is considered successful.

The usual value is 2 seconds.

Step 4 In the Interruptible field, do one of the following:

• Click the Yes radio button to allow an external event, such as an agent becoming available, to interrupt the step.

• Click the No radio button to require the step to complete before any other process can execute.

Step 5 In the Continue on Prompt Errors field, do one of the following:

• Click the Yes radio button to instruct the step to continue with the next prompt in the list if an error occurs in a prompt.

• Click the No radio button to cause an exception to result.

Step 6 Click OK.The Implicit Confirmation customizer window closes. The name of the triggering contact appears next to the Implicit Confirmation step icon in the Design pane of the Cisco Unity Express Script Editor.

Timeout (in secs) Number of seconds without a caller response before confirmation is considered successful. (Usual value is 2 seconds.)

Interruptible If Yes, an external event (such as a caller hanging up) can interrupt the step.

If No, the step must complete before any other process can execute.

Continue on Prompt Errors If Yes, the step continues with the next prompt in the list if a prompt error occurs, or, if this prompt was the last in the list, the step waits for input from the caller.

If No, an exception results, which can then be handled in the script.

Table 37 Implicit Confirmation Fields (continued)

Field Description

107Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 114: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

MenuUse the Menu step to provide a menu from which callers can choose a series of options. The Menu step receives a single digit entered by a caller and maps this entry to a series of option output branches. The system executes the steps that you add after each of these option output branches.

Note When any previous escalating prompt in the script enters the Menu step, the previous escalating prompt is reset to the first prompt in its list.

Although the Menu step combines the functionality of a Get Digit String step and a Switch step, it allows the caller to enter only one digit.

By default, the Menu step has the following output branches:

• Output 1

• Output 2

• Output 3

• Timeout• Unsuccessful

You can add more output branches in the General tab of the Menu customizer window.

The Menu step retries for either a timeout or an invalid digit entry (a digit that is not associated with any connections). If the maximum number of retries is reached, the Menu step follows either the Timeout or Unsuccessful connection, depending on the reason for the latest failure.

The customizer window of the Menu step contains three tabs:

• General, page 108

• Prompt, page 110

• Input, page 111

General

Use the General tab of the Menu customizer window, as shown in Figure 75, to associate digits (typically entered by the caller from a telephone keypad) with an output branch label.

You can associate multiple inputs with a single output branch label, but you can associate only one output branch label with a given input.

108Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 115: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Figure 75 Menu Customizer Window—General Tab

Table 38 describes the fields of the General tab.

Follow these steps to configure General options for the Menu step:

Step 1 From the Contact drop-down menu, choose the Contact variable that triggers the execution of the step.

Step 2 In the Options list box, select the option and check the check box of the digit that will be offered to the caller for choosing this option.

Step 3 To add a new option, click within the Options list box and click Add.

The Add New Output Option Name dialog box appears, as shown in Figure 76.

Figure 76 Add New Output Option Name Dialog Box

Table 38 Menu Customizer Window Fields—General Tab

Field Description

Contact Contact that triggers the execution of the step.

Default is the Triggering Contact, unless another contact is specified.

Options One label for each possible output value.

Interruptible If Yes, an external event (such as a caller hanging up) can interrupt the step.

If No, the step must complete before any other process can execute.

109Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 116: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Step 4 In the Connection Name text field, enter a name for the option and click OK.

The Add New Output Option Name dialog box closes. The new option appears in the Options list box.

(To modify an existing option, select the option you want to modify in the Option list box, and then click Modify. The Rename Output Option dialog box appears, which contains the same field as the Add New Output Option Name dialog box and is configured in the same way.)

Step 5 In the Interruptible field, do one of the following:

• Click the Yes radio button to allow an external event, such as a caller hanging up, to interrupt the step.

• Click the No radio button to require the step to complete before any other process can execute.

Step 6 Click Apply.

Continue with “Prompt” on page 110 to configure the Prompt tab of the Menu customizer window.

Prompt

Use the Prompt tab of the Menu customizer window, as shown in Figure 77, to choose the prompt to be played back and to set the Barge In and Continue on Prompt Errors options.

Figure 77 Menu Customizer Window—Prompt Tab

110Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 117: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Table 39 describes the fields of the Prompt tab.

Follow these steps to configure the Prompt options for the Menu step:

Step 1 From the Prompt drop-down menu, choose the prompt to be played.

Step 2 In the Barge In field, do one of the following:

• Click the Yes radio button to allow the caller to interrupt the prompt.

• Click the No radio button to require the prompt to complete playback before the caller can respond.

Step 3 In the Continue on Prompt Errors field, do one of the following:

• Click the Yes radio button to instruct the step to continue with the next prompt in the list if an error occurs in a prompt.

• Click the No radio button to cause an exception to result.

Step 4 Click Apply.

Continue with “Input” on page 111 to configure the Input tab of the Menu customizer window.

Input

Use the Input tab of the Menu customizer window, as shown in Figure 78, to set the timeout setting, maximum number of retries, and Flush Input Buffer options.

Table 39 Menu Customizer Window Fields—Prompt Tab

Field Description

Prompt Prompt to be played back to caller.

Barge In If Yes, the caller can interrupt the prompt.

If No, the prompt must complete playback before the caller can respond.

Continue on Prompt Errors If Yes, the step continues with the next prompt in the list if a prompt error occurs, or, if this prompt was the last in the list, the step waits for input from the caller.

If No, an exception results, which can then be handled in the script.

111Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 118: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Figure 78 Menu Customizer Window—Input Tab

Table 40 describes the fields of the Input tab.

Table 40 Menu Customizer Window Fields—Input Tab

Property Description

Timeout Amount of time the system waits for input from the caller. When this timer expires, the system either replays the prompt or plays the system prompt that asks if the caller is still there.

Maximum Retries Number of times the entry can be restarted after a timeout or invalid input response. After the maximum number of retries is reached, the Menu step follows the Timeout or Unsuccessful output branches depending on whether the last try timed out or an invalid input response was entered.

A “0” value means that no retry is allowed; in this case, the script must handle the retry scenario.

Flush Input Buffer If Yes, the system erases previously entered input before capturing caller input.

If No, the system does not erase previously entered input before capturing caller input.

112Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 119: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Follow these steps to configure the Input fields of the Menu customizer window:

Step 1 In the Timeout field, do one of the following:

• Enter a value.

• From the Timeout drop-down menu, choose the variable that stores the timeout value.

• Click the Expression Editor (...) button and enter a number.

Step 2 From the Maximum Retries drop-down menu, choose a number.

Step 3 In the Flush Input Buffer field, do one of the following:

• Click the Yes radio button to cause the system to erase previously entered input before capturing new caller input.

• Click the No radio button to allow callers to type ahead and to save the input.

Step 4 Click OK.

The Menu customizer window closes. The name of the triggering contact and the name of the prompt variable appear in the Design pane of the Cisco Unity Express Script Editor.

Name To UserThe Name To User step is typically used to prompt a caller for the name of the person being called (using DTMF), and then to compare the name entered by the caller with names stored in a directory. The Name To User step is often used in a script to automatically transfer a caller to the extension of the person being called.

Another useful function of the Name To User step is to assign a value to a variable that can later be queried using the Get User Info step to retrieve information such as the extension, e-mail address, and spoken name of the user selected by the caller.

Note When any previous escalating prompt in the script enters the Name To User step, the previous escalating prompt is reset to the first prompt in its list.

The Name To User step receives DTMF input from a caller, using the following numeric keypad mapping:

• 2 = ABC

• 3 = DEF

• 4 = GHI

• 5 = JKL

• 6 = MNO

• 7 = PQRS

• 8 = TUV

• 9 = WXYZ

Using the information from this step, the script creates a subsequent prompt that plays the prerecorded name of the user selected by the caller if it exists. If no recording exists, the script will spell the user’s name.

113Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 120: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Note The Name To User step is limited to spelling back names with ASCII-only characters, which may be a limitation under some international conditions.

The Name To User step produces the following output branches:

• Successful—A successful match is made between the input from the caller and a name in the directory.

• Timeout—The step has reached the maximum number of retries (as configured in the customizer window) without receiving input from the caller.

• Unsuccessful—The input from the caller does not match a name in the directory.

• Operator—The operator’s extension was entered.

Note The Operator output branch appears under the Name To User step in the script only if Yes is selected for the Operator option in the General tab of the Name To User customizer window. (See Figure 79.)

Note If the Name To User step matches the caller input with a single user in the Lightweight Access Directory Protocol (LDAP) directory, that result will be returned immediately without requiring the caller to confirm the selection.

The customizer window of the Name To User step contains three tabs:

• General, page 114

• Prompt, page 116

• Input, page 118

General

Use the General tab, as shown in Figure 79, to specify the Result User variable and to set other properties for the Name To User step.

114Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 121: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Figure 79 Name To User Customizer Window—General Tab

Table 41 describes the fields of the General tab.

Follow these steps to configure the General fields of the Name To User step:

Step 1 From the Contact drop-down menu, choose the variable that triggers the execution of the step.

Step 2 From the Result User drop-down menu, choose the variable that stores the user object representing the user selected.

Step 3 From the Announce When Number of Matches Less Than drop-down menu, choose the number of matches that determine which prompt is played back to the caller.

Step 4 In the Operator field, do one of the following:

Table 41 Name To User Customizer Window Fields—General Tab

Field Description

Contact Contact that triggers the execution of the step.

Default is the Triggering Contact, unless another contact is specified.

Result User Variable that stores a user object representing the user selected by the caller.

Announce When Number of Matches Less Than

If the number of matches is less than this value, the step prompts the caller to choose the correct entry from the list of matches. If the number of matches is greater than or equal to this value, the step prompts the caller to enter additional letters to reduce the number of matches.

Operator If Yes, the caller has the option to connect to an operator by pressing “0”.

If No, the caller is not offered the option to connect to an operator.

Interruptible If Yes, an external event (such as a caller hanging up) can interrupt the step.

If No, the step must complete before any other process can execute.

115Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 122: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

• Click the Yes radio button to provide the option to connect to an operator.

• Click the No radio button to disable this option.

Step 5 In the Interruptible field, do one of the following:

• Click the Yes radio button to allow an external event to interrupt the step.

• Click the No radio button to require the step to complete before any other process can execute.

Step 6 Click Apply.

Continue with “Prompt” on page 116 to configure the Prompt tab of the Name To User customizer window.

Prompt

Use the Prompt tab, as shown inFigure 80, to specify prompts to be played back by the Name To User step and to set the Barge In and Continue on Prompt Errors options.

Figure 80 Name To User Customizer Window—Prompt Tab

116Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 123: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Table 42 describes the fields of the Prompt tab.

Follow these step to configure the Prompt fields of the Name To User customizer window:

Step 1 From the Prompt drop-down menu, choose the prompt to be played.

If you choose Customized Prompt, the List of Prompts text field becomes active. In the List of Prompts text field, do one of the following:

• Enter a value.

• From the List of Prompts drop-down menu, choose a prompt to be played.

• Click the Expression Editor (...) button and enter an expression that specifies the prompt to be played.

Step 2 In the Barge In field, do one of the following:

• Click the Yes radio button to allow the caller to interrupt the prompt.

• Click the No radio button to require the prompt to complete playback before the caller can respond.

Step 3 In the Continue on Prompt Errors field, do one of the following:

• Click the Yes radio button to instruct the step to continue with the next prompt in the list if an error occurs in a prompt.

• Click the No radio button to cause an exception to result.

Step 4 Click Apply.

Continue with “Input” on page 118 to configure the Input tab of the Name To User customizer window.

Table 42 Name To User Customizer Window Fields—Prompt Tab

Field Description

Prompt Specifies the prompt to be played back to the caller.

Options from the drop-down menu:

• Default prompt— System prompt bundled with the Cisco Unity Express software: “Spell the last name followed by the first name.”

• Customized prompt—Prompt created by the script designer.

• No prompt—No prompt is played.

Barge In If Yes, the caller can interrupt the prompt.

If No, the prompt must complete playback before the caller can respond.

Continue on Prompt Errors

If Yes, the step continues with the next prompt in the list if a prompt error occurs, or, if this prompt was the last in the list, the step waits for input from the caller.

If No, an exception results, which can then be handled in the script.

117Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 124: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Input

Use the Input tab, as shown in Figure 81, to configure various input properties for the Name To User step.

Figure 81 Name To User Customizer Window—Input Tab

Table 43 describes the fields of the Input tab.

Table 43 Name To User Customizer Window Fields—Input Tab

Property Description

Input Length Minimum number of digits required before automatically checking for a caller match.

Terminating Key Key used to indicate the end of caller input.

Cancel Key Key the caller presses to start over.

The Cancel key works only until the number of maximum retries is reached.

Maximum Retries Number of times the step attempts to receive valid input. A “0” value means that no retry is allowed; in this case, the script must handle the retry scenario.

Initial Timeout (in sec) Number of seconds that the system waits for initial input from the caller.

Interdigit Timeout (in sec) Number of seconds that the system waits for the caller to enter the next digit, after receiving initial input from the caller.

Flush Input Buffer If Yes, the system erases previously entered input before capturing caller input.

If No, the system does not erase previously entered input before capturing caller input.

118Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 125: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Follow these steps to configure the Input properties Name To User customizer window:

Step 1 In the Input Length text field, enter a number of digits.

Step 2 From the Terminating Key drop-down menu, choose a terminating key.

Step 3 From the Cancel Key drop-down menu, choose a cancel key.

Step 4 From the Maximum Retries drop-down menu, choose a number.

Step 5 From the Initial Timeout (in sec) drop-down menu, choose a number of seconds.

Step 6 From the Interdigit Timeout (in sec) drop-down menu, choose a number of seconds.

Step 7 In the Flush Input Buffer field, do one of the following:

• Click the Yes radio button to cause the system to erase previously entered input before capturing new caller input.

• Click the No radio button to allow callers to type ahead and have the input saved.

Step 8 Click OK.

The Name To User customizer window closes. The name of the triggering contact and the name of the result user variable appear in the Design pane of the Cisco Unity Express Script Editor.

Play PromptUse the Play Prompt step to play back specified prompts to the caller.

Note When any previous escalating prompt in the script enters the Play Prompt step, the previous escalating prompt is reset to the first prompt in its list.

The customizer window of the Play Prompt step contains three tabs:

• General, page 120

• Prompt, page 120

• Input, page 121

119Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 126: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

General

Use the General tab, as shown in Figure 82, to identify the contact and to set the Interruptible option.

Figure 82 Play Prompt Customizer Window—General Tab

Table 44 describes the fields of the General tab.

Follow these steps to configure the General contact fields of the Play Prompt step:

Step 1 From the Contact drop-down menu, choose the Contact variable that triggers the execution of the step.

Step 2 In the Interruptible field, do one of the following:

• Click the Yes radio button to allow an external event to interrupt the step.

• Click the No radio button to require the step to complete before any other process can execute.

Step 3 Click Apply.

Continue with “Prompt” on page 120 to configure the Prompt tab of the Play Prompt customizer window.

Prompt

Use the Prompt tab of the Play Prompt customizer window, as shown in Figure 83, to specify the prompt to be played back, and to set the Barge In and Continue on Prompt Errors options.

Table 44 Play Prompt Customizer Window Fields—General Tab

Field Description

Contact Contact that triggers the execution of the step.

Default is Triggering Contact, unless another contact is specified.

Interruptible If Yes, an external event (such as a caller hanging up) can interrupt the step.

If No, the step must complete before any other process can execute.

120Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 127: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Figure 83 Play Prompt Customizer Window—Prompt Tab

Table 45 describes the fields of the Prompt tab.

Follow these steps to configure the Prompt properties of the Play Prompt customizer window:

Step 1 From the Prompt drop-down menu, choose the prompt to be played.

Step 2 In the Barge In field, do one of the following:

• Click the Yes radio button to allow the caller to interrupt the prompt.

• Click the No radio button to require the prompt to complete playback before the caller can respond.

Step 3 In the Continue on Prompt Errors field, do one of the following:

• Click the Yes radio button to instruct the step to continue with the next prompt in the list if an error occurs in a prompt.

• Click the No radio button to cause an exception to result.

Step 4 Click Apply.

Continue with “Input” on page 121 to configure the Input tab of the Play Prompt customizer window.

Input

Use the Input tab of the Play Prompt step, as shown in Figure 84, to specify whether or not to erase previously entered input before capturing caller input.

Table 45 Play Prompt Customizer Window Fields—Prompt Tab

Field Description

Prompt Specifies which prompt is to be played.

Barge In If Yes, the caller can interrupt the prompt.

If No, the prompt must complete playback before the caller can respond.

Continue on Prompt Errors

If Yes, the step continues with the next prompt in the list if a prompt error occurs, or, if this prompt was the last in the list, the step waits for input from the caller.

If No, an exception results, which can then be handled in the script.

121Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 128: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationMedia Steps

Figure 84 Play Prompt Customizer Window—Input Tab

Table 46 describes the field of the Input tab

Follow these steps to configure the Input tab of the Play Prompt customizer window:

Step 1 In the Flush Input Buffer field, do one of the following:

• Click the Yes radio button to cause the system to erase previously entered input before capturing new caller input,.

• Click the No radio button to allow callers to type ahead and have the input saved.

Step 2 Click OK.

The Play Prompt customizer window closes. The name of the triggering contact and the name of the prompt variable appears in the Design pane of the Cisco Unity Express Script Editor.

Table 46 Play Prompt Customer Window Field—Input Tab

Field Description

Flush Input Buffer If Yes, the system erases previously entered input before capturing caller input.

If No, the system does not erase previously entered input before capturing caller input.

122Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 129: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationUser Steps

User StepsThe steps in the User palette of the Cisco Unity Express Script Editor provide designers with a way to retrieve user attributes.

The User palette contains the Get User Info step, as shown in Figure 85.

Figure 85 User Palette Steps

Get User InfoUse the Get User Info step, as shown in Figure 86, to make user attributes available to the script.

Figure 86 Get User Info Customizer Window

Table 47 describes the fields of the Get User Info customizer window.

Table 48 describes the attributes that can be retrieved by using the Get User Info step.

Table 47 Get User Info Fields

Field Description

User User object stored in a script variable previously acquired (for example, by using a step such as the Name To User step).

Attribute/Variable Attributes and associated variables of user.

123Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 130: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationUser Steps

Follow these steps to configure the fields in the Get User Info customizer window:

Step 1 From the User drop-down menu, choose the User variable that identifies the user for whom you want to get information.

Step 2 In the Attribute/Variable list box, choose the attributes that represent the information you want to get for the user and click Set.The Get User dialog box appears, as shown in Figure 87.

Figure 87 Get User Dialog Box

Step 3 From the Select Variable drop-down menu, choose the variable that will store the information and click OK.

The Get User dialog box closes.

Step 4 Click OK.

The Get User Info customizer window closes,. The name of the user variable appears next to the Get User Info step icon in the Design pane of the Cisco Unity Express Script Editor.

Table 48 Get User Info Attributes

Attribute Description

Full Name String for the full name of the user as configured in the Cisco Unity Express GUI administration interface.

Last Name String for the last name of the user.

First Name String for the first name of the user.

Extension String representing the primary extension selected in the Cisco Unity Express GUI administration web interface.

E-mail String representing the e-mail ID for this user.

The user ID field is currently returned.

User ID String for the user ID configured for this user.

Spoken Name Document object representing the recorded name of the user.

124Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 131: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationPrompt Steps

Prompt StepsThe steps in the Prompt palette of the Cisco Unity Express Script Editor provide script designers with a way to create intelligent prompts.

The Prompt palette contains the following steps:

• Create Conditional Prompt, page 125

• Create Container Prompt, page 127

• Create Generated Prompt, page 132

Figure 88 shows the steps in the Prompt palette as they appear in the Palette pane of the Cisco Unity Express Script Editor.

Figure 88 Prompt Palette Steps

Create Conditional PromptUse the Create Conditional Prompt step to create a prompt based on the result of evaluating a specified Boolean expression.

The prompts passed are evaluated immediately as prompt objects, but they are not resolved until the time of playback. This means that if the values of any variables entered as part of the expression change between the time this prompt was created and the time the prompt is played back, then the new value of the variable is used to evaluate the conditional expression.

125Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 132: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationPrompt Steps

Figure 89 shows the customizer window for the Create Conditional Prompt step.

Figure 89 Create Conditional Prompt Customizer Window

Table 49 describes the fields of the Create Conditional Prompt customizer window.

Follow these steps to configure a conditional prompt in the Create Conditional Prompt customizer window:

Step 1 From the Output Prompt drop-down menu, choose the variable that stores the prompt that results from this step.

Step 2 In the Condition Expression field, do one of the following:

• Enter a value.

• From the Condition Expression drop-down menu, choose the variable that stores the expression to be used to evaluate the condition.

• Click the Expression Editor (...) button and enter the expression to be used to evaluate the condition.

Step 3 In the Prompt If True field, do one of the following:

• Enter a value.

• From the Prompt If True drop-down menu, choose the variable that stores the prompt to be used if the expression evaluates to True.

Table 49 Create Conditional Prompt Fields

Field Description

Output Prompt Variable that stores the prompt that results from the Create Conditional Prompt step.

Condition Expression Boolean expression the script uses to decide which one of the two prompts to play back.

Prompt If True Prompt to be used if the expression is True.

Prompt If False Prompt to be used if the expression is False.

126Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 133: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationPrompt Steps

• Click the Expression Editor (...) button and enter an expression that specifies the prompt to be used if the expression evaluates to True.

Step 4 In the Prompt If False field, do one of the following:

• Enter a value.

• From the Prompt If False drop-down menu, choose the variable that stores the prompt to be used if the expression evaluates to False.

• Click the Expression Editor (...) button and enter an expression that specifies the prompt to be used if the expression evaluates to False.

Step 5 Click OK.

The Create Conditional Prompt customizer window closes. The name of the conditional prompt appears next to the Create Conditional Prompt step icon in the Design pane of the Cisco Unity Express Script Editor.

Create Container PromptUse the Create Container Prompt step to combine multiple prompts into one larger prompt. You can create three types of container prompts:

• Concatenated Prompt—Contains a list of prompt phrases that are played back in a specific sequence to create a single prompt.

For example, for a prompt of “Your checking account balance is one hundred and sixty-eight dollars”, you can create a concatenated prompt that (1) begins with a user prompt “Your”; (2) continues with a conditional prompt that specifies a condition such as <accountType == “check”>, and plays “checking account” if the condition is True or “savings account” if the condition is False; and (3) ends with the balance amount.

• Escalating Prompt—Provides an initial question prompt with a minimal amount of information at first, and then adds additional prompt phrases if no response is given.

For example, for a prompt that provides the caller with more information as needed, you can create an escalating prompt that, when passed to a media step such as the Get Digit String step, begins by playing the first concise prompt inside the escalating prompt, such as “What is your account number?”

If the step fails to collect the account number due to the caller’s failure to provide it, a second prompt plays, such as “Please provide your account number by entering the account number using your touch tone phone followed by the pound key.”

• Random Prompt—Creates a prompt that plays back one phrase from the supplied list in a random order; for example, the system could play back a series of promotional or informational messages in a random order while a caller is waiting for an available agent.

Figure 90 shows the customizer window for the Create Container Prompt step.

127Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 134: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationPrompt Steps

Figure 90 Create Container Prompt Customizer Window

Table 50 describes the properties of the Create Container Prompt customizer window.

Creating a Concatenated Prompt

Follow these steps to configure the Create Container Prompt customizer window to create a concatenated prompt:

Step 1 From the Output Prompt drop-down menu, choose the variable that stores the container prompt that results from this step.

Step 2 From the Prompt Container drop-down menu, choose Concatenated.

Step 3 To add an individual prompt to be concatenated, click Add.

The Add Prompt dialog box appears, as shown in Figure 91.

Table 50 Create Container Prompt Fields

Property Description

Output Prompt Script variable that holds the combined prompt generated by the Create Container Prompt step.

Prompt Container Type Concatenated, escalating, or random prompt.

Prompts List of prompts to be combined into the container prompt.

Override Language (optional)

This option is for future use.

128Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 135: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationPrompt Steps

Figure 91 Add Prompt Dialog Box

Step 4 In the Prompt field, do one of the following:

• Enter a value.

• From the Prompt drop-down menu, choose the variable that stores the prompt you want to add.

• Click the Expression Editor (...) button and enter an expression that specifies the prompt you want to add.

Step 5 Click OK.The Add Prompt dialog box closes. The name of the prompt variable appears in the Prompts list box in the Create Container Prompt customizer window.

Step 6 Repeat Step 3 to Step 5 as needed to add prompts until all the prompts that you want to concatenate appear in the Prompts list box.

Step 7 To determine the order of playback of the prompts in the concatenated prompt, select an individual prompt and click the Up button to move it up a level or the Down button to move it down a level.

Step 8 Repeat Step 7 as needed until the prompts are listed in the playback order you want.

(To modify a prompt that is contained in the concatenated prompt, select the prompt in the Prompts list box and click Modify. The Modify Prompt dialog box appears, which contains the same field as the Add Prompt dialog box and is configured in the same way.)

Step 9 Click OK.

The Create Container Prompt customizer window closes. The name of the concatenated prompt appears next to the Create Container Prompt step icon in the Design pane of the Cisco Unity Express Script Editor.

Creating an Escalating Prompt

Follow these steps to use the Create Container Prompt customizer window to create an escalating prompt:

Step 1 From the Output Prompt drop-down menu, choose the variable that stores the container prompt that results from this step.

Step 2 From the Prompt Container drop-down menu, choose Escalating.

Step 3 To add an individual prompt to be included in the escalating prompt, click Add.

The Add Prompt dialog box appears, as shown in Figure 91.

Step 4 In the Prompt field, do one of the following:

• Enter a value.

129Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 136: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationPrompt Steps

• From the Prompt drop-down menu, choose the variable that stores the prompt you want to add.

• Click the Expression Editor (...) button and enter an expression that specifies the prompt you want to add.

Step 5 Click OK.

The Add Prompt dialog box closes. The name of the prompt variable appears in the Prompts list of the Create Container Prompt customizer window.

Step 6 Repeat Step 3 to Step 5 as needed to add prompts until all the prompts that you want to include in the escalating prompt appear in the Prompts list box.

Step 7 To determine the order of playback of the prompts in the escalating prompt, select an individual prompt and click Up to move it up a level or click Down to move it down a level.

Step 8 Repeat Step 7 as needed until the prompts in the escalating prompt are listed in the playback order you want.

(To modify a prompt that is contained in the escalating prompt, select the prompt in the Prompts list box, and then click Modify. The Modify Prompt dialog box appears, which contains the same property as the Add Prompt dialog box and is configured in the same way.)

Step 9 Click OK.

The Create Container Prompt customizer window closes. The name of the escalating prompt appears next to the Create Container Prompt step icon in the Design pane of the Cisco Unity Express Script Editor.

Creating a Random Prompt

Follow these steps to use the Create Container Prompt customizer window to create a random prompt:

Step 1 From the Output Prompt drop-down menu, choose the variable that stores the container prompt that results from this step.

Step 2 From the Prompt Container drop-down menu, choose Random.

130Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 137: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationPrompt Steps

When you choose the random prompt, Prompt and Weight columns appear in the Prompts list box, as shown in Figure 92.

Figure 92 Create Container Prompt Customizer Window—Random Prompt

Step 3 To add an individual prompt to be included in a random sequence, click Add.

The Add Prompt dialog box appears, as shown in Figure 93.

Figure 93 Add Prompt Dialog Box

Step 4 In the Prompt field, do one of the following:

• Enter a value.

• From the Prompt drop-down menu, choose the variable that stores the prompt you want to add.

• Click the Expression Editor (...) button and enter an expression that specifies the prompt you want to add.

Step 5 From the Weight drop-down menu, choose a number to represent the priority of the prompt in the sequence.

131Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 138: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationPrompt Steps

Step 6 Click OK.

The Add Prompt dialog box closes. The name and weight of the prompt variable appears in the Prompts list of the Create Container Prompt customizer window.

Step 7 Repeat Step 3 to Step 6 as needed to add prompts until all the prompts that you want to play randomly appear in the Prompts list box.

Step 8 To make an individual prompt play more or less often than other prompts, select it and click Up to move it up a level in priority or click Down to move it down a level in priority.

Step 9 Repeat Step 8 as needed until the prompts in the random prompt are listed in the priority order you want.

Note To modify a prompt that is contained in the random prompt, select the prompt in the Prompts list box and click Modify. The Modify Prompt dialog box appears, which contains the same property as the Add Prompt dialog box and is configured in the same way.

Step 10 Click OK.

The Create Container Prompt customizer window closes. The name of the random prompt appears next to the Create Container Prompt step icon in the Design pane of the Cisco Unity Express Script Editor.

Create Generated PromptUse the Create Generated Prompt step to create prompt phrases from intermediate variables whose values are dynamically determined based on run-time script information.

For example, you can create the prompt phrase of “account balance is one hundred and sixty-eight dollars” by querying the database of account balances at a particular point in the script and using a currency generator to generate the number.

Note The Create Generated Prompt step accepts only the 4-digit year format. A 3-digit date format is not accepted.

Note If the Create Generated Prompt step encounters an invalid time, it outputs 4:00 P.M. Specify a valid time between 0000 and 2400.

Figure 94 shows the customizer window for the Create Generated Prompt step.

132Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 139: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationPrompt Steps

Figure 94 Create Generated Prompt Customizer Window

Table 51 describes the fields of the Create Generated Prompt customizer window.

Follow these steps to use the Create Generated Prompt customizer window to generate prompt phrases:

Step 1 From the Output Prompt drop-down menu, choose the variable that stores the prompt that results from this step.

Step 2 From the Generator drop-down menu, choose the generator type for the prompt.

Step 3 In the Constructor Type drop-down menu, choose the constructor type for the prompt.

When you choose the constructor type, the constructors automatically appear in the Argument column of the Argument list box.

Table 51 Create Generated Prompt Fields

Field Description

Output Prompt Prompt script variable in which the prompt object resulting from this step is stored.

Generator Type Type of information generated.

(See the following sections for descriptions of the 12 supported generator types.)

Constructor Type Constructor type that corresponds to the generator type.

Argument Information Arguments and their values.

Override Language (optional) This option is for future use.

133Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 140: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationPrompt Steps

Step 4 To define a value for an item in the Argument Information list box, select and then double-click the item.

The Define Character dialog box appears, as shown in Figure 95.

Figure 95 Define Character Dialog Box

Step 5 In the Enter Variable Expression field, do one of the following:

• Enter a value.

• From the Enter Variable Expression drop-down menu, choose the variable that holds the value for the argument.

• Click the Expression Editor (...) button and enter any valid expression.

Step 6 Click OK.

The Define Character dialog box closes. The name of the argument and its value appear in the Argument Information list box of the Create Generated Prompt customizer window.

Step 7 Repeat Step 3 to Step 6 as needed to define each argument in the Argument Information list box.

You must define all arguments listed with some value or define them as null; you cannot leave them blank.

Step 8 Click OK.

The Create Generated Prompt customizer window closes. The name of the generated prompt appears next to the Create Generated Prompt step icon in the Design pane of the Cisco Unity Express Script Editor.

Generator Types

The Create Generated Prompt step supports the following generator types:

• Number Generator, page 135

• Character Generator, page 135

• Spelling Generator, page 135

• Date Generator, page 136

• Time Generator, page 136

• Ordinal Generator, page 137

• Currency Generator, page 137

134Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 141: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationPrompt Steps

• Country Generator, page 138

• Telephone Number Generator, page 138

• Credit Card Number Generator, page 138

• Credit Card Expiration Date Generator, page 138

Number Generator

The Number generator type supports the following constructors:

• (Number number)

• (String number)

• (Number number, Number gender)

• (String number, Number gender)

• (Number number, Boolean play.full)

• (String number, Boolean play.full)

• (Number number, Boolean play.full, Number gender)

• (Number number, Boolean play.full, Number gender)

The three parameters are:

• Number—Any Number object (for example; Integer, Long, Float, Double, BigInteger, BigDecimal) or String object defining the number to be played back.

• Gender—When the number must be played back in a specific gender context, this parameter specifies the context. Valid values are 0 for neutral, 1 for male, and 2 for female.

• Play.full—Plays the number in full format if this optional Boolean argument is true or omitted. (For example, “709” is played as “Seven Hundred and Nine.”) Otherwise, the number plays in brief format. (For example, “709” is played as “Seven Oh Nine.”)

Note If the number is played in full format, the maximum number supported is +/- 999,999,999,999.

Character Generator

The Character generator type supports the following constructors:

• (Character character)

• Character character, Boolean play_all)

The two parameters are:

• Character—The character object to be played back.

• Play_all—Optional Boolean flag indicating whether to play spaces, punctuation, and other special characters normally instead of playing them as silence (ranging from 250ms to 500ms).

Spelling Generator

The Spelling generator type supports the following constructors:

• (String string)

• (String string, Boolean punctuation)

135Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 142: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationPrompt Steps

• (Object object)

• (Object object, Boolean punctuation)

The three parameters are:

• String—String object to be played back.

• Object—Object for which the string representation returned by the String.valueOf() method should be spelled out.

• Punctuation—An optional Boolean flag indicating whether to play spaces, punctuations, and special characters normally or as silences.

Note Punctuation default behavior in the Spelling generator is different from Play_all default behavior in the Character generator.

Date Generator

The Date generator type supports the following constructors:

• (Date date)

• (Date date, Boolean skip.current.year)

• (Number year)

• (Number year, Number month)

• (Number year, Number month, Boolean skip.current.year)

• (Number year, Number month, Number day)

• (Number year, Number month, Number day, Boolean skip.current.year)

The five parameters are:

• Date—Any Date object from which to extract the date to be played back.

• Skip.current.year—If set to true, the year does not play back if it is the same as the current year.

• Year—The year of the date to be played back. This year must be specified in full (for example, 2004).

Note The system plays any number given, so the caller is responsible for ensuring that the specified year is valid.

• Month—The month of the date to be played back. Valid values range from 1 to 12, where 1 represents January and 12 represents December.

• Day—The day of the date to be played back. Valid values range from 1 to 31 and are validated at run time based on the specified month and year.

Time Generator

The Time generator type supports the following constructors:

• (Time)

• (Hours, Minutes)

The three parameters are:

136Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 143: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationPrompt Steps

• Time—Any Date or Time object representing the time to be played back. Time can also be defined as a Number object (Integer, Float, Long, and so forth) that specifies the time to be played, from 0 to 2359. (For example, a number such as 1234 is played as “12 34 PM.”) If the value specified is greater than 2359, then Time is considered to be the number of milliseconds starting from the standard base time known as “the epoch,” which is January 1, 1970, 00:00:00 GMT.

• Hours—Number object that specifies the hour to be played.

• Minutes—Number object that specifies the minutes to be played.

Ordinal Generator

The Ordinal generator type supports the following constructors:

• (Number number)

• (String number)

• (Number number, Number gender)

• (String number, Number gender)

The two parameters are:

• Number—Any Number or String object defining the ordinal number to be played back. The supported range is from 1 to 999999.

• Gender—When the ordinal number must be played back in a specific gender context, this parameter specifies this context. Valid values are 0 for neutral, 1 for male, and 2 for female.

Note If the language associated with the call does not behave differently based on gender, then this parameter is ignored.

Currency Generator

The Currency generator type supports the following constructors:

• (Currency designator)

• (Number amount)

• (Number amount, Currency currency)

• (Number dollar, Number cent)

• (Number dollar, Number cent, Currency currency)

• (Number amount, Boolean colloquial)

• (Number amount, Boolean colloquial, Currency currency)

• (Number dollar, Number cent, Boolean colloquial, Currency currency)

The six parameters are:

• Designator—The designator of a currency to play back. (For example, “USD” is played back as “U.S. Dollar.”)

• Amount—The currency amount to be played back in the system configured default currency or in the specified currency.

• Dollar—Number object representing the amount of currency unit to be played. Only the integer part of the number is played. The fractional part, if any, is ignored.

137Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 144: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationPrompt Steps

• Cent—Number object representing the currency subdivision to be played. Only the integer part of the number is played. The fractional part, if any, is ignored.

Note If the number specified exceeds the maximum value allowed for the subdivisions, the excess is added properly to the number of currency unit. For example, specifying “5 dollars and 233” cents results in “7 dollars and 33 cents.”

• Colloquial—An optional Boolean flag, which specifies whether to use colloquial currencies’ representations (for example, “Dollars” instead of “US Dollars”). If omitted, the currency amount is played in colloquial format.

• Currency—The currency in which the amount should be played back. If not specified, the system default configured currency is played back.

Country Generator

The Country generator type supports only one constructor: (Language language). The parameter “language” is a Language object from which to get the language to be played back. (For example, en_US is played back as “United States English.”)

Telephone Number Generator

The Telephone Number generator type supports only one constructor: (String number). The parameter “number” is a String object specifying the telephone number to be played out as a sequence of digits.

The character is replaced with 250 ms of silence if the string contains any of the following characters: “ - ( ) . Otherwise, the string is automatically formatted.

Automatic formatting of the string inserts 250 ms of silence between sections of digits. These sections follow the following rule: “XXX-XXX-XXX-XXXX” unless there are exactly five digits in the string, in which case the string is considered to be a single section of five digits.

An “x” character is played back as “Extension.” DTMF digits (“ABCD0123456789#*”) are played back normally.

A string of the form “*xx” where x is a DTMF digit (“0123456789”) is played back as “star xx” (for example,“*53” is played back as “star fifty-three”).

Credit Card Number Generator

The Credit Card Number generator type supports only one constructor: (String number). The parameter “number” is a String object specifying the credit card number to be played out as a sequence of digits.

If the specified credit card number includes “-”, then it is played as is, replacing the “-” character with 250 ms of silence; otherwise the number is automatically separated into sections of four digits and played back with 250 ms of silence inserted between sections.

Credit Card Expiration Date Generator

The Credit Card Expiration Date generator type supports the following constructors:

• (Number year, Number month, Number day)

• (Number year, Number month)

138Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 145: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationPrompt Steps

The parameters are identical to the following Generated Date constructors:

• If day is 0 or omitted—GeneratedDate (year, month, true)

• All other cases—GeneratedDate (year, month, day, true)

139Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 146: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Script Step Reference InformationPrompt Steps

140Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 147: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

G L O S S A R Y

^

A

AA Automated Attendant—The Cisco Unity Express software application that provides messages and prompts that guide callers to appropriate extensions.

C

CCM Cisco CallManger

CLI Command line interface

CME Cisco CallManager Express

CTI Computer telephony integration

D

DNS Domain Name Server

F

FTP File Transfer Protocol

G

GMS Greeting management system—The software for recording auto attendant prompts and greetings. The PMS is available from the telephone user interface to users who have administrator or prompt manager privileges.

GUI Graphical user interface

141Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 148: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

I

Init Wizard Initialization wizard—A web-based GUI software tool that runs automatically when the Cisco Unity Express software is loaded. The Init Wizard assists with configuring the Cisco Unity Express software applications.

IP Internet Protocol

ITS Cisco IOS Telephony Services—The earlier version of Cisco CallManager Express (CME).

J

JTAPI Java Telephony Application Programming Interface

JTAPI user A special type of user created on the Cisco CallManager application. This user is a placeholder for pairings of CTI ports with route points.

M

MGCP Media Gateway Control Protocol

MWI Message Waiting Indicator—The light on a telephone that turns on when a new voice message is stored in the telephone user’s voice mailbox.

N

NM Network module—The hardware component that stores the Cisco Unity Express application software.

NTP Network Time Protocol

P

R

route point A telephone number or extension on the Cisco CallManager application that is associated with a CTI port. When a call comes in to the route point, the call is routed through the CTI port to an appropriate endpoint. This is similar to a trigger on Cisco Unity Express.

142Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 149: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

S

SIP Session Initiation Protocol

T

TAC Technical Assistance Center

trigger A telephone number or extension that is associated with a Cisco Unity Express application. When a call comes in on the trigger number, Cisco Unity Express activates the associated application.

TUI Telephone user interface—The set of prompts that guide the telephone user who has an assigned voice mailbox in sending, retrieving, and creating voice messages and greetings.

V

VM Voice Mail—The Cisco Unity Express software application that creates and maintains voice message mailboxes.

143Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 150: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

144Cisco Unity Express Script Editor Installation and Configuration Guide

Cisco Unity Express Release 1.1.2/2.0

Page 151: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Cisco Unity Express Script Editor Cisco Unity Express Release 1.1.2/2.0

I N D E X

A

aa_sample1.aef file 41

About option in Help menu 8

acceptable digits, specifying 105

Accept step 86

accessing call-specific information 95

adding connection output branch 74

adding new connection 84

adding steps to a script 10

adding variables or expressions to map 73

allowed operators in expressions 23

Annotate step 70

associating days with connection output branch 74

B

Barge In option 97

BigDecimal expressions 22

BigDecimal variables 16

BigInteger expressions 22

BigInteger variables 16

Boolean expressions 20

Boolean variables 14

built-in variable data types

basic 14

button

Expressions Editor 19

C

Call Contact palette 90

steps 90

calling a subflow 71

Call Redirect step 91

Call Redirect step, using 65

Call Subflow step 71

General tab 71

Parameter Mapping tab 72

changing the order of steps 10

Character expressions 20

Character generator type 135

Character variables 14

Cisco IP Auto-Attendant 42

Close option, in File menu 6

configuring flush input buffer property

Play Prompt step 122

configuring input properties

Get Digit String step 104

Menu step 113

Name To User step 119

configuring prompt properties

Get Digit String step 102

Menu step 111

Name To User step 117

Play Prompt step 121

contact, definition 85

contact information, modifying 89

Contact palette 85

steps 86

contact trigger

Explicit Confirmation 97

Get Digit String 101

Implicit Confirmation step 107

Contact variable 17

Continue On Prompt Errors option 24, 97

IN-145Installation and Configuration Guide

Page 152: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Index

Country generator type 138

Create Conditional Prompt step 125

Create Conditional Prompt step, using 45

Create Container Prompt step 127

Create Generated Prompt step 132

Create Generated Prompt step, using 52

creating a script 9

creating prompts

concatenated 128

conditional 126

escalating 129

random 130

creating script logic for a case 83

Credit Card Expiration Date generator type 138

Credit Card Number generator type 138

Currency generator type 137

customizer window 11

properties 11

D

Date expressions 22

Date generator type 136

Date variables 15

Day of Week step 73

Debug pane 18

Decrement step 75

default scripts 13

overview 26

defining variables 13

delaying script processing 76

Delay step 75

Design window 9

displaying step properties 11

Double expressions 23

Double variables 16

IN-146Cisco Unity Express Script Editor Installation and Configuration Gu

E

Edit Variable window 13

ending an application 90

ending a script 10

End step 76

Error 25

error handling

On Exception Clear 25

On Exception Goto 25

registering a handler 25

errors

continue on prompt option 24

exceptions 25

output branches 25

validation 18

exceptions, errors 25

Explicit Confirmation

Interruptible option 96

Explicit Confirmation step 96

General tab 96

Input tab 99

Prompts tab 97

specifying contact trigger 97

Explicit Confirmation step, using 61

exporting variables 16

Expression Editor button 19

expressions

allowed operators 23

BigDecimal 22

BigInteger 22

Boolean 20

Character 20

Date 22

Double 23

expession panel 19

Float 21

Integer 21

Long 23

ideCisco Unity Express Release 1.1.2/2.0

Page 153: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Index

operators 23

overview 19

String 21

Time 22

F

File menu options

Close 6

New 6

Open 6

Print 6

Properties 6

Save 6

Save As 6

Float expressions 21

Float variables 14

Flush Input Buffer field 122

G

General palette 69

steps 70

generating prompt phrases 133

generator type

Character 135

Country 138

Credit Card Expiration Date 138

Credit Card Number 138

Currency 137

Date 136

Number 135

Ordinal 137

Spelling 135

Telephone Number 138

Time 136

Get Call Contact Info step 93

Get Contact Info step 87

Cisco UniCisco Unity Express Release 1.1.2/2.0

Get Digit String step 100

Filter tab 105

General tab 100

Input tab 103

Prompt tab 102

Get Digit String step, using 50

getting contact information 88

Get User Info step 123

Goto step 77

H

Help menu options 8

About 8

Help 8

Help option in Help menu 8

I

If step 77

Implicit Confirmation step 106

Implicit Confirmation step, using 60

Increment step 78

Increment step, using 52, 55, 62, 64

input properties

Get Digit String 104

Menu step 113

Name To User step 119

Integer expressions 21

Integer variables 14

Interruptible option 96

interruption of scripts 26

L

Label step 77, 78

Long expressions 23

Long variables 16

IN-147ty Express Script Editor Installation and Configuration Guide

Page 154: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Index

M

main window, Script Editor 5

making user attributes available to script 124

mapping variables or expressions 73

Media palette 95

steps 95

Menu step 108

General tab 108

Input tab 111

Prompt tab 110

modifying contact information 89

N

Name To User step

Input tab 118

Name to User step 113

General tab 114

Prompt tab 116

Name to User step, using 57

New option, in File menu 6

Number generator type 135

O

On Exception Clear step 25, 79

On Exception Goto step 25, 79

Open option, in File menu 6

operators used with expressions 23

option

Barge In 97

Continue On Prompt Errors 24, 97

Ordinal generator type 137

output branches, errors 25

output branch in a script 10

IN-148Cisco Unity Express Script Editor Installation and Configuration Gu

P

Palette window 9

pane

Debug 18

Design 9

Variable 12

Play Prompt step 119

General tab 120

Input tab 121, 122

Prompt tab 120

primary script 13

Print option, in File Menu 6

prompt error exceptions 25

Prompt palette 125

steps 125

prompt phrases 133

prompt properties

Get Digit String 102

Menu step 111

Name To User step 117

Play Prompt step 121

prompts

concatenated 128

conditional 126

escalating 129

overview 18

random 130

specifying 98

user 18

Prompt variable 17

properties, displaying step 11

properties for a step 11

Properties option, in File menu 6

R

redirecting a call 93

registering a handler 25

ideCisco Unity Express Release 1.1.2/2.0

Page 155: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Index

Rename Output Option dialog box 110

Result User variable 115

S

sample script 41

Save As option, in File menu 6

Save option, in File menu 6

script

creating 9

default 13

ending 10

output branch 10

primary 13

subflow 13

Script Editor

creating a script 9

File menu 6

main window 5

overview 3

Palette window 9

toolbar functions 8

Variable window 6

script interruption, overview 26

Set Contact Info step 88

Set step 81

setting variable value 81

sharing variables 13

specifying acceptable digits 105

specifying contact trigger

for Explicit Confirmation step 97

for Get Digit String step 101

for Implicit Confirmation step 107

for Menu step 109

for Play Prompt step 120

specifying input values 99

specifying prompts 98

specifying Result User variable 115

Spelling generator type 135

Cisco UniCisco Unity Express Release 1.1.2/2.0

Start step 82

step

Accept 86

adding to a script 10

Call Redirect 91

changing the order of 10

Create Conditional Prompt 125

Create Container Prompt 127

Create Generated Prompt 132

customizing 11

displaying properties 11

Explicit Confirmation 96

Get Contact Info 87

Get Digit String 100

Get User Info 123

properties 11

Set Contact Info 88

Terminate 90

variables 12

storing data in variables 12

String expressions 21

String variables 15

subflow 13

Switch step 82

T

Table

Table 10 Variables in the aa_sample1.aef Script 44

Table 11 Call Subflow - General Tab fields 71

Table 12 Call Subflow - Parameter Mapping fields 73

Table 13 Day of Week fields 74

Table 14 Delay fields 76

Table 15 On Exception Goto fields 80

Table 16 Set fields 81

Table 17 Switch fields 83

Table 18 Time of Day fields 84

Table 19 Accept Customizer fields 86

Table 20 Get Contact Info Customer fields 87

IN-149ty Express Script Editor Installation and Configuration Guide

Page 156: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Index

Table 21 Get Contact Info Attributes 87

Table 22 Set Contact Info Customizer fields 89

Table 23 Set Contact Info Attributes 89

Table 24 Terminate Customizer fields 90

Table 25 Call Redirect Customizer fields 91

Table 26 Call Redirect Support Extensions 92

Table 27 Get Call Contact Info Customizer fields 94

Table 28 Get Call Contact Info Arrival Types 94

Table 29 Explicit Confirmation - General Tab fields 97

Table 30 Explicit Confirmaton - Prompts Tab fields 98

Table 31 Explicit Confirmation - Input Tab fields 99

Table 32 Get Digit String - General Tab fields 101

Table 33 Get Digit String - Prompt Tab fields 102

Table 34 Get Digit String - Input Tab fields 103

Table 35 Get Digit String - Filter Tab fields 105

Table 36 Implicit Confirmation fields 106

Table 37 Menu - General Tab fields 109

Table 38 Create Conditional Prompt fields 126

Table 38 Menu - Prompt Tab fields 111

Table 39 Menu - Input Tab fields 112

Table 3 File Menu Options 6

Table 40 Name To User - General Tab fields 115

Table 41 Name To User - Prompt Tab fields 117

Table 42 Name To User - Input Tab fields 118

Table 43 Play Prompt - General Tab fields 120

Table 44 Play Prompt - Prompt Tab fields 121

Table 45 Play Prompt - Input Tab fields 122

Table 46 Get User Info fields 123

Table 47 Get User Info Attributes 124

Table 49 Create Container Prompt fields 128

Table 4 Edit Menu Options 7

Table 50 Create Generated Prompt fields 133

Table 5 Window Menu Options 7

Table 6 Help Menu Options 8

Table 7 Toolbar Functions 8

Table 8 Variable Pane Toolbar Functions 13

Table 9 Edit Variable Properties 14

Telephone Number generator type 138

Terminate step 90

IN-150Cisco Unity Express Script Editor Installation and Configuration Gu

The 18

Time expressions 22

Time generator type 136

Time of Day step 83, 84

Time variables 16

toolbar 8

Tools menu options

Validate 7

transferring calls 91

U

user attributes in a script 124

User palette 123

User variable 18

V

Validate option, in Tools menu 7

validation error messages 18

variable

Contact 17

Prompt 17

Result User 115

User 18

Variable pane 12

variables

BigDecimal 16

BigInteger 16

Boolean 14

built-in data types, basic 14

Character 14

Date 15

defining 13

definition 12

Double 16

exporting 16

Float 14

ideCisco Unity Express Release 1.1.2/2.0

Page 157: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Index

Integer 14

Long 16

restriction 13

sample script, descriptions 44

sharing 13

String 15

Time 16

Variable window 6

W

window

Edit Variable 13

Cisco UniCisco Unity Express Release 1.1.2/2.0

IN-151

ty Express Script Editor Installation and Configuration Guide

Page 158: Cisco Unity Express 1.1.2/2.0 Script Editor · PDF fileContents 4 Cisco Unity Express Script Editor Installation and Configuration Guide Cisco Unity Express Release 1.1.2/2.0 Using

Index

IN-152Cisco Unity Express Script Editor Installation and Configuration Gu

ide

Cisco Unity Express Release 1.1.2/2.0