Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Voicetools » How to debug openVXML?
How to debug openVXML? [message #578063] Mon, 23 February 2009 08:17
Legal is currently offline LegalFriend
Messages: 4
Registered: July 2009
Junior Member
Can I use web browser debug an openVXML project with a "Question" module?

For sample, I created:
Begin->Prompt Module->Question Module(with DTMF grammar)->(If got
something)Prompt Module 2->(noinput or error)Prompt Module 3->End Call Module.
So, I verify the openVXML project by:
1: http://192.168.0.247:8880/S3/CollectPin
2:
http://192.168.0.247:8880/S3/-/next ;jsessionid=F68BB07A6ED4BCEB7C237FD2F869D30C?cbb0fc79382a4f0 39e6f8eb5fef8b1cd=success.filled
3: http://192.168.0.247:8880/S3/-/next

I couldn't get correct response by inputing
http://192.168.0.247:8880/S3/-/next?73e5043c1d154552a3b3bfd1 2d0ab4c2=success.filled&PinNumber=123456,
Could I?

After 3, I got the following on my IE:
<?xml version="1.0" ?>
- <vxml xmlns="http://www.w3.org/2001/vxml" version="2.0">
- <form id="InputRequestForm" scope="document">
- <field name="PinNumber">
<property name="timeout" value="10s" />
<property name="inputmodes" value="dtmf" />
<property name="interdigittimeout" value="10s" />
<property name="termtimeout" value="60s" />
<property name="termchar" value="D" />
- <prompt bargein="true" xml:lang="en-US">
<audio src="/S3/-/resources/English/InputPin.wav" />
</prompt>
<grammar mode="dtmf" type="application/srgs+xml"
src="/S3/-/resources/English/PIN.grxml" />
- <filled>
<var name="lastresult" expr="'<lastresult>'" />
<script>for(var i = 0; i < application.lastresult$.length; i++) {
lastresult = lastresult + '<result>'; lastresult = lastresult +
'<confidence>' + application.lastresult$[i].confidence + '</confidence>';
lastresult = lastresult + '<utterance><![CDATA[' +
application.lastresult$[i].utterance + ']]></utterance>'; lastresult =
lastresult + '<inputmode><![CDATA[' + application.lastresult$[i].inputmode
+ ']]></inputmode>'; lastresult = lastresult + '<interpretation><![CDATA['
+ application.lastresult$[i].interpretation + ']]></interpretation>';
lastresult = lastresult + '</result>'; } lastresult = lastresult +
'</lastresult>';</script>
<submit
next="/S3/-/next?73e5043c1d154552a3b3bfd12d0ab4c2=success.filled "
method="get" namelist="PinNumber lastresult" />
</filled>
- <noinput>
<submit
next=" /S3/-/next?73e5043c1d154552a3b3bfd12d0ab4c2=error.input.noin put "
method="get" namelist="PinNumber" />
</noinput>
- <nomatch>
<var name="lastresult" expr="'<lastresult>'" />
<script>for(var i = 0; i < application.lastresult$.length; i++) {
lastresult = lastresult + '<result>'; lastresult = lastresult +
'<confidence>' + application.lastresult$[i].confidence + '</confidence>';
lastresult = lastresult + '<utterance><![CDATA[' +
application.lastresult$[i].utterance + ']]></utterance>'; lastresult =
lastresult + '<inputmode><![CDATA[' + application.lastresult$[i].inputmode
+ ']]></inputmode>'; lastresult = lastresult + '<interpretation><![CDATA['
+ application.lastresult$[i].interpretation + ']]></interpretation>';
lastresult = lastresult + '</result>'; } lastresult = lastresult +
'</lastresult>';</script>
<submit
next=" /S3/-/next?73e5043c1d154552a3b3bfd12d0ab4c2=error.input.noma tch "
method="get" namelist="PinNumber lastresult" />
</nomatch>
</field>
</form>
- <catch event="connection.disconnect.hangup">
<goto next="/S3/-/abort" />
</catch>
</vxml>

Thanks!
Legal,
Previous Topic:VTP Browser API
Next Topic:How to debug openVXML?
Goto Forum:
  


Current Time: Thu Nov 27 08:39:33 GMT 2014

Powered by FUDForum. Page generated in 0.01918 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software