CallXML 3.0 Development GuideHome  |  Frameset Home


<oncparesult>  element

DEPRECATED ELEMENT -- use the <on event="cparesult:(result)"> handler element instead
The <oncparesult> element is an event handler for Call Progress Analyzer, (CPA), related events/results.  A CPA event/result can occur at any time while the CPA is active.  When encountered, the CallXML browser will interrupt the current block of execution, and process the corresponding <oncparesult> handler.

Note that while the <oncparesult> tag does not have any 'parent' elements per-se, it is considered a 'stepchild' element of <call> and <onanswer> tags. Logically speaking, the only time that <oncparesult> can be executed is after a <call> that specifies specific CPA parameters is placed, and after the <onanswer> event handler is executed upon callee pickup.

Also note that only one 'type' may be specified per tag; the following code would be considered invalid, and should be expected to throw a fatal error in the application:


<oncparesult type="beep, machine">
  <log value="got a machine"/>
</oncparesult>



usage
<oncparesult type="(beep|faxtone|human|machine|machinedetected|modem|sit|unknown)">


attributes
typeData Type: (beep|faxtone|human|machine|machinedetected|modem|sit|unknown)Default: none - attribute is required
The 'type' attribute is used to denote the event that is trapped from the Call Progress Analyzer return value, so that the developer may perform logic based on this result.



code samples
<DEPRECATED ELEMENT IN CALLXML3.0>
<?xml version="1.0" encoding="UTF-8"?>

<callxml version="3.0">
  <!--

    In CallXML 3.0, this element has been deprecated in favor
    of the more modular 'on' element.

    While we retain backwards compatibility for this particular
    tag in the CallXML3.0 markup, it is advisable to use the 'on'   
    element in your code.

 
-->
</callxml>



additional links
none


  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