W3C home > Mailing lists > Public > www-voice@w3.org > October to December 2005

CCXML <transition> element

From: Hrvoje Nezic <hrvoje.nezic@envox-lab.hr>
Date: Fri, 25 Nov 2005 17:16:07 +0100
Message-ID: <001001c5f1db$8ea77c40$d301a8c0@envox.local.hr>
To: <www-voice@w3.org>
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 Friday, 25 November 2005 16:16:31 GMT

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