Lesson 4 explains how to deploy an application as a service on a server - introducing the respective configuration objects - and how to test an application by calling it.
After completing this lesson you will know
· what is meant by a server and a service,
· how to configure a Service object,
· how to configure a Server object,
· what the Control Center is and how to deploy an application in the Control Center.
While VoiceObjects Desktop is the graphical environment for developing and maintaining applications, VoiceObjects Server is the active component that interacts with media platforms and processes the applications.
A VoiceObjects Server is a logical entity that is represented by a Server object in the VoiceObjects Metadata Repository. It can either run on a single physical machine or be distributed over a server farm consisting of any number of physical machines.
The media platform connects to the server via HTTP requests.
Applications developed with VoiceObjects Desktop are deployed to a server as a service represented by a Service object. Only services can be called from a phone. Services provide attributes to the server such as the language being used, associated media platform drivers, and the start object of the application (see below).
For detailed information on servers and services see the Deployment Guide.
To configure a new service within Desktop for Eclipse do the following:
1. From the Tools menu, select Configure New Service. An empty Service editor will open up.

2. In the Name field at the top of the editor window enter a name for the new Service object (e.g. Tutorial).
3. In the Application Parameters section, specify the start object of the application associated with this service. Typically, this is a Module object. Since we only have created an Output object so far, select your Output object here.
To select the Welcome Output object as the start object, click the Context Menu button
to the right of the Start object field. From the context menu, select Browse and then Output. In the Search Result window, click the Welcome Output object to link it into the Start object field.
4. In the Language field, select the appropriate language for your application to run in (e.g. English US). The language selected here is the language that is used if you leave Default as the language parameter in any output or grammar definition.
@8Tip: The Language field, as well as a lot of other fields across all object editors that allow selecting input from a drop-down list, provides a so-called auto-complete function. This means that if you enter for example just a single letter the selection in the drop-down list will be filtered and reduced to all entries starting with this letter. The first entry that applies to the selection will be entered into the field.
Example: if you enter “F in the Language field the selection in the drop-down list will be reduced to all available entries starting with an “F (Finnish, French, French (CA), French (FR)) with Finnish being entered into the Language field.
For further details see Object Editor Fields in Chapter 6 – Object Editors in the Desktop for Web Guide.
5. In the Communcation Parameters section, enter the unique name of the service in the VSN (Reference ID) field (e.g. Tutorial). The VSN (VoiceObjects Service Name) is used to identify the service when initiating it via an HTTP request from the media platform.
6. In the Driver field, select the appropriate driver for your media platform from the drop-down menu.
7. For all other properties leave the default selections.
The Service editor will look like this now:

8. On the toolbar of the Service editor, click Save and Close.
For a detailed description of all parameters and settings within the Service editor refer to Chapter 2 – Configuring Servers and Services in the Deployment Guide.
In order to run your application you need to specify the server that processes your service. This is done through a Server object.
In the Object Browser, open the Configuration folder and then the Server folder (if available) and check if there already exists a Server object called VOServer.
If it doesn´t exist (or if even the Server folder doesn´t exist) you need to create it. For more information see Create a new Server object below.
If it already exists you can use this Server object. For more information see Use an existing Server object.
i8Note: If the folder already contains a Server object with a different name or more than one Server object ask your VoiceObjects administrator how to proceed.
1. From the Tools menu, select Configure New Server. An empty Server editor will open up.

2. In the Server editor, enter a name for the new Server object in the Name field at the top of the editor window. It is recommended to use the name of its reference ID here (see below).
3. In the Configuration Parameters section, enter the reference ID for the server in the Reference ID field. The default value is VOServer.
i8Note: In order for the installation to work properly, the reference ID specified here needs to be identical with the <servername> specified in the VOServer_Configuration.xml file (see Before You Begin).
4. Leave all other values as default.
5. In the Hosted Services section, add the service which you want to be processed by the server (e.g. Tutorial ). To add a service, click the Context Menu button
to the right of the Service field. From the context menu, select Browse and in the Search Result window click the Tutorial Service object to link it into the Service field.
The Server editor will look like this now:

6. On the toolbar of the Server editor, click Save and Close.
For a detailed description of all parameters and settings within the Server editor refer to Chapter 2 – Configuring Servers and Services in the Deployment Guide.
After creating a new Server object you need to restart the VoiceObjects Server process on your Web server to activate it. Further information on how to start this process can be found in the Installation Guide or contact your VoiceObjects administrator.
1. In the Object Browser, open the Configuration folder and then the Server folder, and double-click VOServer. The Server editor will open up.
2. If there already exists a service in the Hosted Services section click the Add button
to add a new empty row to the list.
3. Click the Context Menu button
to the right of the Service field. From the context menu, select Browse and in the Search Result window click the Tutorial Service object to link it into the Service field.
4. On the toolbar of the Server editor, click Save and Close.
In order to activate your application you need to deploy the corresponding service, i.e. the Tutorial Service, by loading it to the hosted services list and starting it in the Control Center.
The Control Center is the graphical interface component within VoiceObjects Desktop that enables the deployment and monitoring of servers and services.
To open the Control Center in Desktop for Web, do the following:
1. In the Object Browser, open the Configuration folder and then the Server folder.
2. Point to the Server object you have just created (e.g. VOServer) and right-click it.
3. In the context menu, click Control Center.

The Control Center is loaded into a new worksheet in the right-hand pane of Desktop for Web. If this worksheet already exists, the view switches to it.

Take a while to familiarize yourself with the Control Center.
The Server Management tab displays detailed information about the server configuration in the Server Details section, as well as information about the list of hosted services in the Service Manager section.
For a detailed description of the Control Center see Chapter 3 – Managing Servers and Services in the Deployment Guide.
To deploy the Tutorial service you first have to reload it to the list of services hosted on the server:
In the Server Details section, click the Context Menu button
to the right of the server name and select Reload Service List. The list of services hosted on this server will be reloaded and the service you have just created (Tutorial) will be added to the list and displayed in the Service Manager section.

Next, you need to start your service:
Click the Context Menu button
to the right of the service name (Tutorial) in the Service Manager section, and from the context menu select Start. After a while the light to the left of the service name turns to green indicating that the status of the service is started.
i8Note: The Start command is only available in the context menu if a service is stopped (which is also the status for a new service). If a service has already been started you need to select Redeploy from the context menu in order to make any changes effective (see also the following lessons).
Before you can try out your Welcome application you need to specify the URL that connects the calls from the underlying media platform to the server.
The initial HTTP request from the media platform to the server has the following format:
http://server:port/VoiceObjects/DialogMapping?VSN=ReferenceID
where
|
server |
denotes the network name or IP address of the physical server running the VoiceObjects Server process. |
|
port |
denotes the connector port for the VoiceObjects Server process. The port is set to 8099 by default, but can be modified during installation and configuration. See the Installation Guide for details. |
|
Reference ID |
denotes the unique name which identifies the service when initiating it via an HTTP request from the media platform. |
In order to check if the URL is valid, add &ping=server to it and enter it into your Web browser. If it is correct you will see the status of the service (e.g. Started).
Example:
http://192.168.1.20:8099/VoiceObjects/DialogMapping?VSN=tutorial&ping=server
Now you can call the telephone number by which the new service can be reached.
The dialog flow for the current application just consists of one object so far:
|
Object – Caller |
Dialog Flow |
|
|
Welcome to Prime Life Insurance service! |
When you call your application, the output “Welcome to the Prime Life Insurance service! will be played back to you over the phone.
Next, you will learn how to structure the dialog flow by using Module objects.