I believe the issue is the mime type coming out of the IVR post.
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0">
<%
Action = Request.QueryString("Action")
If Action = "submit" then
set upload = server.createobject("comUpload.UploadObj")
If upload.Filecount <> 0 then
Dept = upload.Form("dept")
fileName = replace( upload.file.fileName, "#", "_" ) ' we don't want '#' sign in the file name.
fileSize = upload.File.fileSize
contentType = upload.File.contentType
'if upload.File.fileSize > 0 then
upload.AttachRandomNumber = true ' if same file exists, attach random number
on error resume next
savedAs = upload.SaveAs( "c:\" & fileName) ' actually save file to the disk
' this function also returns saved file name
' if file already exists
'End if
End If
%>
<form id="read">
<block>
<prompt>
Your message has been sent.
</prompt>
</block>
</form>
<% Else %>
<form id="callin">
<block>
<prompt>
<audio src="wav1/welcome.wav">
You have reached the One Travel employee call in hotline.
</audio>
</prompt>
</block>
<field name="dept" type="digits?length=1">
<prompt>
<audio src="wav1/welcome.wav">
Please choose your department from the following: One for Sales, Two for Customer Service, Three for Processing.
</audio>
</prompt>
</field>
<record name="excuse" type="audio/x-wav" beep="true">
<prompt>
Please record your message after the beep.
</prompt>
<filled>
The following will be sent to your supervisor and human resources.
<value expr="excuse"/>
</filled>
</record>
<filled>
<submit next="callin.asp?action=submit" method="post" enctype="multipart/form-data" namelist="dept excuse"/>
</filled>
</form>
<%End If%>
<%
Set upload = nothing
%>
</vxml>
Code: Select all
POST /callin.asp?action=submit HTTP/1.0
User-Agent: PlumVoicePortal/2.4
Host: ivr.onetravel.net
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Cookie: ASPSESSIONIDQAARRQDB=MKKDBKICAHJNOPOLKHBKHCEG
Content-Length: 13627
Expect: 100-continue
Content-Type: multipart/form-data; boundary=----------------------------8654300ec28a
------------------------------8654300ec28a
Content-Disposition: form-data; name="dept"
2
------------------------------8654300ec28a
Content-Disposition: form-data; name="excuse"; filename="excuse"
Content-Type: a
RIFF,4..WAVEfmt ........@...@.......data.4..xx..........x...................x.xx....................x.x...................x.......x...x..x..x..
...................x...........x..x....x....x...........x......x......x...x........x.x.......x....x...................x....x...
..x........x..x.............x....x...xxx..x.........x.................x.......x......x............x............x...............
....x..............x...................x......x..x...x...xx.........x..x......x.xqxxqx................xxxxx.xxxx..............x
......x..x...x............x...xx............xxqqqqqx................xx...x.xxqqqqx................qei_be_bbbmix............me__
_[[_biq..........qi]]XZZX_bm.............e[VRQOQTZ_m..........x_TOOKKOQVZm.............m[ROIIIIKOT]x..........iXIFAAADIQxx...x.
.x.......x......x.........x..........x.........xx........x........................x....x.......x.............x........x....x...
....x...............x................................x....x..........x........xx..xx......................xx.....x.............
......x..xx............x.................x....x........x.....................x......x....................x................x....
..........................xx.xx.....x.....x........x............................x..xx....................................x.....
...........x..........x.......x.................................x..x...x..............x...
------------------------------8654300ec28a--
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Tue, 05 Oct 2004 17:57:24 GMT
X-Powered-By: ASP.NET
Connection: Keep-Alive
Content-Length: 180
Content-Type: text/html
Cache-control: private
<?xml version="1.0"?>
<vxml version="2.0">
<form id="read">
.<block>
.<prompt>
Your message has been sent.
</prompt>
.</block>
</form>