Cisco Cisco Unified Customer Voice Portal 11.0(1) Guia Do Utilizador
C
HAPTER
2:
C
ISCO
CVP
V
OICE
XML
C
OMPONENTS IN
D
ETAIL
C
ISCO
CVP
V
OICE
XML
User Guide
attribute must be a four digit integer. The
hour_of_day
attribute must be an integer from 0 to
123. The
minute
attribute must be an integer from 0 to 59. The
second
attribute must be an
integer from 0 to 59.
•
end
– If this tag appears, the search looks for calls whose end date/time are between two
times specified by successive
<constant_date_time>
children tags. See
<start>
above for
the description of the
<constant_date_time>
tag.
•
flag
– If this tag appears, the search looks for calls where a flag with the name given in the
name
attribute was triggered.
XML Decision Example #1
An application named “Example1” would like to play “Welcome back” for callers who have
previously called this application. The users are identified by their ANI (this application uses the
user management database only for its history tracking). A decision element named
“CalledBefore” would be needed which had two rules, one for those who the application
recognizes and one for the rest (this is being done rather than using the default exit state for
demonstration purposes). In English, the rules are:
previously called this application. The users are identified by their ANI (this application uses the
user management database only for its history tracking). A decision element named
“CalledBefore” would be needed which had two rules, one for those who the application
recognizes and one for the rest (this is being done rather than using the default exit state for
demonstration purposes). In English, the rules are:
Rule Expression
Exit State
1
The caller has called from this ANI before
say_welcome_back
2
The caller has not called from this ANI before
say_welcome
The CVP VoiceXML decision element XML file would be named “CalledBefore” and be saved
in
in
AUDIUM_HOME / applications / Example1 / data / misc.
The XML content will be:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE knowledge_base SYSTEM "../../../../dtds/DecisionKnowledgeBase.dtd">
<knowledge_base>
<rule name="CalledFromAni">
<exit_state name="say_welcome_back" conjugate="and">
<boolean check_existence="no" value="true">
<user_info>
<called_from_ani/>
</user_info>
</boolean>
</exit_state>
<exit_state name="say_welcome" conjugate="and">
<boolean check_existence="no" value="false">
<user_info>
<called_from_ani/>
</user_info>
</boolean>
</exit_state>
</rule>
</knowledge_base>
<!DOCTYPE knowledge_base SYSTEM "../../../../dtds/DecisionKnowledgeBase.dtd">
<knowledge_base>
<rule name="CalledFromAni">
<exit_state name="say_welcome_back" conjugate="and">
<boolean check_existence="no" value="true">
<user_info>
<called_from_ani/>
</user_info>
</boolean>
</exit_state>
<exit_state name="say_welcome" conjugate="and">
<boolean check_existence="no" value="false">
<user_info>
<called_from_ani/>
</user_info>
</boolean>
</exit_state>
</rule>
</knowledge_base>
©2000 - 2005 Audium Corporation. All Rights Reserved. 1/14/05
36