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

Created by: null on 28-04-2003 09:11:36 PM
Hi,
Can you please give us an example for setting (triggering) a custom vxml event and the java program which gets triggered by this event?

Our idea is to use "Hotevent" for taking certain actions on the call. This hotevent should get triggered by an external event like a jms message (in the server).

The userdocument mentions about credit card processing and interrupt on-hold, but doesn't provide a good example on using them.

I appreciate your help.

Subject: RE: Example for Hotevent
Replied by: null on 28-04-2003 11:33:10 PM
The code for a hotevent is called when the Audium Server first starts, and then is [b:cd5748daba]never called again[/b:cd5748daba] for that phone call. Its only purpose is to generate the VoiceXML that appears within the call's root document. It must be a Java class because that is the only way to define VoiceXML with Audium - through the Voice Foundation Classes (VFCs). The Audium Server runs this class only to get the VoiceXML, the places it in the root document for that call. Due to the nature of the root document, it only needs to be generated once per call.

Remember, a hotevent is used to catch a [i:cd5748daba]VoiceXML[/i:cd5748daba] event, not a JMS or other Java-based event. In the examples that mention an asynchronous event, the event itself is thrown by the voice browser as a VoiceXML event which is caught in the root document. You need to interface with to the voice browser through its API to have it throw this event. So while you could not have the hotevent triggered automatically by a JMS event, you could have the JMS event trigger a servlet or something that then initiates the communicaton with the voice browser telling it to throw the event. You configure the hotevent to go to an action element where you can define Java code that does whatever you wish.

Just to let you know, the only voice browser as far as I know that has this ability is VoiceGenie.

I will take a look at the documentation for the hotevent and see if there is any confusion as to what it is intended on handling.
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