cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
467
Views
0
Helpful
1
Replies

Play a Prompt with Jtapi

soares.ana
Level 1
Level 1

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

stephan.steiner
Spotlight
Spotlight

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.

View solution in original post

1 Reply 1

stephan.steiner
Spotlight
Spotlight

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.