This document was generated from CDN thread
Created by: null on 22-10-2003 07:27:33 AM
I just created an "Voice" Application that gets name and Zip code from a user and playit back to him using a dynamic configuration class. When you run that application it hangs up when it reaches the action element. Application is attached. Will Audium create a database by itself? From the documentation I could see that the developer has to set up only the JNDI and the Audium will create the tables and read information back from those tables. Am I right?
Can you please check this application and correct the coding error in it?
Subject: RE: Action Element not responding
Replied by: null on 22-10-2003 05:49:26 PM
Hi Jaison,
First of all, your application contains nothing but Audio elements. All an audio element does is play some audio. If you want to capture some data from the caller you need to use another element. As I mentioned to you in a previous post, you can use a Form element to capture a name and the Digits element to capture a zipcode. Until you change this in your application, all it will do is play the audio and hang up, it will not wait for the caller to say or enter anything.
Your action element is correctly written, it crashes because you are looking for element data containing the name and the zipcode but that element data is not created because you are using the wrong elements.
Secondly, you do not need to use a dynamic configuration to play back the name and the zipcode. Since these values are already in element data, you can configure the playback in the Audium Builder entirely, you don't need to do any programming.
Thirdly, the Audium user management system does not create the DATABASE for you, that you have to do on your own. It creates all the TABLES in the database. So simply create a new database and when the Audium Server starts running, it will create the appropriate tables.
I highly recommend you go over the Tutorials document to clarify how to build a call flow including elements that capture data. Chapter 2 is one such application. For more information on the user management system, please refer to the User Guide.
Hope this helps!