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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

AVTransmit2 example - I hear nothing

Hi all,

I am converting TAPI IVR application to JTAPI/JMF.

There are working CTI ports (tested with Cisco wave driver).

Test applications adds observers to CTI port and when I make call from device (7960), test application is notified and it answers call. As soon as call is answered "CiscoRTPOutputStartedEvImpl" event is sent. From event data I read host and port (Host=,port=20360).

When I open phone's web page ( and go to stream statistic I see:

Remote Address

Local Address

Using AVTransmit2 class I start RTP session (AVTransmit2 is modified to use local port which is specified in CiscoMediaTerminal.register() method).

In log I can see:

Created RTP session Source:

Created RTP session Dest:

Network sniffer shows UDP packets but I hear nothing.

Wav file is 44100kHz, 16 bit, stereo.

When terminal was registerd CiscoMediaCapability is CiscoMediaCapability.G711_64K_30_MILLISECONDS

I suppose there is a problem with data format.

As I see from discusion example works, but it does not work for me.

Any sugestion how to solve proble?



Re: AVTransmit2 example - I hear nothing

Are you using the AVTransmit2 from the JMF pages at Sun, or the modified version I posted in this forum (G.711 streaming example)?

New Member

Re: AVTransmit2 example - I hear nothing

I am using sample you posted, with modification of localAddr:

sourcePort = 28000 + 2 * i; //specified in JTAPI initialization

localAddr = new SessionAddress( localHost, sourcePort);

New Member

Re: AVTransmit2 example - I hear nothing

Problem solved.

Problem was in wav file format. I tried with different file and it works.

"Bad" wav file was created using Windows sound recorder.


New Member

Re: AVTransmit2 example - I hear nothing

Hi. I was just looking over your conversation and was wondering, do you still have an example of your previously posted code? It sounds relevant to what I am doing. Could you tell me where I can find it?



Re: AVTransmit2 example - I hear nothing

If you are referring to the code posted previously be Stephan, you can find it in this thread:

Stephan initially posted it at the beginning of that thread, but the download expired, so he reposted it on the second page of the thread.

New Member

Re: AVTransmit2 example - I hear nothing

Hi I am doing a simillar project- creating an IVR using jtapi and CISCO IP phones, except the CTI route point calls an extension. The phone rings and then when I pick it up, the program outputs that transmission is in progress and the AVreceive is waiting for RTP data. The problem is a) there is no sound over the phone and b) after a few seconds, the phone goes to engaged tone i.e dead noise first then tone.

Since you seem to be extremely knowledgable in this area, I wondered if you could help me. How do I make the CISCO phone "listen"? I am using AVtransmit and receieve -using the same port number etc. I want to use uni-cast although I am running the ap on one computer (also containing cm). Do you know if you have to use media service bind methods?

CreatePlease login to create content