i will really appreciate an urgent help here. I am requesting info from .vxml page. i know my vxml script is working fine/posting the collected info but my ASP page keep given error over the phone.
Here is my error extract from call log:
==========================
Mon 19 Jun 2006 12:39:08 AM EDT:
Previously playing audio (if any) has finished
DocumentParser::FetchDocument(http://viaincllc.com/ivr/userauthenticate.asp)
Using proxy server 127.0.0.1:8080 for channel 7
Attempting to fetch http://viaincllc.com/ivr/userauthentica ... nCode=1234
Click here to view saved VoiceXML script
DocumentParser::FetchDocument - Parse error in file "http://viaincllc.com/ivr/userauthenticate.asp", line 8, column 7 - Unknown element 'font'
errno: 205 uri http://viaincllc.com/ivr/userauthenticate.asp
received event: error.badfetch
bargein set to true
INPUTMODES set to "DTMF VOICE"
Audio segment added to prompt queue from TTS text/plain;charset=wchar_t for:
---------
A serious error of type
---------
bargein set to true
INPUTMODES set to "DTMF VOICE"
Audio segment added to prompt queue from TTS text/plain;charset=wchar_t for:
---------
error.badfetch
---------
bargein set to true
INPUTMODES set to "DTMF VOICE"
Audio segment added to prompt queue from TTS text/plain;charset=wchar_t for:
---------
has occurred. Exiting.
---------
VXI::exit_element()
Previously playing audio (if any) has finished
Newly queued prompts are now being played
===================================
kindly help me check my ASP code below for what i'm doing wrongly My ASP code using Ms Access is a follows:
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0">
<%@LANGUAGE=VBSCRIPT %>
<%
Db_Conn_Str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("datastore.mdb") & ";"
dim uname,pwd
uname = Request("AccountNumber")
pwd = Request("PinCode")
Response.ContentType = "text/xml"
%>
<form>
<block>
<%
Dim conn, rs, rs1
Set conn = Server.CreateObject("ADODB.Connection")
conn.open Db_Conn_Str
set rs = conn.Execute("SELECT title, firstname, lastname, accountno, pin, credit FROM clients WHERE accountno =" & uname & "")
if rs(0) > 0 then
set rs1 =conn.Execute("SELECT Count(pin) FROM Clients WHERE accountno =" & uname & " AND pin =" & pwd & "")
if rs1(0) > 0 then
Response.Write("<goto next=""#browse1""/>")
else
Response.Write("<prompt>The Pin code you have entered is Incorrect, please try again</prompt>")
Respose.Write("<goto next=""index.vxml#AskforAcctNo""/>")
End if
else
Response.Write("<prompt>This account number does not exist, please try again</prompt>")
Respose.Write("<goto next=""index.vxml#AskforAcctNo""/>")
End if
%>
</block>
</form>
<menu id="browse1">
<%
Response.Write("<prompt> Welcome " & rs("title") & " " & rs("firstname") & " " & rs("lastname") & "</prompt>")
Response.Write("<goto next=""#browse2""/>")
%>
</menu>
<menu id="browse2">
<grammar type="application/srgs+xml"></grammar>
<menu>
<prompt>You have the following options. You can:<enumerate/></prompt>
<choice dtmf="1" next="#acctbalance">Available credit</choice>
<choice dtmf="2" next="changepin.vxml">Change Pin code</choice>
<choice dtmf="3" next="changepin.vxml#livesupport">Customer Support</choice>
<choice dtmf="4" next="#logoff">Log Off</choice>
<help>
Press 1 for avalable credit.
Press 2 to change your Pin Code.
Press 3 for a live customer support.
Press 4 to exit.
</help>
<noinput>
<prompt>I didn't get your response, you can<enumerate/></prompt></noinput>
<nomatch>
<prompt>I didn't get that,<enumerate/></prompt></nomatch>
<catch event="nomatch noinput" count="3">
<prompt>I'm sorry, i didn't get your response. Please try again later,</prompt>
<goto next="#logoff"/>
</menu>
<menu id="acctbalance">
<%
Response.Write("<prompt> Your current available credit is " & rs("credit") & "</prompt>")
Response.Write("<goto next=""#browse2""/>")
%>
</menu>
<form id="logoff">
<catch event="logoff">
<prompt>Try again later, Goodbye.</prompt>
<throw event="telephone.disconnect.hangup"/>
</catch>
</form>
<form id="SubmitAcctNo">
<block>
<%
Response.Write("<var name = ""userno"" expr = """ & rs("accountno") & """ />")
Response.Write("<var name = ""pinum"" expr = """ & rs("pin") & """ />")
Response.Write("<submit next=""editpin.asp"" method=""get"" namelist=""userno pinum ""/>")
%>
</block>
</form>
<%rs.close %>
</vxml>