03-30-2007 04:22 AM - edited 03-13-2019 04:02 PM
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
Solved! Go to Solution.
03-30-2007 12:12 PM
If you check the JTAPI doc, it has a list of supported and unsupported JTAPI methods. Unfortuantely, media playback and recording are not amongst the supported features.
So the solution here would be to look into a G.711 streaming. I have posted a sample app in this very forum in the past (don't ask for it.. please use the search engine), and combining RTP streaming with the media capabilities of a CTI Port via JTAPI you can get to where you need to go. In fact, several people have reported that they've successfully built such applications based on the RTP streamer.
03-30-2007 12:12 PM
If you check the JTAPI doc, it has a list of supported and unsupported JTAPI methods. Unfortuantely, media playback and recording are not amongst the supported features.
So the solution here would be to look into a G.711 streaming. I have posted a sample app in this very forum in the past (don't ask for it.. please use the search engine), and combining RTP streaming with the media capabilities of a CTI Port via JTAPI you can get to where you need to go. In fact, several people have reported that they've successfully built such applications based on the RTP streamer.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide