Try to create an IVR application with jtapi

Ana Soares <[email protected]> Wed, 28 Mar 2007 04:46:35 -0600
Newsgroups gmane.comp.java.sun.jtapi
Message-ID <LISTSERV%[email protected]>
Hi everyone,

I am trying to implement something with JTAPI that it functions like an IVR,
I  need to play something when a incoming call arrive.
My Call Manager have the version 4.2(3).
To do that I have done this:
TerminalConnection tconn = null;
            MediaTerminalConnection mtc = null;
            int state = 0;

            if (callEv instanceof TermConnCreatedEv) {
             tconn = ((TermConnCreatedEv)callEv).getTerminalConnection();

             mtc = (MediaTerminalConnection)tconn;
             System.out.println("Terminal Connection Created...");
             try {
              mtc.usePlayURL(new URL("file:./audio/prompt.au"));

             } catch (Exception excp) {
              excp.printStackTrace();
             }
but this code cause an exception that says
com.cisco.jtapi.MethodNotSupportedExceptionImpl: Unimplemented

I don't know if I need some codec, or if this is not the class that I should
be using. I read something that tells that MediaTerminalConnection  has been
substituted by Media Service.

Can anybody help me with this,  give me some ideas or samples please.

Thank you
Ana

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JTAPI-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".