| CallXML 3.0 Development Guide | Home | Frameset Home |
<on event="cparesult:(result)"> handler element instead<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.<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.
<oncparesult type="beep, machine">
<log value="got a machine"/>
</oncparesult>
| type | Data 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. | ||
| <?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> |
| ANNOTATIONS: EXISTING POSTS |
| login |