Re: Try to create an IVR application with jtapi
Simon Jackson <[email protected]> Wed, 28 Mar 2007 07:08:49 -0400
| Newsgroups | gmane.comp.java.sun.jtapi |
|---|---|
| Message-ID | <[email protected]> |
I got caught with the same exception when implementing park functionality with Cisco. If you look at the documentation in the Appendix showing the base JTAPI support it shows that the MediaTerminalConnection.usePlayURL method is not supported. You may need to use specific Cisco extension classes to implement this. I have not actually done this myself, so I cannot provide example.=20 I hope this helps. Cheers Simon... =20 Simon Jackson=20 Software Development Supervisor=20 Envox UK Ltd=20 Tel: +44 (0)1252 618 865=20 Fax: +44 (0)1252 618 899=20 E-Mail: [email protected]=20 -----Original Message----- From: Discussion list for Java Telephony API [mailto:[email protected]] On Behalf Of Ana Soares Sent: 28 March 2007 11:47 To: [email protected] Subject: [JTAPI] Try to create an IVR application with jtapi 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 =3D null; MediaTerminalConnection mtc =3D null; int state =3D 0; if (callEv instanceof TermConnCreatedEv) { tconn =3D ((TermConnCreatedEv)callEv).getTerminalConnection(); mtc =3D (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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D 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". =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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".