We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

ASP and VXML (A serious error of type )

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
decentdealman
Posts: 5
Joined: Mon Jun 05, 2006 10:05 pm

ASP and VXML (A serious error of type )

Post by decentdealman »

Hello,
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>

Your help will be highly appreciated.[/quote]

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR support provides link for ASP help

Post by support »

Hi,

Sorry, but we don't develop with ASP, only with IVR applications, so we're unable to offer any help. You might try here.


Regards,

Plum Support
Last edited by support on Mon Jan 04, 2010 4:32 pm, edited 1 time in total.

zipidy
Posts: 8
Joined: Tue Jul 04, 2006 8:28 am

Post by zipidy »

not revised the asp code but it will probably wont be a asp developing problem but processing the response between asp server evaluates variables and makes a valid response to give to the get petition from plum will porduce a delay and plum wont wait till infinity probably plumm would have to make easier to change the timeout parameter for developers using dynamic formering languages as asp jsp php coldfusion etc

zipidy
Posts: 8
Joined: Tue Jul 04, 2006 8:28 am

Post by zipidy »

well i have found how to change timeout fetching between documents but not in grammmars and also not in the first page the one who receives the call try to set the attribute of submit and goto tags fetchtimeout="10s" it depends on your server load and capacity to change the timeout to one value or another hope this would do it nice

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR link to adjust inital page fetch timeout

Post by support »

See response for an IVR link on how to adjust the inital page fetch timeout by creating a simple scratchpad:

http://support.plumvoice.com/viewtopic.php?p=1181#1181

Post Reply