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

Call vb .net function in vxml?

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
soso
Posts: 62
Joined: Tue Apr 22, 2008 8:11 am

Call vb .net function in vxml?

Post by soso »

Hi,

With an aspx page under vb, how do I call a function, with vxml?

Thanks.

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

IVR code example to submit info from VXML doc to ASP doc

Post by support »

Hi,

You cannot call a function with VXML.

VXML is a standard web based technology, it uses HTTP GET/POST requests to send and receive data from any standard web server.

For an IVR code example, here is how you can submit information from a VXML document to an ASP document:

collectinfo.vxml:

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> 
submit.aspx:

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> 
Regards,
Plum Support

Post Reply