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

Created by: null on 04-10-2006 02:06:59 AM
I want to create one custom element to connect to databse - How do I do it?
[/color:cea531d53e]

Subject: RE: Custom element creation
Replied by: Michael Bochynski on 04-10-2006 07:01:12 PM
Hi Kumar,

Audium Call Services allows you to add your own custom elements, interacting either with the caller or with an external system(s) or both. The first ones â¿¿ Voice Elements â¿¿ produce VoiceXML and are designed to gather input from the callers. The latter ones, when you interact with an external entity, such as database, are either Action elements or Decision elements.

The difference between an Action element and a Decision element is the number of exits. The Action element will always have one exit only. The example could be storing data in a database or sending an email. Decision element, on the other hand, besides exchanging information with an external system can have multiple exit states. A good example would be an element validating the account number. First a connection to a database would be established and then if the given account exists, a PASS exit state would be returned. Otherwise a FAIL exit state would be returned.

Whether to choose an Action element or a Decision element is it up to the developer and particular requirements. In your case, you could use either of the two.

Note however that Audium software comes with built-in Database element that allows to do basic SQL such as INSERT, SELECT or UPDATE.

Please refer to the Element Specification for further details about the built-in Database elements. Element Specification documentation is available at:
http://www.audiumcentral.com/supportcenter/viewtopic.php?t=2402

Please also refer to the Programmer Guide for details on creating own custom code:
http://www.audiumcentral.com/supportcenter/viewtopic.php?t=2404

You can find sample code for various types of elements in our Sample Java code forum, available at:
http://www.audiumcentral.com/supportcenter/viewforum.php?f=55

Please also refer to our JavaDocs for details about available API at:
http://www.audiumcentral.com/supportcenter/viewtopic.php?t=2401

Note that our Knowledge Base contains several articles which might be helpful when creating custom elements. Audium Knowledge base is available at:
http://kb.audiumcentral.com

Hope this helps,
Michael

Subject: custom elemnt
Replied by: null on 05-10-2006 12:55:08 AM
Hi ,

Can anyone have a code to create custom element which retrieves info from database.
thanks

Subject: RE: custom elemnt
Replied by: Michael Bochynski on 05-10-2006 04:04:59 PM
Hi Kumar,

Note that a java code that you write is the same as you would write it for any other Java application, regardless whether it for Call Services or not.
The best resource are your peers, since there might be specific implementations you have internally. You can also search the Internet for sample code on accessing the database using Java. You might want to start at:

http://java.sun.com

where you can find a lot of great Tutorials on writing Java code.

Moreover, you can have a look at this post here:

http://www.audiumcentral.com/supportcenter/viewtopic.php?t=1192

It contains Java templates for custom elements to use in Audium software. All you have to do is add your own code to perform custom tasks, such as accessing a database.

Regards,
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