Share This Post:
Integrate Java code with IVR
I want to make a call from web application to mobile phone. I am using jsp & java servlet to develop web page in eclipse IDE and mysql database. Now i want to use voicent’s ivr studio to fetch a number from database and make a call to that number and record user voice. I am not getting how to inegrate my java code with ivr studio please help me
First, you can use the Voicent gateway API to make a call. For Java program, this can be a simple one line code:
callText("123-4567", "Hello, how are you doing", 1);
For details of this interface, please see Gateway Java Simple Call Interface.
Second, to record user voices, you need to design a call message that will do so using Voicent IVR Studio. Create a new IVR project for outbound call, and add a Record element to the call flow. Save the IVR design and give it a name like “myapp”. Now you can invoke the outbound call like this:
callText("123-4567", "myapp", 1);
This will trigger a call and use myapp as the call message.
Fetch a number from database
To fetch a number from database and then make a call could be accomplished in two ways. One is to write a generic Java program to access your database, and once the number is fetched, use the API shown above to make a call. There are simple tutorial on Java’s web site showing you how to do that. The other way is through IVR application, which means you are setting up an inbound IVR application to answer calls. And during the call, the IVR application will access the database and fetch a number. If this is the case, please take a look at the database action in Voicent IVR Tutorial.
Share This Post: