QName | Type | Fixed | Default | Use | Inheritable | Annotation |
---|---|---|---|---|---|---|
connectionid | ECMAScript.expression | optional | ||||
hints | ECMAScript.expression | optional | ||||
reason | ECMAScript.expression | optional |
Element Group | telephonyActionElements |
<xsd:element name="disconnect"> <xsd:complexType> <xsd:attribute name="connectionid" type="ECMAScript.expression"/> <xsd:attribute name="reason" type="ECMAScript.expression"/> <xsd:attribute name="hints" 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> |