State transition from ALERTNG to CONNECTED in CCXML

Hi,

Consider the following <transition> in a CCXML document. While entering the
transition for "connection.alerting" event, the Connection State = ALERTING.
As soon as the <accept> tag is encountered, lets say a command is sent to
the underlying Telephony component to accept the incoming call. Should the
Connection state be changed to CONNECTED, regardless of the success or
failure of accept command? 

Subsequently, if accepting the incoming call fails, which event should be
thrown - "error.connection" OR "connection.failed"?

 

<transition event="connection.alerting">          <!--For connectionid =
1234 -->

      <accept/>

      <if cond ="session.connections['1234'].state == 'CONNECTED' ">

             <log expr=" 'State changed' "/>

      <else/>

             <log expr=" 'State not changed' "/>

      </if>

</transition>

    For the above transition, is the "State changed" log sent out?

 

    Thanks,

    Jaya   

 

****************************************************************************
***********

            This e-mail and attachments contain confidential information
from HUAWEI, which is intended only for the person or entity whose address
is listed above. Any use of the information contained herein in any way
(including, but not limited to, total or partial disclosure, reproduction,
or dissemination) by persons other than the intended recipient's) is
prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!

 

Received on Thursday, 12 October 2006 21:56:42 UTC