Cisco Cisco Customer Voice Portal Downloads User Guide
C
HAPTER
2:
Unified CVP
C
OMPONENTS IN
D
ETAIL
U
SER
G
UIDE FOR
C
ISCO
U
NIFIED
CVP
VXML
S
ERVER
AND
C
ISCO
U
NIFIED
C
ALL
S
TUDIO
53
o
confidence.
This is used to report the confidence as recorded by the speech recognition
engine. VALUE should be the contents of the confidence VoiceXML shadow variable.
o
nomatch.
This is used to indicate the caller entered the wrong information, incurring a
nomatch event. VALUE should be the count of the nomatch event.
o
noinput.
This is used to indicate the caller entered nothing, incurring a noinput event.
VALUE should be the count of the noinput event.
•
ELAPSED is the number of milliseconds since the VoiceXML page was entered. The root
document provides a JavaScript function named
document provides a JavaScript function named
application.getElapsedTime(START_TIME)
which returns the number of milliseconds
elapsed since the time specified in
START_TIME
.
The root document created by VXML Server for use in all VoiceXML insert elements contains a
VoiceXML variable named
VoiceXML variable named
audium_element_start_time_millisecs
that must be initialized
with the time in order for the elapsed time intervals to be calculated correctly. This variable need
only be initialized once in the first VoiceXML page of the insert element. All subsequent pages in
the VoiceXML insert element must not initialize the variable because VXML Server requires the
elapsed time from the start of the element, not the page. So, in VoiceXML, the line to appear
must look like:
only be initialized once in the first VoiceXML page of the insert element. All subsequent pages in
the VoiceXML insert element must not initialize the variable because VXML Server requires the
elapsed time from the start of the element, not the page. So, in VoiceXML, the line to appear
must look like:
<assign name="audium_element_start_time_millisecs" expr="new Date().getTime()" />
For best results, this should appear as early as possible in the first page, preferably in a
<block>
in the first
<form>
of the page, certainly before any additional logging is done.
In VoiceXML, setting the value of an existing variable requires the
<assign>
tag. Since the
expression contains a JavaScript function, the
expr
attribute must be used. Additionally, in order
to avoid overwriting previous log information, the expression must append the new data to the
existing content of the variable. For example, to add to the interaction log the fact that the xyz
audio group was played, the VoiceXML line would look like
existing content of the variable. For example, to add to the interaction log the fact that the xyz
audio group was played, the VoiceXML line would look like
<assign name="audium_vxmlLog" expr="audium_vxmlLog + '|||audio_group$$$xyz^^^'
+application.getElapsedTime(audium_element_start_time_millisecs)"/>
+application.getElapsedTime(audium_element_start_time_millisecs)"/>
In another example, the utterance of a field named xyz is to be appended to the log. The
VoiceXML would look like
VoiceXML would look like
<assign name="audium_vxmlLog" expr="audium_vxmlLog +'|||utterance$$$'+ xyz.$utterance
+ '^^^' + application.getElapsedTime(audium_element_start_time_millisecs)"/>
+ '^^^' + application.getElapsedTime(audium_element_start_time_millisecs)"/>
See Chapter 5: VXML Server Logging for more detail about Unified CVP logging.