Archive for the ‘voiceXML’ Category.

Servlet Authenticator problem – part 2

I had a problem at the hosting place with an authenticated http request. Now 5 days later it’s finally solved.  5 days mind you is a long time.  It goes something like this.

1. Send in a support request.

2. Wait until the next day.

3. Get answer from a junior person claiming they don’t understand the problem well enough.

4. Repeat

Until finally a senior person or a “tech” takes a look at the problem and solves it.   In other words 5 emails and 5 days later my problem is finally solved, not good.  Yes my place is cheap and has a nice cPanel were you can do most of the administration yourself.  Setup MySql, subdomains, email forwards etc, but if you need help from support…

Anyway, the java servlet is now running, it will pull up my tweet feed and read it to you on the phone.  You can call it here 720-897-8900 or skype call it +990009369990026351

And on a less happier note, LinuxHaters is closing shop.  I’m thinking about doing a petition, any takers ?

Old java project, part 2

I took the old java project from previous post loaded under Eclipse and compiled.   Only got one error, that was broken code anyway.  With that one line commented out I got 429 warnings but no errors, nice.

Started setting up a test configuration at a voice network.   VoiceGenie has been bought by Genesys.  They didn’t have a clear link to the dev section or maybe I just didn’t see it later found it here.  For some reason Tellme does not allow google email address or any free service address, can’t use that.  Voxeo had a clear dev section and got me signed up in a matter of minutes.

I mounted a test application “HelloWorld” of course what else ?   It worked fine out of the box.  Then to try something more daring.   Dusted off an old application “Blackjack”, that ran fine out of the box too.   I’m really surprised pleased to see that an VoiceXml application written in 2001.   Using our java Api ( qIVR ) also from 2001 runs on the current voice network.  That is without changing a single line of code.

If your so inclined you can call the Blackjack application by dialing (720) 897-8933.  If you prefer skype you can use +99000936 9991261498   Maybe you can win a few bucks 🙂  I have to say being able to use skype to call / test the voice apps is a big plus.

How does it work ? The voice network, Voxeo in this instance takes the phone call.   Then it will go to the URL that your application is located at.   It fetches the voiceXml, then It interacts with the user on the phone as instructed by the voiceXml code you give it.  A simple HelloWorld looks something like this.

<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
  <form>
    <block>
      <prompt>
        Hello world!
      </prompt>
    </block>
  </form>
</vxml>

A lot of times apps are served up as static pages.  If your application is more than a handful of pages it becomes hard to handle and maintain.   And that’s exactly why we developed the qIVR “quiver” voiceXml java Api.   qIVR allows you to handle the phone conversation in java code by using java objects.  Without even having to learn voiceXml.   Here is HelloWorld again, qIVR style.

pCall.speak( pCall.factory().qivrPrompt(” Hello world “) );
pCall.hangup();

Old java project, part I

I spent a few hours on the weekend dusting off an old VoiceXML API project.  It was written in Java, according to the file stamps I haven’t touched it since 2001.  I believe we ran under java 1.2 or 1.3 at the time.  I’m interested to know if it will work under 1.5.  Which is the one I have installed.   The project is java server based, loaded Tomcat to see what happens.  As expected nothing works on first try, Error: 500 – Internal Servlet Error. Hmm, not much help from the stack trace javax.servlet.ServletException: qIVR Error. The internal qIVR System Loader has failed. Then I look at the Tomcat trace, that’s better.

***
qIVR Error. License check failed.
qIVR version 1.4.4
***qIVR Error. Configuration error. The Network address specified in the License file does not match the current environment. Please check the qIVR configuration, and/or contact qIVR support.
***

Except I forgot how to generate a license…  Neither did I remember that I had an old copy of the website running on the Tomcat server, sure enough we used to allow users to generate their own evaluation license.

Now with license in hand, let’s see what happens.  Sure enough it works this time around, nice.

RingServlet:  qIVR will use this logfile: qivr.log
RingServlet:  qIVR has detected a new request for application: HelloWorld and Voice network: Tellme
RingServlet:  qIVR will use this base URL: /qivr/
com.qivr.sample.HelloWorld@18f1d7e Start tracing
com.qivr.sample.HelloWorld@18f1d7e main:
com.qivr.sample.HelloWorld@18f1d7e speak: Hello World
RingServlet:  qIVR session started
snip…

For part 2, I’m going to see how it compiles under Java 1.5, I was not expecting it to compile under 1.5 from untouched source.  Since it works on old version of Tomcat under 1.5 then logically it should compile under 1.5 ?  We will find out on the linux box with Eclipse and a new Tomcat.  Then there is another interesting part.  How well will it work against the voiceXml hosting places.  They have for sure evolved since 2001, are those even around today ?