Cisco Cisco Customer Voice Portal 8.0(1) Guia Do Utilizador
Also note that these last four variables are also passed to the root document call in the
<vxml>
tag so that events triggered within the insert element will correctly pass the data if it was captured
by then.
by then.
Note: The VoiceXML listed below may not function on all browsers without modification.
<?xml version="1.0"?>
<vxml version="1.0"
application="/CVP/Server?audium_vxmlroot=true&calling_into=MYAPP&
namelist=element_log_var1|element_nolog_var2|session_sessvar|custom_custlog">
<form id="testform">
<block>This is the initial prompt
<assign name="audium_element_start_time_millisecs" expr="new Date().getTime()"/>
<assign name="audium_vxmlLog" expr="'|||audio_group$$$initial_prompt^^^'
+application.getElapsedTime(audium_element_start_time_millisecs)"/>
</block>
<block>In the VoiceXML element.
The ani is <value expr="audium_telephony_ani"/>.
The element history is <value expr="audium_history"/>.
User by ani num calls is <value expr="user_by_ani_num_calls"/>.
Element data foo from element first <value expr="audium_first_foo"/>.
Session variable foo2 <value expr="audium_session_foo2"/>.
</block>
<var name="element_log_var1" expr="'log me'"/>
<var name="element_nolog_var2" expr="'do not log me'"/>
<var name="session_sessvar" expr="'session_data_value'"/>
<field name="custom_custlog" type="number">
<property name="inputmodes" value="voice" />
<prompt>Say a number.</prompt>
<filled>
<assign name="audium_vxmlLog" expr="audium_vxmlLog + '|||utterance$$$' +
custom_custlog.$utterance + '^^^'
+application.getElapsedTime(audium_element_start_time_millisecs)"/>
<if cond=" custom_custlog < 5">
<assign name="audium_exit_state" expr="'less'"/>
<else/>
<assign name="audium_exit_state" expr="'greater_equal'"/>
</if>
<return namelist="audium_exit_state audium_vxmlLog audium_error audium_hotlink
audium_hotevent audium_action element_log_var1 element_nolog_var2 session_sessvar
custom_custlog" />
</filled>
</field>
</form>
</vxml>
User Guide for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 8.0(1)
61
Chapter 2: Cisco Unified CVP VoiceXML Components in Detail
VoiceXML Insert Elements