- From: RJ Auburn <rj@voxeo.com>
- Date: Sat, 26 Nov 2005 22:33:16 -0500
- To: Hrvoje Nezic <hrvoje.nezic@envox-lab.hr>
- Cc: <www-voice@w3.org>
Hrvoje, Good catch. I will forward this to the working group so we can fix it one way or another. If my memory serves me right however the answer is that the examples are right and the spec is wrong. "name" should allow you to use a variable name that will get auto created at the transition scope if it does not exist. RJ --- RJ Auburn CTO, Voxeo Corporation tel:+1-407-418-1800 On Nov 25, 2005, at 11:16 AM, Hrvoje Nezic wrote: > The CCXML specification states that the "name" attribute of > the <transition> element is: > "An ECMAScript left hand side expression evaluating to a previously > defined variable." > > However, the samples from the same specification don't follow this > proposition. > For example, "Accept or Reject a Call" sample : > > <?xml version="1.0" encoding="UTF-8"?> > <ccxml version="1.0" xmlns="http://www.w3.org/2002/09/ccxml"> > <eventprocessor> > > <transition event="connection.alerting" name="evt"> > <log expr="'The number called is' + evt.connection.remote + > '.'"/> > <if cond="evt.connection.remote == 'tel:+18315551234'"> > <log expr="'Go away! we do not want to answer the phone.'"/> > <reject/> > <else/> > <log expr="'We like you! We are going to answer the call.'"/> > <accept/> > </if> > </transition> > <transition event="connection.connected"> > <log expr="'Call was answered,Time to disconnect it.'"/> > <disconnect/> > </transition> > <transition event="connection.disconnected"> > <log expr="'Call has been disconnected. Ending CCXML > Session.'"/> > <exit/> > </transition> > > </eventprocessor> > </ccxml> > > In this script, "evt" is not a "previously defined variable". > It seems that evt should become a property of the transition > object, but > this is not what the specification says. > > So, it seems that either the samples are not correct or the > specification > for <transition> element is not correct. > >
Received on Sunday, 27 November 2005 03:33:32 UTC