CCXML Voxeo 1.0 Development GuideHome  |  Frameset Home

This documentation is for CCXML 1.0-Voxeo, which has been superceded by CCXML 1.0-W3C. The CCXML-Voxeo platform is not being updated any longer. The CCXML 1.0-W3C version, however, has many new features and is actively being enhanced. If you're writing a new CCXML application, you should use CCXML 1.0-W3C. Click here for the CCXML 1.0-W3C documentation.
<reject>  element

The <reject> tag is an element used for call authentication, in most cases. When encountered the CCXML document will reject an incoming phone call.  Rejected phone calls will go unanswered and may return a fast busy to the caller.


usage
<reject callid="(ECMAScript Expression)" reason="(ECMAScript Expression)">


attributes
callidData Type: (ECMAScript Expression)Default: none - attribute is required
This attribute returns a string indicating the incoming call leg to be rejected. True to form, if this optional attribute is unspecified, then the current event id is used to indicate the callid to be rejected.
reasonData Type: (ECMAScript Expression)Default: none - attribute is optional
The reason attribute returns a user-defined ECMAScript string indicating the reason for the call being rejected



parents
none


children
none


code samples
<Reject callid> sample
<?xml version="1.0" encoding="UTF-8"?>
<ccxml version="1.0">
  <eventhandler>
    <transition event="connection.CONNECTION_ALERTING" name="evt">
      <log expr="'The called ID is ' + evt.calledid + '.'"/>

      <if cond="evt.calledid == 'xxxxxxxxxx'">
        <reject/>
      <elseif cond="evt.calledid == 'oooooooooo'"/>
        <reject callid="evt.callid"/>
      <else/>
        <accept/>
      </if>

    </transition>

    <transition event="connection.CONNECTION_CONNECTED">
      <log expr="'Call was answered.'"/>
      <disconnect/>
    </transition>

    <transition event="call.CALL_INVALID">
      <exit/>
    </transition>

  </eventhandler>

  <log expr="'Application is starting ...'"/>
</ccxml>




additional links
W3C Specification


  ANNOTATIONS: EXISTING POSTS
0 posts - click the button below to add a note to this page

login



© 2008 Voxeo Corporation  |  Voxeo IVR  |  VoiceXML & CCXML IVR Developer Site