assistance connecting to an .asp document
Posted: Fri Aug 03, 2007 1:45 pm
I have a test developers account and I am encountering issues while trying to fetch a phone number from a remote .asp page. I would appreciate any assistance debugging this document.
This xml code is located at
http://69.64.172.152:1920/PlumVoice/default4.aspx
Any help is welcome.
Thanks,
Ben
This xml code is located at
http://69.64.172.152:1920/PlumVoice/default4.aspx
I am accessing that code with this vxml application:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<returnnumber>
<outboundnumber>
4808943105
</outboundnumber>
</returnnumber>
When I run this application, the plum voice output is "testing unknown number"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE vxml PUBLIC "-//The Plum Group//Voice Markup Language 2.0//EN"
"http://vxml.plumgroup.com/vxml-221.dtd">
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml">
<form id="get_number">
<block>
<data name="returnnumber" srcexpr="'http://69.64.172.152:1920/PlumVoice/default4.aspx'"/>
<assign name="document.returnnumber" expr="returnnumber.documentElement"/>
<goto next="#display_number"/>
</block>
</form>
<form id="display_number">
<script><![CDATA[
function GetRoutedNumber(nodata)
{
try {
return returnnumber.documentElement.getElementsByTagName("outboundnumber").item(0).firstChild.data;
}
catch(e)
{
// the value could not be retrieved, so return this instead
return nodata;
}
}
]]>
</script>
<block>
<var name="number" expr="GetRoutedNumber('unknown number')"/>
<prompt>
Testing <value expr="number"/>
</prompt>
</block>
</form>
</vxml>
Any help is welcome.
Thanks,
Ben