11-30-2005 02:03 AM - edited 03-15-2019 03:53 AM
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=10.10.5.23,port=20360).
When I open phone's web page (http://10.10.5.23/) and go to stream statistic I see:
Remote Address 10.10.5.231/28000
Local Address 10.10.5.23/20360
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: 10.10.5.231:28000
Created RTP session Dest: 10.10.5.23:20360
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?
Zdenko
11-30-2005 03:58 AM
Are you using the AVTransmit2 from the JMF pages at Sun, or the modified version I posted in this forum (G.711 streaming example)?
11-30-2005 05:01 AM
I am using sample you posted, with modification of localAddr:
sourcePort = 28000 + 2 * i; //specified in JTAPI initialization
localAddr = new SessionAddress( localHost, sourcePort);
12-01-2005 03:04 AM
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.
Zdenko
12-21-2005 10:58 PM
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?
Cheers
12-22-2005 08:24 AM
If you are referring to the AVTransmit2.java 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.
01-09-2006 07:06 PM
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?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide