| CallXML 3.0 Development Guide | Home | Frameset Home |
|
<?xml version="1.0" encoding="UTF-8" ?>
<callxml version="3.0">
<do>
</do>
</callxml>
<goto> or a <run> is parsed. You do not have to explicitly state that they should be passed. They are always passed, so you cannot prevent them from showing up in your code.
<?xml version="1.0" encoding="UTF-8" ?>
<callxml version="3.0">
<do repeat="3">
<say>Hello there. The caller i d number is:</say>
<log>*** SESSION.CALLERID = $session.callerid;***</log>
<playnumber value="$session.callerid;" format="digits"/>
<say>The called i d of this application is:</say>
<log>*** SESSION.CALLEDID = $session.calledid ***</log>
<playnumber value="$session.calledid;" format="digits"/>
<wait value="3s"/>
</do>
<on event="error">
<sendemail from="MyApp@here.com"
to="YourEmail@there.net" type="debug">
We caught an error in our application. Details follow...
</sendemail>
</on>
</callxml>
<playnumber> is very similar to the callxml <say> tag, except that it will read a number to you instead of text. You use the "format" attribute to switch between reading individual digits, one at a time, and the entire number as if it were a mathematical expression. (i.e., You wanted it to read the number "12345" as " 1 2 3 4 5" not as "12,345". But if you wanted it to read using the latter method, simply change the code ........)
<playnumber value="12345" format="number"/>
<wait> element. As you might remember, this is simply a pausing feature that, in this case, pauses for 3 seconds. This way we can loop through our block, but have a more natural pause before repeating the information. The <wait> tag may also contain a "choices" attribute so that it can get interrupted:
<wait value="3s" choices="12#*"/>
<playnumber> element| ANNOTATIONS: EXISTING POSTS |
hugob
|
|
| Hi.
Just a comment on the 'choices' attribute of the <wait> tag: shouldn't the options be comma seperated? That is, <wait value="3s" choices="1,2,#,*"/> |
|
voxeoJeffK
|
|
| Hi,
Good catch. We'll update the master docs, and the change should go live soon. Thanks, Jeff K. |
| login |
|