| CCXML Voxeo 1.0 Development Guide | Home | Frameset Home |
|
<voxeo:sendemail> element. Adding these few simple lines of code to your Call Control XML applications will serve as an immense help when you attempt to debug your apps. Using this combo will, predictably enough, send you an email that details the error whenever your application takes a high dive:
<transition state="'fetching'" event="error.fetch" name="evt">
<log expr="'*** FETCH ERROR [' + evt.error + '] ***'"/>
<!-- CATCH ERROR, AND SEND EMAIL -->
<voxeo:sendemail to="'yourEmail@there.com'"
from="'myApp@here.com'"
type="'debug'"
body="'We had an error! \n Time to panic! \n
Flee the cities, abandon all hope! \n
Or, just send this email to the support
folks.'"/>
<exit/>
</transition>
<voxeo:sendemail> tag within our handy element listing.<goto>, or <send> elements point to an existing page. Also check your 'src' attributes for any 'wavurl', parameters and the like to ensure that they are pointing to valid destinations.<transistion>, <eventhandler>, and <assign>, you should include a log statement as well to help track variable errors in your code. Remember, it takes but a few seconds to add a log statement, but hours to track down errors......you make the choice.
| ANNOTATIONS: EXISTING POSTS |
| login |
|