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">
    <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.'"/>
        <log expr="'We like you! We are going to answer the call.'"/>
    <transition event="connection.connected">
      <log expr="'Call was answered,Time to disconnect it.'"/>
    <transition event="connection.disconnected">
      <log expr="'Call has been disconnected. Ending CCXML Session.'"/>

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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:07:38 UTC