Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

Play a Prompt 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 = 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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Play a Prompt with Jtapi

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 REPLY

Re: Play a Prompt with Jtapi

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.

210
Views
0
Helpful
1
Replies
CreatePlease to create content