cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
28
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: null on 24-09-2004 01:06:17 PM
Is there any reason we should not do "Action" type operations from within a voice element? We have a number of elements that do database lookups, and we want to handle various error conditions by throwing a vxml event, and then catching it in a Hotevent. The only way I can think of doing this with an action element is to have various different exit states, and then have a different custom voice element that throws the event. However, it would cut down the clutter considerably to throw the event from the elment that performs the action.

I know that we "can" do the action from a voice element. I would like to hear your opinion on whether or not we "should" do this.

Thanks,
Paul

Subject: RE: Doing actions from voice elements
Replied by: Michael Bochynski on 24-09-2004 08:09:49 PM
Hi Paul,

There are no restrictions on adding â¿¿actionâ¿¿ part to a voice element. It is up to the developer, whether he/she wants to use only action elements for any kind of â¿¿actionâ¿¿ and voice elements for VXML part of an application, or combine them in terms of functionality.

The very good example of incorporating â¿¿actionâ¿¿ part into a voice element can a Login element. This element would not only gather caller's login and PIN, but also validate the information against a database or any other external resource. This solution can also be done in two elements, however using just one element adds more clarity to the call flow.

Hope this helps,
Michael
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links