W3C home > Mailing lists > Public > www-voice@w3.org > January to March 2002

return from subdialog with event ...

From: Jean-Michel Reghem <reghem@babeltech.com>
Date: Mon, 04 Feb 2002 16:05:42 +0100
Message-Id: <5.1.0.14.0.20020204155944.00a82690@pop.planetinternet.be>
To: www-voice@w3.org, voicexml@smartgroups.com
I have a question about interpretation of specs (voiceXML 1.0) on this 
subject: to set or not to set a subdialog name variable when the subdialog 
return an event ...

I use our VoiceXML server, based on openVXI 1.4 (with a lot of debugging ;-))



When i use a subdialog, with a classic return tag, there is no problem

But, when i use a subdialog which the return tag return an event and not 
some variables, there is an infinite loop:

<?xml version="1.0"?>
<vxml version="1.0">

<!-- Copyright (c) 2001 VoiceXML Forum.  All rights reserved.
   Samples are for illustrative purposes only.
-->

   <form>
     <subdialog name="result" src="#returnevent">
       <catch event="returnevent.event">
                 Received return event from subdialog, test complete.
    </catch>
       <prompt>Calling subdialog that returns an event.</prompt>


     </subdialog>
   </form>

   <form id="returnevent">
     <block>
       <prompt> In subdialog, returning event. </prompt>
       <return event="returnevent.event"/>
     </block>
   </form>

</vxml>



It seems that the return element with event doesn't set "result" as true 
like a return element with classic namelist do ...
Here is the dialog:
- Calling subdialog that returns an event.
- In subdialog, returning event.
- Received return event from subdialog, test complete.
- Calling subdialog that returns an event.
- In subdialog, returning event.
- Received return event from subdialog, test complete.
- Calling subdialog that returns an event.
- In subdialog, returning event.
- Received return event from subdialog, test complete.
...


if i add
<assign name="result" expr="true"/>
in the  <catch event="returnevent.event"> ... </catch>

There is no more problem: the application exit normally after the first 
prompt Received return event from subdialog, test complete.



Is it normal? is it a return tag with event not a condition to fill a 
subdialog (like nomatch, noinput, ...)
VoiceXML 1.0 spec is not really clear about that...


And this example comes from www.voicexml.org ...


What do you think?

Jean-Michel

Jean-Michel Reghem
Voice Technology Development Engineer
E-Mail : mailto:reghem@babeltech.com

Babel Technologies S.A.
Boulevard Dolez 33  B-7000 Mons (Belgium)
Tel: (+32) 65.37.43.06
http://www.babeltech.com
Received on Monday, 4 February 2002 10:04:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 30 October 2006 12:48:54 GMT