ASP.Net Support
Posted: Thu Nov 01, 2007 9:04 am
Does the Plum Hosting Platform support an application that is VXML integrated with ASP.NET?
Thanks
Allan
Thanks
Allan
Welcome to the PlumVoice IVR Support Forum
https://support.plumvoice.com/
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0">
<form>
<field name="customerid" type="digits">
<prompt>
Please enter your customer identification number using your keypad.
</prompt>
</field>
<field name="age" type="digits?minlength=1;maxlength=2">
<prompt>
Please enter your age using your keypad.
</prompt>
</field>
<block>
<prompt> Please wait while we process your information. </prompt>
<submit namelist="customerid age" next="http://mightyserver.com/submit.aspx"/>
</block>
</form>
</vxml>
Code: Select all
<%Response.ContentType = "text/xml"%>
<?xml version="1.0"?>
<%
dim customerid
dim age
customerid = Request.QueryString("customerid")
age = Request.QueryString("age")
%>
<vxml version="2.0">
<form>
<block>
<prompt> Your customer identification number is <%Response.Write(customerid)%>. </prompt>
<prompt> Your age is <%Response.Write(age)%>. </prompt>
</block>
</form>
</vxml>
Code: Select all
string callSessionId = (Request["session.id"] != null) ? Request["session.id"] : null;
string callerid = (Request["session.telephone.ani"] != null) ? Request["session.telephone.ani"] : "CallerUnknown";
string calledId = (Request["session.telephone.dnis"] != null) ? Request["session.telephone.dnis"] : "CalledUnknown";
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<vxml version="2.0" application="AppRoot.vxml">
<%@ Page Language="c#" Inherits="Braveline.WRS.Voice.Login" CodeFile="Login.aspx.cs" %>
<meta name="maintainer" content="<%=Braveline.WRS.BusinessObjects.Globals.IVR.IVRMaintainer%>" />
<form id="frmCheckLocal">
<block>
<log expr="'***************************************Check which local phone number belongs*********************************'" label="trace:?level=VD_INFO" />
<% if( lawyerNum == true ) { %>
<audio src="audio/Prophecy/Welcome_Local28_ReferralHall_System_Prophecy.wav" fetchhint="prefetch">
Welcome to the Local 28 Referral Hall System
</audio>
<% } else { %>
<audio src="audio/Prophecy/DD_Welcome_Job_Referral_System_Prophecy.wav" fetchhint="prefetch">
Welcome to the Job Referral System.
</audio>
<% } %>
<% if( MemberID != 0 ) { %>
<goto next="#frmPinOnly"></goto>
<% } else { %>
<goto next="#frmLogin"></goto>
<% } %>
</block>
<catch event="help" >
<prompt>
<audio src="audio/Prophecy/NoMatch_Prophecy.wav" fetchhint="prefetch">
We did not understand you.
</audio>
</prompt>
<goto next="#frmCheckLocal"></goto>
</catch>
</form>
<form id="frmLogin">
<property name="incompletetimeout" value="2s" />
<block>
<log expr="'************Collecting Logon Information - SSN and PIN**********'" label="trace:?level=VD_INFO"/>
</block>
<field name="ssn" type="digits?length=9">
<prompt bargein="true">
<audio src="audio/Prophecy/DD_Please_Touchtone_or_Say_Your_9_SS_Prophecy.wav" fetchhint="prefetch">
Please touch tone or say your 9 digits social security number now
</audio>
</prompt>
</field>
<field name="pin" type="digits?length=4">
<prompt bargein="true">
<audio src="audio/Prophecy/DD_Please_Touchtone_or_Say_Your_4_PID_Prophecy.wav" fetchhint="prefetch">
Please touch tone or say your 4 digits personal identification number now
</audio>
</prompt>
</field>
<var name="unionName" expr="'None'"/>
<filled namelist="ssn pin" mode="all">
<prompt bargein="false">
<audio src="audio/Prophecy/DD_Please_Stand_by_Prophecy.wav" fetchhint="prefetch">
Please stand by while we access our records
</audio>
</prompt>
<submit next="Authenticate.aspx" method="post" namelist="ssn pin SessionID CallerID CalledID"></submit>
</filled>
<catch event="help" >
<prompt>
<audio src="audio/Prophecy/NoMatch_Prophecy.wav" fetchhint="prefetch">
We did not understand you.
</audio>
</prompt>
<reprompt/>
</catch>
</form>
<form id="frmPinOnly">
<property name="incompletetimeout" value="2s" />
<block>
<log expr="'*************************************Phone Matches a Local 580 Member Checking Identity with PIN*********************'" label="trace:?level=VD_INFO" />
</block>
<block>
<% if( CurrentMember != null ) { %>
<%=CurrentMember.FullName.ToString()%>
<% } %>
</block>
<field name="pin" type="digits?length=4">
<prompt bargein="true">
<break time="200ms" />
<audio src="audio/Prophecy/DD_Please_Touchtone_or_Say_Your_4_PID_Prophecy.wav" fetchhint="prefetch">
Please touch tone or say your 4 digits personal identification number now
</audio>
</prompt>
</field>
<filled namelist="pin" mode="all">
<prompt bargein="false">
<audio src="audio/Prophecy/DD_Please_Stand_by_Prophecy.wav" fetchhint="prefetch">
Please stand by while we access our records
</audio>
</prompt>
<submit next="Authenticate.aspx" method="post" namelist="pin SessionID CallerID CalledID"></submit>
</filled>
<catch event="help" >
<prompt>
<audio src="audio/Prophecy/NoMatch_Prophecy.wav" fetchhint="prefetch">
We did not understand you.
</audio>
</prompt>
<reprompt/>
</catch>
</form>
</vxml>
Code: Select all
protected void Page_Load(object sender, System.EventArgs e)
{
//Initialize call session with callerid and calledid on the first initial request
//from the voice browser.
if (!Page.IsPostBack && Request["session.id"] != null )
{
LogNonAuthenticatedUser();
}
CurrentMember = MemberController.GetCurrentMember(MemberController.GetCallSessionID());
}
protected void LogNonAuthenticatedUser()
{
string callSessionId = (Request["session.id"] != null) ? Request["session.id"] : null;
string callerId = (Request["session.telephone.ani"] != null) ? Request["session.telephone.ani"] : null;
string calledId =(Request["session.telephone.dnis"] != null ) ? Request["session.telephone.dnis"] : null;
MemberID = 0;
HttpCookie cookieCallSessionId = new HttpCookie("CallSessionID", callSessionId);
Response.Cookies.Add(cookieCallSessionId);
// Check if the callerid is from a Local 580 Member
MemberID = MemberController.IsLocal580Member(callerId);
if (MemberID > 0)
{
MemberController.InitializeMemberSessionData(callSessionId, callerId, calledId, MemberID, UnionName.Local580);
MemberController.LogMemberCallActivity(callSessionId, "User: " + MemberID + " has called in");
lawyerNum = false;
}
else
{
MemberController.InitializeMemberSessionData(callSessionId, callerId, calledId, MemberID, UnionName.None);
MemberController.LogMemberCallActivity(callSessionId, "Beginning authentication");
if (callerId.Substring(0, 6) == "212732")
lawyerNum = true;
else
lawyerNum = false;
}
}
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0">
<form id="CallTransfer">
<block>
<submit next="Login.aspx" method="post" namelist="session.id session.telephone.ani session.telephone.dnis"></submit>
</block>
</form>
</vxml>