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

Data Exchange

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
neilstebbing
Posts: 23
Joined: Mon Jun 28, 2010 1:24 pm

Data Exchange

Post by neilstebbing »

i need some help getting data from an external source such as SQL in a windows IIS environment.

<?xml version="1.0"?>
<vxml version="2.1">
<form>
<subdialog name="sub" src="http://10.2.110.132/IVR/subdialog.aspx"/>
<block>
<value expr="sub.text"/>.
</block>
</form>
</vxml>

subdialog.aspx.............
<%@ Page Language="VB" %>
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Me.litMsg.Text = "why is this not working"
End Sub
</script>

<?xml version="1.0" encoding="utf-8"?>
<vxml version="2.1">
<form>
<block>
<var name="text" expr="<asp:Literal runat='server' ID='litMsg' />"/>
<return namelist="text"/>
</block>
</form>
</vxml>

neilstebbing
Posts: 23
Joined: Mon Jun 28, 2010 1:24 pm

Re: Data Exchange

Post by neilstebbing »

Last Call Log

Thu 02 Dec 2010 08:42:44 AM CST:

Call Start Event: ANII 2252058062 DNIS 9224241 VURL /usr/local/plumvp/config/director.vxml
DocumentParser::FetchDocument()
DocumentParser::FetchDocument(/usr/local/plumvp/config/director.vxml)
Attempting to fetch file:///usr/local/plumvp/config/director.vxml
Click here to view saved VoiceXML script
VXI::var_element(name="ani" expr = "session.telephone.ani")
VXI::var_element(name="dnis" expr = "session.telephone.dnis")
VXI::var_element(name="id" expr = "session.id")
VXI::var_element(name="callee_type" expr = "session.telephone.callee_type")
VXI::var_element(name="ani" expr = "session.telephone.ani")
VXI::var_element(name="dnis" expr = "session.telephone.dnis")
VXI::var_element(name="id" expr = "session.id")
VXI::var_element(name="callee_type" expr = "session.telephone.callee_type")
http://10.2.110.132/Ivr/Database.vxml
DocumentParser::FetchDocument(http://10.2.110.132/Ivr/Database.vxml)
Attempting to fetch http://10.2.110.132/Ivr/Database.vxml
Click here to view saved VoiceXML script
VXI::queue_prompts()
DocumentParser::FetchDocument(http://10.2.110.132/IVR/subdialog.aspx)
Attempting to fetch http://10.2.110.132/IVR/subdialog.aspx


Thu 02 Dec 2010 08:42:45 AM CST:

Click here to view saved VoiceXML script
VXI::var_element(name="text" expr = "I think this works")
missing ; before statement line 1
SyntaxError: missing ; before statement line 1
received event: error.semantic.ecmascript:
bargein set to true
INPUTMODES set to "DTMF VOICE"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak>
A serious error of type </speak>
---------
bargein set to true
INPUTMODES set to "DTMF VOICE"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak>error.semantic.ecmascript</speak>
---------
bargein set to true
INPUTMODES set to "DTMF VOICE"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak> has occurred. Exiting. </speak>
---------
VXI::exit_element()
starting playback: bargein=true, inputmodes="dtmf speech"
Newly queued prompts are now being played


Thu 02 Dec 2010 08:42:51 AM CST:

Call End Event
Ending session
Ending Session On Channel 31

neilstebbing
Posts: 23
Joined: Mon Jun 28, 2010 1:24 pm

Re: Data Exchange

Post by neilstebbing »

The vxml script from the call log...everything looks fine...?????

<?xml version="1.0" ?>
- <vxml version="2.1">
- <form>
- <block>
<var name="text" expr="I think this works" />
<return namelist="text" />
</block>
</form>
</vxml

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

Re: Data Exchange

Post by support »

Hi,

The IVR error you had received in your second post, the "error.semantic.ecmascript" was caused by this line:

Code: Select all

<var name="text" expr="I think this works" />
The platform thinks that you are assigning the variable text the value of another variable named "I think this works". To assign a string you would need single quotes around the string.

Code: Select all

<var name="text" expr="'I think this works'"/>
Hope this helps.

Regards,
Plum Support

neilstebbing
Posts: 23
Joined: Mon Jun 28, 2010 1:24 pm

Re: Data Exchange

Post by neilstebbing »

Thank you. that worked...i changed my vbscript to...Me.litMsg.Text = "'why is this not working'"

and then it worked as per your reply... :D :D :D

Post Reply