QName | Type | Fixed | Default | Use | Inheritable | Annotation |
---|---|---|---|---|---|---|
cond | ECMAScript.expression | true | optional | |||
event | xsd:string | optional | ||||
state | xsd:string | optional |
Element | eventprocessor |
<xsd:element name="transition"> <xsd:complexType> <xsd:choice minOccurs="0" maxOccurs="unbounded"> <xsd:group ref="executableContent"/> </xsd:choice> <xsd:attribute name="state" type="xsd:string"/> <xsd:attribute name="event" type="xsd:string"/> <xsd:attribute name="cond" default="true" type="ECMAScript.expression"/> </xsd:complexType> </xsd:element> |
< ccxml xmlns = "http://www.w3.org/2002/09/ccxml" version = "1.0" > |
< log expr = "'The number called is' + event$.connection.remote + '.'" /> |
< if cond = "event$.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> |
< log expr = "'Call was answered,Time to disconnect it.'" /> |
< disconnect/> |
</ transition> |
< log expr = "'Call has been disconnected. Ending CCXML Session.'" /> |
< exit/> |
</ transition> |
</ eventprocessor> |
</ ccxml> |