QName | Type | Fixed | Default | Use | Inheritable | Annotation | |
---|---|---|---|---|---|---|---|
conf | optional | ||||||
version | ccxml.version | required | |||||
xml:base | xs:anyURI | optional |
|
||||
xmlns | optional |
<xsd:element name="ccxml"> <xsd:complexType> <xsd:choice minOccurs="0" maxOccurs="unbounded"> <xsd:group ref="ecmaScriptElements"/> <xsd:element ref="eventprocessor" minOccurs="1" maxOccurs="1"/> <xsd:element ref="meta" minOccurs="0" maxOccurs="unbounded"/> <xsd:element ref="metadata" minOccurs="0" maxOccurs="unbounded"/> </xsd:choice> <xsd:attribute name="version" use="required" type="ccxml.version"/> <xsd:attribute ref="xml:base"/> <xsd:attribute ref="xmlns"/> <xsd:attribute ref="xmlns:conf"/> </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> |