Cisco Cisco Customer Voice Portal 8.0(1) 개발자 가이드
C
HAPTER
6:
D
YNAMIC
E
LEMENT
C
ONFIGURATIONS
V
OICE
XML
P
ROGRAMMING
G
UIDE
FOR
C
ISCO
U
NIFIED
C
USTOMER
V
OICE
P
ORTAL
R
ELEASE
4.0(1)
32
Since the DTDs of the documents returned by the XML API are the same as those for static
element configurations produced by Unified CVP VoiceXML Studio, dynamic configurations
may also utilize substitution. Using substitution in dynamic configurations, however, makes little
sense as the dynamic configuration is produced by programming code which could just as easily
set the appropriate value rather explicitly rather than assemble it using substitution. To be
comprehensive, this section briefly describes the contents of the
element configurations produced by Unified CVP VoiceXML Studio, dynamic configurations
may also utilize substitution. Using substitution in dynamic configurations, however, makes little
sense as the dynamic configuration is produced by programming code which could just as easily
set the appropriate value rather explicitly rather than assemble it using substitution. To be
comprehensive, this section briefly describes the contents of the
<substitute>
tag.
A value for a setting, audio source, audio TTS or any other configuration option that supports
substitution contains static content combined with integer values encapsulated by braces. When
this format is detected, Unified CVP VoiceXML Server knows to replace (substitute) the parts
encapsulated in braces with the dynamic data. For example, “
substitution contains static content combined with integer values encapsulated by braces. When
this format is detected, Unified CVP VoiceXML Server knows to replace (substitute) the parts
encapsulated in braces with the dynamic data. For example, “
http://{0}/grammar/{1}
” as a
value for a setting indicates to substitute some dynamic content for “{0}” and “{1}”, where the
indices are used for uniqueness (the same index can be used multiple times in the same value or
in separate values if applicable).
indices are used for uniqueness (the same index can be used multiple times in the same value or
in separate values if applicable).
This is where the
<substitute>
tag comes in. Each
<substitute>
tag specifies what dynamic
data to substitute for a particular number surrounded by braces. The
index
attribute must be an
integer that matches the number to substitute. A diagram of what it can contain is shown in
Figure 6-3.
Figure 6-3.
Figure 6-3
The content to substitute can be one of the six possible tags:
call_data
– Represents call information such as the ANI.
data
– Represents element or session data.
user_info
– Represents information about the user associated with the call (available only
when the user management system is turned on and the call is associated with a particular
UID).
UID).
general_date_time
– Represents the current time or the start of the call.
caller_activity
– Represents the activity taken by the caller in this call.