8.8 Test
Lesson 8
The finished call list is shown below:
Validate and Deploy
the Application
Validate the application
and submit it to Voicent
Gateway as show in Lesson 1. Use the same application
deployment name. When prompted, choose to overwrite the previous
deployed application.
Test Lesson 8
The following is a typical session:
- Caller: call in
- IVR: answer the call
- IVR: "Welcome to my broadcast
service. Please enter your password followed by the pound key"
- Caller: 123#
- IVR: "Please record your message
after the beep. When you are finished with the recording, press
the pound key"
- Caller: "this is a test
recording..." (#)
- IVR: "this is a test
recording..." (play recorded caller message)
- IVR: "Press 1 to continue and
press 2 to record again"
- Caller: 1
- IVR: "Please press 0 for mylist
A; press 1 for mylist B"
- Caller: 1
- IVR: disconnect call
- BroadcastByPhone client program is
launched
- BroadcastByPhone: start
broadcast on a remote outbound call computer using mylist B.voc
as the call list
What's behind
the scene
The first few steps are skipped. They are the same
as in lesson 6.
- ...
- Caller: 1
- IVR: "Please press 0 for mylist
A; press 1 for mylist B"
Select Call List element is
active. The first action (HTTP action) is executed. It takes the
recorded audio file and uploaded it to the remote Voicent
Gateway. The upload operation is set to overwrite the audio file
referred in the outbound IVR application (the deployed
recorded_message.wav file). Depends on your host settings in
the URL, this file will be submitted to the remote computer or
local computer.
The second action (Java action) is executed. It loads the
ivrsample.jar file and run the get method of Java
class IvrSampleGetFiles. The two arguments are passed as
"C:\Call List" and ".voc". The return is a set of
name value pairs. The names include "promptmsg", "list",
and "total".
The third action (set variable value) is executed. The list
name value pair of the action return variable is save is the
user variable all_call_list.
The promptmsg is used as a prompt item. The system plays
the prompt: "Please press 0 for
mylist A; press 1 for mylist B"
- Caller: 1
Start Broadcast
element is active. The Run Program action is launched. It
executes the runvcast.bat script with arguemnt 1
and the whole returned call list "C:\Call List\mylist A.voc"
"C:\Call List\mylist B.voc".
- IVR: disconnect call
No more transition. The
inbound IVR application is finished.
- BroadcastByPhone client is
launched
The runvcast.bat file launches the
BroadcastByPhone program.
- BroadcastByPhone: start
broadcast on a remote outbound call computer
According to the command
line options specified in runvcast.bat file, the correct call
list file C:\Call List\mylist B.voc is opened. Since the
call list file has selected its broadcast message already, the
outbound IVR application lesson5_msg will be used for the
outbound phone calls. If the broadcast host is set to a remote
computer, the calls will be made from that remote computer.
Lesson_8_Java_Method.zip
Video: IVR Java Integration
|