Cisco Cisco Customer Voice Portal 8.0(1) User Guide

Page of 157
Note: If the call was not associated with a specific UID, an error will occur if this tag is used.
ani – If this tag appears, the search looks for calls made by the ANI specified in the 
value
attribute. If the 
value
 attribute is not included, the ANI of the current caller is used.
start – If this tag appears, the search looks for calls whose start date/time are between two
times specified by successive 
<constant_date_time>
 children tags. The attributes of
<constant_date_time>
 define the specific date to use. The 
month
 attribute must be an
integer from 1 to 12. The 
day_of_month
 attribute must be an integer from 1 to 31. The
year
 attribute must be a four digit integer. The 
hour_of_day
 attribute must be an integer
from 0 to 23. 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>
 (the
previous bullet) 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:
Exit State
Expression
Rule Number
say_welcome_back
The caller has called from this ANI before.
1
say_welcome
The caller has not called from this ANI before.
2
The Unified CVP decision element XML file would be named CalledBefore and be saved in
%CVP_HOME%\VXMLServer\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>
User Guide for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 8.0(1)
50
Chapter 2: Cisco Unified CVP VoiceXML Components in Detail
Unified CVP XML Decisions in Detail