Play a Prompt with Jtapi

Endorsed Question
Mar 30th, 2007
User Badges:

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

Cisco Endorsed by samangal
stephan.steiner about 10 years 4 months ago

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
stephan.steiner Fri, 03/30/2007 - 12:12
User Badges:
  • Silver, 250 points or more

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.

Actions

This Discussion