So, the user gets into this vxml page when then want to create a recording. Here is the entire vxml page:
Code: Select all
<?xml version="1.0"?>
<vxml version="2.1" application="root.xml">
<!--#include file="clsXMLConstants.asp"-->
<!--#include file="clsXMLDatabase.asp"-->
<!--#include file="clsXMLSessionManager.asp"-->
<!--#include file="clsXMLUtilities.asp"-->
<!--#include file="clsXMLVariables.asp"-->
<%
GetSessionValues
dim strFrom
strFrom = Request.querystring("from")
objXMLUtilities.AppendToTodaysVoiceXMLServerLogFile(strPlumCallID & " process_record_start.xml - Start and End")
strFileCount = cint(strFileCount) + 1
SaveSessionValues
%>
<catch event="connection.disconnect">
<log>process_record_start.xml - End (disconnect outside recording, 24k or less in length(3 seconds), Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
</catch>
<error>
<log>process_record_start.xml - End (error outside recording, 24k or less in length(3 seconds), Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
</error>
<!--
This extraneous BREAK statement is here because the XML files that are sometimes called prior to this one
(process_combine_voxs.xml, main_menu.xml, and process_record_new.xml) are not acknowledging the fact that
the user hung up. That is, their disconnect handler is not getting acknowledged. This BREAK tag seems
to "force" the disconnect event here.
-->
<form id="begin">
<block>
<prompt>
<break time="1ms"/>
</prompt>
<goto next="#record"/>
</block>
</form>
<form id="record">
<!-- <var name="username" expr="<% = strUserName %>"/> -->
<!-- <var name="calldate" expr="'<% = dtStartDateTimeYear %>'"/> -->
<var name="foldernumber" expr="<% = strFolderNumber %>"/>
<var name="filenumber" expr="<% = strFileCount %>"/>
<block>
<log>process_record_start.xml - Start</log>
</block>
<grammar>1|2|3|4|5|6|7|8|9|0|"*"|"#"</grammar>
<record name="initial_recording" beep="true" dtmfterm="true" maxtime="3540s" finalsilence="300s" type="audio/basic">
<prompt>
<% if ( cint(strFileCount) <= 1 ) then
'Log the dictation
'stored procedure: sp_insert_phone_in_log_record
'tables: phone_log
set conDatabase = Server.CreateObject("ADODB.Connection")
conDatabase.Open strConnection
objXMLUtilities.SetDictationStarted2 "L", strUserID, strFolderNumber, strCallID, 0
conDatabase.Close
%>
<voice name="lauren">Reecord at the beep.</voice>
<% else %>
<voice name="lauren">Continue at the beep.</voice>
<% end if %>
</prompt>
<catch event="noinput" count="1">
<prompt>
<voice name="lauren">
Are you still there.
</voice>
</prompt>
<reprompt/>
</catch>
<catch event="noinput" count="3">
<prompt>
<voice name="lauren">
Goodbye.
</voice>
</prompt>
<log>process_record_start.xml - End (No input, Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
</catch>
<filled>
<assign name="nextkey" expr="initial_recording$.termchar"/>
<if cond="nextkey=='1'">
<if cond="initial_recording$.size < 4500000">
<prompt><voice name="lauren">Please wait while your dictation is saved</voice></prompt>
<else/>
<assign name="saveTime" expr="Math.round(initial_recording$.size/450000)"/>
<prompt><voice name="lauren">Please wait <value expr="saveTime"/> seconds for your dictation to be saved. If you hang up, your dictation will still be saved</voice></prompt>
</if>
<if cond="initial_recording == undefined || initial_recording$.size == ''">
<% if (strFrom = "pause" or strFrom = "recordfromhere" or strFrom = "continuerecord") then %>
<log>process_record_start.xml - End (User Choice 1, no recording, from <% = strFrom %>, Go to process_combine_voxs.xml?next=saveandrecordnormal )</log>
<submit next="process_combine_voxs.xml?next=saveandrecordnormal" method="post"/>
<% else %>
<prompt><voice name="lauren">You have not created a recording. All previous recordings were saved. You will now be disconnected. Goodbye.</voice></prompt>
<log>process_record_start.xml - End (User Choice 1, no recording, not pause or recordfromhere, Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
<% end if %>
<else/>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/>,Go to process_record_savevox.xml?next=saveandrecordnormal )</log>
<log>process_record_start.xml - END (User Choice 1, Go to process_record_savevox.xml?next=saveandrecordnormal )</log>
<submit next="process_record_savevox.xml?next=saveandrecordnormal" method="post" namelist="initial_recording" fetchtimeout="120s" enctype="multipart/form-data"/>
</if>
<elseif cond="nextkey=='2'"/>
<if cond="initial_recording$.size < 4500000">
<prompt><voice name="lauren">Please wait while your dictation is saved</voice></prompt>
<else/>
<assign name="saveTime" expr="Math.round(initial_recording$.size/450000)"/>
<prompt><voice name="lauren">Please wait <value expr="saveTime"/> seconds for your dictation to be saved. If you hang up, your dictation will still be saved</voice></prompt>
</if>
<if cond="initial_recording == undefined || initial_recording$.size == ''">
<% if (strFrom = "pause" or strFrom = "recordfromhere" or strFrom = "continuerecord") then %>
<log>process_record_start.xml - End (User Choice 2, no recording, from <% = strFrom %>, Go to process_combine_voxs.xml?next=saveandrecordstat )</log>
<submit next="process_combine_voxs.xml?next=saveandrecordstat" method="post"/>
<% else %>
<prompt><voice name="lauren">You have not created a recording. All previous recordings were saved. You will now be disconnected. Goodbye.</voice></prompt>
<log>process_record_start.xml - End (User Choice 2, no recording, not pause or recordfromhere, Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
<% end if %>
<else/>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/>,Go to process_record_savevox.xml?next=saveandrecordstat )</log>
<log>process_record_start.xml - End (User Choice 2, Go to process_record_savevox.xml?next=saveandrecordstat )</log>
<submit next="process_record_savevox.xml?next=saveandrecordstat" method="post" namelist="initial_recording" fetchtimeout="120s" enctype="multipart/form-data"/>
</if>
<elseif cond="nextkey=='3'"/>
<if cond="initial_recording$.size < 4500000">
<prompt><voice name="lauren">Please use the rewind functionality before using the reecord from here function. Please wait to enter the pause menu..</voice></prompt>
<else/>
<assign name="saveTime" expr="Math.round(initial_recording$.size/450000)"/>
<prompt><voice name="lauren">Please use the rewind functionality before using the reecord from here function. Please wait <value expr="saveTime"/> seconds to enter the pause menu. If you hang up, your dictation will still be saved</voice></prompt>
</if>
<if cond="initial_recording == undefined || initial_recording$.size == ''">
<% if (strFrom = "pause" or strFrom = "recordfromhere" or strFrom = "continuerecord") then %>
<prompt><voice name="lauren">You can not use the reecord from here feature in this area. Please wait so that your previous recordings are saved.</voice></prompt>
<log>process_record_start.xml - End (User Choice 3, no recording, from <% = strFrom %>, Go to process_combine_voxs.xml?next=hangup )</log>
<submit next="process_combine_voxs.xml?next=hangup" method="post"/>
<% else %>
<prompt><voice name="lauren">You have not created a recording. All previous recordings were saved. You will now be disconnected. Goodbye.</voice></prompt>
<log>process_record_start.xml - End (User Choice 3, no recording, not pause or recordfromhere, Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
<% end if %>
<else/>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/>,Go to process_record_savevox.xml?next=pause )</log>
<log>process_record_start.xml - End (User Choice 3, Go to process_record_savevox.xml?next=pause )</log>
<submit next="process_record_savevox.xml?next=pause" method="post" namelist="initial_recording" fetchtimeout="120s" enctype="multipart/form-data"/>
</if>
<elseif cond="nextkey=='4'"/>
<if cond="initial_recording$.size < 4500000">
<prompt><voice name="lauren">Please wait while your dictation is accessed</voice></prompt>
<else/>
<assign name="saveTime" expr="Math.round(initial_recording$.size/450000)"/>
<prompt><voice name="lauren">Please wait <value expr="saveTime"/> seconds while your dictation is accessed. If you hang up, your dictation will still be saved</voice></prompt>
</if>
<if cond="initial_recording == undefined || initial_recording$.size == ''">
<% if (strFrom = "pause" or strFrom = "recordfromhere" or strFrom = "continuerecord") then %>
<log>process_record_start.xml - End (User Choice 4, no recording, from <% = strFrom %>, Go to process_combine_voxs.xml?next=reviewrewind )</log>
<submit next="process_combine_voxs.xml?next=reviewrewind" method="post"/>
<% else %>
<prompt><voice name="lauren">You have not created a recording. All previous recordings were saved. You will now be disconnected. Goodbye.</voice></prompt>
<log>process_record_start.xml - End (User Choice 4, no recording, not pause or recordfromhere, Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
<% end if %>
<else/>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/>,Go to process_record_savevox.xml?next=reviewrewind )</log>
<log>process_record_start.xml - End (User Choice 4, Go to process_record_savevox.xml?next=reviewrewind )</log>
<submit next="process_record_savevox.xml?next=reviewrewind" method="post" namelist="initial_recording" fetchtimeout="120s" enctype="multipart/form-data"/>
</if>
<elseif cond="nextkey=='5'"/>
<if cond="initial_recording$.size < 4500000">
<prompt><voice name="lauren">Please wait to enter the pause menu</voice></prompt>
<else/>
<assign name="saveTime" expr="Math.round(initial_recording$.size/450000)"/>
<prompt><voice name="lauren">Please wait <value expr="saveTime"/> seconds to enter the pause menu. If you hang up, your dictation will still be saved</voice></prompt>
</if>
<if cond="initial_recording == undefined || initial_recording$.size == ''">
<% if (strFrom = "pause" or strFrom = "recordfromhere" or strFrom = "continuerecord") then %>
<prompt><voice name="lauren">You can not use the pause feature in this area. Please wait so that your previous recordings are saved.</voice></prompt>
<log>process_record_start.xml - End (User Choice 5, no recording, from <% = strFrom %>, Go to process_combine_voxs.xml?next=hangup )</log>
<submit next="process_combine_voxs.xml?next=hangup" method="post"/>
<% else %>
<prompt><voice name="lauren">You have not created a recording. All previous recordings were saved. You will now be disconnected. Goodbye.</voice></prompt>
<log>process_record_start.xml - End (User Choice 5, no recording, not pause or recordfromhere, Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
<% end if %>
<else/>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/>,Go to process_record_savevox.xml?next=pause )</log>
<log>process_record_start.xml - End (User Choice 5, Go to process_record_savevox.xml?next=pause )</log>
<submit next="process_record_savevox.xml?next=pause" method="post" namelist="initial_recording" fetchtimeout="120s" enctype="multipart/form-data"/>
</if>
<elseif cond="nextkey=='6'"/>
<if cond="initial_recording$.size < 4500000">
<prompt><voice name="lauren">Please use the rewind functionality before using the fast forward function. Please wait to enter the pause menu.</voice></prompt>
<else/>
<assign name="saveTime" expr="Math.round(initial_recording$.size/450000)"/>
<prompt><voice name="lauren">Please use the rewind functionality before using the fast forward function. Please wait <value expr="saveTime"/> seconds to enter the pause menu. If you hang up, your dictation will still be saved</voice></prompt>
</if>
<if cond="initial_recording == undefined || initial_recording$.size == ''">
<% if (strFrom = "pause" or strFrom = "recordfromhere" or strFrom = "continuerecord") then %>
<prompt><voice name="lauren">You can not use the fast forward feature in this area. Please wait so that your previous recordings are saved.</voice></prompt>
<log>process_record_start.xml - End (User Choice 6, no recording, from <% = strFrom %>, Go to process_combine_voxs.xml?next=hangup )</log>
<submit next="process_combine_voxs.xml?next=hangup" method="post"/>
<% else %>
<prompt><voice name="lauren">You have not created a recording. All previous recordings were saved. You will now be disconnected. Goodbye.</voice></prompt>
<log>process_record_start.xml - End (User Choice 6, no recording, not pause or recordfromhere, Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
<% end if %>
<else/>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/>,Go to process_record_savevox.xml?next=pause )</log>
<log>process_record_start.xml - End (User Choice 6, Go to process_record_savevox.xml?next=pause )</log>
<submit next="process_record_savevox.xml?next=pause" method="post" namelist="initial_recording" fetchtimeout="120s" enctype="multipart/form-data"/>
</if>
<elseif cond="nextkey=='7'"/>
<if cond="initial_recording$.size < 4500000">
<prompt><voice name="lauren">Please wait while your dictation is accessed</voice></prompt>
<else/>
<assign name="saveTime" expr="Math.round(initial_recording$.size/450000)"/>
<prompt><voice name="lauren">Please wait <value expr="saveTime"/> seconds while your dictation is accessed. If you hang up, your dictation will still be saved</voice></prompt>
</if>
<if cond="initial_recording == undefined || initial_recording$.size == ''">
<% if (strFrom = "pause" or strFrom = "recordfromhere" or strFrom = "continuerecord") then %>
<log>process_record_start.xml - End (User Choice 7, no recording, from <% = strFrom %>, Go to process_combine_voxs.xml?next=reviewbeginning )</log>
<submit next="process_combine_voxs.xml?next=reviewbeginning" method="post"/>
<% else %>
<prompt><voice name="lauren">You have not created a recording. All previous recordings were saved. You will now be disconnected. Goodbye.</voice></prompt>
<log>process_record_start.xml - End (User Choice 7, no recording, not pause or recordfromhere, Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
<% end if %>
<else/>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/>,Go to process_record_savevox.xml?next=reviewbeginning )</log>
<log>process_record_start.xml - End (User Choice 7, Go to process_record_savevox.xml?next=reviewbeginning )</log>
<submit next="process_record_savevox.xml?next=reviewbeginning" method="post" namelist="initial_recording" fetchtimeout="120s" enctype="multipart/form-data"/>
</if>
<elseif cond="nextkey=='8'"/>
<if cond="initial_recording$.size < 4500000">
<prompt><voice name="lauren">Going to the cancellation menu. Please wait.</voice></prompt>
<else/>
<assign name="saveTime" expr="Math.round(initial_recording$.size/450000)"/>
<prompt><voice name="lauren">Going to the cancellation menu. Please wait <value expr="saveTime"/> seconds. If you hang up, your dictation will still be saved</voice></prompt>
</if>
<if cond="initial_recording == undefined || initial_recording$.size == ''">
<% if (strFrom = "pause" or strFrom = "recordfromhere" or strFrom = "continuerecord") then %>
<% if (cstr(strCancelFlag) = "1") then %>
<log>process_record_start.xml - End (User Choice 8, Go to process_record_cancel.xml )</log>
<submit next="process_record_cancel.xml"/>
<% else %>
<prompt><voice name="lauren">The cancel feature is not activated for your account. All previous recordings were saved. You will now be disconnected. Goodbye.</voice></prompt>
<log>process_record_start.xml - End (User Choice 8, no recording, not pause or recordfromhere, Go to process_combine_voxs.xml?next=hangup )</log>
<submit next="process_combine_voxs.xml?next=hangup" method="post"/>
<% end if %>
<% else %>
<prompt><voice name="lauren">You have not created a recording. All previous recordings were saved. You will now be disconnected. Goodbye.</voice></prompt>
<log>process_record_start.xml - End (User Choice 8, no recording, not pause or recordfromhere, Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
<% end if %>
<else/>
<% if (cstr(strCancelFlag) = "1") then %>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/>,Go to process_record_savevox.xml?next=cancel )</log>
<log>process_record_start.xml - End (User Choice 8, Go to process_record_savevox.xml?next=cancel )</log>
<submit next="process_record_savevox.xml?next=cancel" method="post" namelist="initial_recording" fetchtimeout="120s" enctype="multipart/form-data"/>
<% else %>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/>,Go to process_record_savevox.xml?next=badcancel )</log>
<log>process_record_start.xml - End (User Choice 8, Go to process_record_savevox.xml?next=badcancel )</log>
<submit next="process_record_savevox.xml?next=badcancel" method="post" namelist="initial_recording" fetchtimeout="120s" enctype="multipart/form-data"/>
<% end if %>
</if>
<elseif cond="nextkey=='9'"/>
<if cond="initial_recording$.size < 4500000">
<prompt><voice name="lauren">Please wait while your dictation is accessed</voice></prompt>
<else/>
<assign name="saveTime" expr="Math.round(initial_recording$.size/450000)"/>
<prompt><voice name="lauren">Please wait <value expr="saveTime"/> seconds while your dictation is accessed. If you hang up, your dictation will still be saved</voice></prompt>
</if>
<if cond="initial_recording == undefined || initial_recording$.size == ''">
<% if (strFrom = "pause" or strFrom = "recordfromhere" or strFrom = "continuerecord") then %>
<log>process_record_start.xml - End (User Choice 9, no recording, from <% = strFrom %>, Go to process_combine_voxs.xml?next=reviewend )</log>
<submit next="process_combine_voxs.xml?next=reviewend" method="post"/>
<% else %>
<prompt><voice name="lauren">You have not created a recording. All previous recordings were saved. You will now be disconnected. Goodbye.</voice></prompt>
<log>process_record_start.xml - End (User Choice 9, no recording, not pause or recordfromhere, Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
<% end if %>
<else/>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/>,Go to process_record_savevox.xml?next=reviewend )</log>
<log>process_record_start.xml - End (User Choice 9, Go to process_record_savevox.xml?next=reviewend )</log>
<submit next="process_record_savevox.xml?next=reviewend" method="post" namelist="initial_recording" fetchtimeout="120s" enctype="multipart/form-data"/>
</if>
<elseif cond="nextkey=='*'"/>
<if cond="initial_recording$.size < 4500000">
<prompt><voice name="lauren">Please wait while your dictation is saved</voice></prompt>
<else/>
<assign name="saveTime" expr="Math.round(initial_recording$.size/450000)"/>
<prompt><voice name="lauren">Please wait <value expr="saveTime"/> seconds while your dictation is saved. If you hang up, your dictation will still be saved</voice></prompt>
</if>
<if cond="initial_recording == undefined || initial_recording$.size == ''">
<% if (strFrom = "pause" or strFrom = "recordfromhere" or strFrom = "continuerecord") then %>
<log>process_record_start.xml - End (User Choice *, no recording, from <% = strFrom %>, Go to process_combine_voxs.xml?next=hangup )</log>
<submit next="process_combine_voxs.xml?next=hangup" method="post"/>
<% else %>
<prompt><voice name="lauren">You have not created a recording. All previous recordings were saved. You will now be disconnected. Goodbye.</voice></prompt>
<log>process_record_start.xml - End (User Choice *, no recording, not pause or recordfromhere, Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
<% end if %>
<else/>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/>,Go to process_record_savevox.xml?next=hangup )</log>
<log>process_record_start.xml - End (User Choice *, Go to process_record_savevox.xml?next=hangup )</log>
<submit next="process_record_savevox.xml?next=hangup" method="post" namelist="initial_recording" fetchtimeout="120s" enctype="multipart/form-data"/>
</if>
<elseif cond="nextkey=='0'"/>
<if cond="initial_recording$.size < 4500000">
<prompt><voice name="lauren">Going to help menu. Please wait while your dictation is saved</voice></prompt>
<else/>
<assign name="saveTime" expr="Math.round(initial_recording$.size/450000)"/>
<prompt><voice name="lauren">Going to help menu. Please wait <value expr="saveTime"/> seconds while your dictation is saved. If you hang up, your dictation will still be saved</voice></prompt>
</if>
<if cond="initial_recording == undefined || initial_recording$.size == ''">
<% if (strFrom = "pause" or strFrom = "recordfromhere" or strFrom = "continuerecord") then %>
<prompt><voice name="lauren">You can not use the help feature in this area. Please wait so that your previous recordings are saved.</voice></prompt>
<log>process_record_start.xml - End (User Choice 0, no recording, from <% = strFrom %>, Go to process_combine_voxs.xml?next=hangup )</log>
<submit next="process_combine_voxs.xml?next=hangup" method="post"/>
<% else %>
<prompt><voice name="lauren">You have not created a recording. All previous recordings were saved. You will now be disconnected. Goodbye.</voice></prompt>
<log>process_record_start.xml - End (User Choice 0, no recording, not pause or recordfromhere, Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
<% end if %>
<else/>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/>,Go to process_record_savevox.xml?next=help )</log>
<log>process_record_start.xml - End (User Choice 0, Go to process_record_savevox.xml?next=help )</log>
<submit next="process_record_savevox.xml?next=help" method="post" namelist="initial_recording" fetchtimeout="120s" enctype="multipart/form-data"/>
</if>
<elseif cond="nextkey=='#'"/>
<if cond="initial_recording$.size < 4500000">
<prompt><voice name="lauren">Please wait while your dictation is saved</voice></prompt>
<else/>
<assign name="saveTime" expr="Math.round(initial_recording$.size/450000)"/>
<prompt><voice name="lauren">Please wait <value expr="saveTime"/> seconds while your dictation is saved. If you hang up, your dictation will still be saved</voice></prompt>
</if>
<if cond="initial_recording == undefined || initial_recording$.size == ''">
<% if (strFrom = "pause" or strFrom = "recordfromhere" or strFrom = "continuerecord") then %>
<log>process_record_start.xml - End (User Choice #, no recording, from <% = strFrom %>, Go to process_combine_voxs.xml?next=saveandreprompt )</log>
<submit next="process_combine_voxs.xml?next=saveandreprompt" method="post"/>
<% else %>
<prompt><voice name="lauren">You have not created a recording. All previous recordings were saved. You will now be disconnected. Goodbye.</voice></prompt>
<log>process_record_start.xml - End (User Choice #, no recording, not pause or recordfromhere, Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
<% end if %>
<else/>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/>,process_record_savevox.xml?next=saveandreprompt )</log>
<log>process_record_start.xml - End (User Choice #, Go to process_record_savevox.xml?next=saveandreprompt )</log>
<submit next="process_record_savevox.xml?next=saveandreprompt" method="post" namelist="initial_recording" fetchtimeout="120s" enctype="multipart/form-data"/>
</if>
</if>
<if cond="initial_recording$.maxtime==true">
<if cond="initial_recording$.size < 4500000">
<prompt><voice name="lauren">You have reached the maximum time limit of 60 minutes. Please wait while your dictation is saved.</voice></prompt>
<else/>
<assign name="saveTime" expr="Math.round(initial_recording$.size/450000)"/>
<prompt><voice name="lauren">You have reached the maximum time limit of 60 minutes. Please wait <value expr="saveTime"/> seconds while your dictation is saved. If you hang up, your dictation will still be saved</voice></prompt>
</if>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/>,process_record_savevox.xml?next=maxtime )</log>
<log>process_record_start.xml - End (Go to process_record_savevox.xml?next=maxtime )</log>
<submit next="process_record_savevox.xml?next=maxtime" method="post" namelist="initial_recording" fetchtimeout="120s" enctype="multipart/form-data"/>
</if>
</filled>
<catch event="connection.disconnect">
<if cond="initial_recording == undefined">
<% if ( strFrom = "pause" ) then %>
<log>process_record_start.xml - END (disconnect during recording but after a PAUSE, no length, Go to process_combine_voxs.xml?next=disconnect )</log>
<submit next="process_combine_voxs.xml?next=disconnect" method="post"/>
<% else %>
<log>process_record_start.xml - End (disconnect during recording, no length, Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
<% end if %>
<elseif cond="initial_recording$.size < 24000 || initial_recording$.size == ''"/>
<% if ( strFrom = "pause" ) then %>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/> , Go to process_combine_voxs.xml?next=disconnect )</log>
<log>process_record_start.xml - END (disconnect during recording but after a PAUSE, 24k or less in length(3 seconds), Go to process_combine_voxs.xml?next=disconnect )</log>
<submit next="process_combine_voxs.xml?next=disconnect" method="post"/>
<% else %>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/> , Go to process_record_hangup.xml?next=zerolength )</log>
<log>process_record_start.xml - END (disconnect during recording, 24k or less in length(3 seconds), Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
<% end if %>
<else/>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/> , Go to process_record_savevox.xml?next=disconnect )</log>
<log>process_record_start.xml - End (disconnect during recording, Go to process_record_savevox.xml?next=disconnect )</log>
<submit next="process_record_savevox.xml?next=disconnect" method="post" namelist="initial_recording" fetchtimeout="120s" enctype="multipart/form-data"/>
</if>
</catch>
<catch event="error.badfetch" count="1">
<if cond="initial_recording$.size == 0 || initial_recording$.size == '' || initial_recording == undefined">
<log>process_record_start.xml - End (error.badfetch during recording, 0 length, Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
<else/>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/> , Go to process_record_savevox.xml?next=disconnect )</log>
<log>process_record_start.xml - End (error.badfetch during recording, Go to process_record_savevox.xml?next=disconnect)</log>
<submit next="process_record_savevox.xml?next=disconnect" method="post" namelist="initial_recording" fetchtimeout="120s" enctype="multipart/form-data"/>
</if>
</catch>
<catch event="error.badfetch" count="2">
<log>process_record_start.xml - End (error.badfetch during recording, Save recording on Plum server)</log>
<var name="filename" expr="foldernumber + '_phone_file_' + filenumber + '.vox'"/>
<var name="recording" expr="initial_recording"/>
<submit next="http://metroscript.plumgroup.com/saverecording.php" namelist="filename recording" method="post" enctype="multipart/form-data"/>
</catch>
<catch event="nomatch noinput">
<submit next="process_record_hangup.xml" method="post"/>
</catch>
<error>
<if cond="initial_recording == undefined">
<% if ( strFrom = "pause" ) then %>
<log>process_record_start.xml - END (error during recording but after a PAUSE, no length, Go to process_combine_voxs.xml?next=disconnect )</log>
<submit next="process_combine_voxs.xml?next=disconnect" method="post"/>
<% else %>
<log>process_record_start.xml - End (error during recording, no length, Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
<% end if %>
<elseif cond="initial_recording$.size < 24000 || initial_recording$.size == ''"/>
<% if ( strFrom = "pause" ) then %>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/> , Go to process_combine_voxs.xml?next=disconnect )</log>
<log>process_record_start.xml - END (error during recording but after a PAUSE, 24k or less in length(3 seconds), Go to process_combine_voxs.xml?next=disconnect )</log>
<submit next="process_combine_voxs.xml?next=disconnect" method="post"/>
<% else %>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/> , Go to process_record_hangup.xml?next=zerolength )</log>
<log>process_record_start.xml - END (error during recording, 24k or less in length(3 seconds), Go to process_record_hangup.xml?next=zerolength )</log>
<submit next="process_record_hangup.xml?next=zerolength" method="post"/>
<% end if %>
<else/>
<log>process_record_start.xml - MID (File size in bytes: <value expr="initial_recording$.size"/> , Go to process_record_savevox.xml?next=disconnect )</log>
<log>process_record_start.xml - End (error during recording, Go to process_record_savevox.xml?next=disconnect )</log>
<submit next="process_record_savevox.xml?next=disconnect" method="post" namelist="initial_recording" fetchtimeout="120s" enctype="multipart/form-data"/>
</if>
</error>
</record>
</form>
</vxml>
Here is the Plum error log for that day, in which you will see that this call did not get logged as an error (I removed the phone numbers for privacy reasons.
Here are the log files that I created for that call when the user was in that specific page. By my log files, it looks like the user entered the page, created a recording for 10:22 minutes and then all of a sudden entered into my GENERAL error handling routine. I removed the phone numbers for privacy reasons.
If you could make any sense out of this, it would be appreciated.
Mike C.