« Back to Cisco JTAPI Questions

MediaTerminalConnection Support

Combination View Flat View Tree View
Threads [ Previous | Next ]
I am trying to implement something with JTAPI that it functions like an
IVR,I need to play something when a incoming call arrive.

To do that I have done this:

TerminalConnection tconn = null;
MediaTerminalConnection mtc = null;
if (callEv instanceof TermConnCreatedEv) {
tconn = ((TermConnCreatedEv)callEv).getTerminalConnection();
mtc = (MediaTerminalConnection)tconn;
try {
mtc.usePlayURL(new URL("file:/welcome.au"));
} catch (Exception excp) {
excp.printStackTrace();
}
}
but this code cause an exception that says com.cisco.jtapi.MethodNotSupportedExceptionImpl: Unimplemented

I look at the "Cisco JTAPI Developer Guide" documentation in the Appendix showing the MediaTerminalConnection.usePlayURL method is not supported.

How can I achieve this function? thanks.

Correct. The Cisco JTAPI implementation does not include an audio stack (as these tend to be platform specific.)

You will need to use something like Java Media Framework or JavaSound to provide the media playback/record stack.

Thanks!

Is it possible to receive an sample for using MediaTerminalConnection with jvm for recording purpose?
It is very urgent.
Thanks