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.

Posted in IVR Developer, Outbound IVR |

PBX or IVR for Multiple Companies

Downloaded and installed your program. Set up Voicenet gateway. (Some problems but it at least says it’s now running) I have 2 extensions set up going to 2 external numbers. I have no internal extension so I don’t believe I can do an outgoing call. When I call in (through what I believe the Voicenet gateway) my VOIP provider is playing the message that the call can not go through. So, I suspect they are not talking well with you. On their panel I do not see they are having a problem talking to you. My questions are:

1) What’s my next step to test operation?

Make sure that inbound calling has been enabled. To do this, in the Voicent Gateway, go to Setup->Options and click the Inbound tab.
The first checkbox will say ‘Do not pick up incoming calls’
This is checked by default because of the popularity of outbound Voicent programs. You will need to uncheck it.

2) If your PBX only allows one main menu, that implies I can use this for only 1 company. (I have a few companies that people call me on and I would like to have each number forward to my PC or office as needed.

In order to do this you will need IVR Studio. In the Voicent Gateway input your multiple SIP IDs. Then in IVR Studio use the system variable __VG_PHONE_LINENO__ to rout the line to your specific company.

3) If I can have more than one main auto-attendant can I limit exenstions by DID/autoattendant?

Yes, using the method outlined above.

Posted in IVR Usage | Tagged , , , , ,

Add user name to an automated message

… Our computer will call the number and add the name into an automated message. “Hello, John Doo. For more info press 1, to hear the message again press 2″. the system should know if a person or answering machine has answered. if a person answers, it needs them to input a number on the dial pad, giving our system a ‘receipt’ of the call. if an answering machine answers, our system needs to hang up and call again.

IVR Application

This is a typical outbound IVR application that you can design using Voicent IVR Studio. Within the tool’s GUI environment, you can create a simple call flow graph that captures all the interactions mentioned above. The tool supports email, database, java program, and web integration so it should be easy to generates a receipt for the call, either through logging or directly saving data to your database.

We have many samples and training video for IVR Studio. You can start with the IVR Tutorial first. Once you are familiar with the tool, the following two answers are specific to your application:

1. Voicent software automatically detects live answer and answering machines. In IVR Studio, there are two top level nodes, one for live answer and the other for answering machine. You can then create your specific interaction under these nodes accordingly.

2. For every outbound call, the called phone number and name are available in your IVR app. So all you need to do is to include them (__VG_CALLED_NAME__, and __VG_CALLED_NUMBER__) in your prompt message.

Outbound Call

In addition to the IVR design tool, you’ll need outbound call capability. You can use Voicent gateway with outbound license. To trigger an outbound call using the IVR app you designed, please take a look at the Extended Simple Call Interface of Voicent Gateway. It may just be a single line of code:

call_ivr('123-456-7890', 'my_ivr_app')

For more info on this interface, please see Voicent Developer Center.

Give it a try

The best way to get started is download the software and give it a try. The free trial version has ad message for each phone call, but there is no time limit.

Posted in Outbound IVR |