Created by: Mark Oller on 14-09-2010 04:25:50 PM I am building a JTAPI prompt recorder as a personal project. I have accomplished the following: Registration of CTI RP and ports. When calling CTI Route Point call is redirected and answered by CTI port. I get RTP Input and Output information. I see the IP address and port of the IP phone calling the CTI port. What I am trying to do is capture the audio from the IP phone into a wave file. I have revised AVReceive2.java as a class in my project. I start the AVReceive2 and see in the output that its waiting for data and also see that my machine has "become a new participant". I send the AVReceive2 the IPAddress of the CTI Port and port of the IP phone as the parameters to listen for. I get no data when I try this. Any thoughts?
Subject: RE: Capture audio on CTI Port Replied by: Konstantin Chrispens on 15-09-2010 07:38:23 AM Hi Mark, you have to use the local ip and the local port (cti port registration address). not the port of the IP phone.
Subject: RE: Capture audio on CTI Port Replied by: Mark Oller on 15-09-2010 11:35:37 PM Well, I am making progress but slowly. I capture the CiscoRTPInputStartedEv event and grap the RTP Input Properties from it. I then start a AVReceive session with the input information. I get the following: - Open RTP session for: addr: 192.168.10.52 port: 3004 ttl: 10 - Waiting for RTP data to arrive... - Waiting for RTP data to arrive... - A new participant had just joined: administrator@DEV - Waiting for RTP data to arrive... - Waiting for RTP data to arrive... - Waiting for RTP data to arrive... No RTP data was received. The IP address and port are the ones used to register the CTI port in CUCM. In addition, when I run Wireshark on the pc running the app, I do not see any RTP data coming my way. The phone shows as connected to the CTI port but no audio seems to be streaming. I also output the RTP parameters to verfiy codec: 19:37:49 09/15/2010 | #INFO# | CTIPortHandler | ProcessRecord | Input RTP Address is /192.168.10.52 19:37:49 09/15/2010 | #INFO# | CTIPortHandler | ProcessRecord | Input RTP Local Port is 3004 19:37:49 09/15/2010 | #INFO# | CTIPortHandler | ProcessRecord | Input RTP Payload G711ULAW64K 19:37:49 09/15/2010 | #INFO# | CTIPortHandler | ProcessRecord | Input RTP Packet Size 20 I have disabled the firewall as well. Any thoughts ?
Subject: RE: Capture audio on CTI Port Replied by: Mark Oller on 15-09-2010 02:40:22 PM I have read that the port the CTI uses must be in a certain range. Is this correct?
Subject: RE: Capture audio on CTI Port Replied by: Konstantin Chrispens on 16-09-2010 07:44:34 AM Does the IP phone send any packets? You can see the streaming statistics of the ip phone by double pressing the info button on the phone. Or call http://<phone ip>/StreamingStatistics in your web browser. If you see the sender packets amount of the phone increasing but no packets arriving the host of the cti port the problem might be in your network.
Subject: RE: Capture audio on CTI Port Replied by: Mark Oller on 16-09-2010 03:19:25 PM Well, it turns out to be a corrupted ZoneAlarm firewall installation. Even though I "disabled" it, was still blocking packets. I went through the troubleshooting step of setting up a span port on my switch with another machine to capture all the packets being sent by the phone. Using wireshark I saw the UDP packets that were supposed to be going to my server. So after much googling I tried uninstalling zonealarm only to find that the uninstall would not work. Then I found an elaborate procedure to remove it and now UDP packets are now flowing. Instructions below in case anyone else ever gets hit with this. f possible, first try to uninstall ZoneAlarm normally from your Start -> Programs -> ZoneAlarm menu. If this fails, or you want to ensure that all ZoneAlarm files were removed from the system properly, continue with the steps below.
Please make sure that you have the latest version downloaded first:
01.) Restart your computer 02.) When you see the screen go black and it starts booting back up keep tapping the "F8" key (at the top of your keyboard) 03.) This should bring up a menu. Choose Safe Mode off the menu by using the arrow keys on the keyboard to highlight Safe Mode and press Enter 04.) If you get a message asking to go to Safe Mode, choose Yes. If you get a help and support window, close this. 05.) Once you are at the desktop, Click Start, My Computer 06.) Click Tools, Folder Options, View Tab 07.) Place a dot next to "Show Hidden Files and Folders" 08.) Remove the check from "Hide Protected Operating System Files (Recommended)" 09.) Choose Yes to the warning 10.) Click OK 11.) Double click C:
Note: In the future steps if you do not see any files or folders, please click the "Show Files" link to view them.
12.) Double Click the Program Files Folder 13.) Right Click the Zone Labs Folder (if present), click Delete, and choose Yes
NOTE: If you cannot delete the entire folder, please open the Zone Labs - > ZoneAlarm folder and delete out as many of the files listed here as possible.
14.) Close this window 15.) Click Start, My Computer 16.) Double Click the C: 17.) Double Click the Windows Folder (It may also be WinNT) 18.) Right Click the Internet Logs Folder, click Delete, and choose Yes 19.) Double Click the System32 Folder 20.) Right Click the Zone Labs Folder (if present), click Delete, and choose Yes
NOTE: If you cannot delete the entire folder, please open the Zone Labs folder and delete out as many of the files listed here as possible.
21.) Locate and delete the following files in the System32 folder if they are present:
22.) Clear your Temp Directory per the instructions below.
- Go to Start -> Run - Type %temp% and click OK - Select all of these files and delete them
23.) Clear the Prefetch folder per the instructions below (Windows XP only).
- Go to Start -> Run - Type Prefetch and click OK - Select all of these files and delete them
24.) Remove the necessary registry entries:
*Important Advisory: Deleting registry entries incorrectly may cause serious problems to your operating system, which may necessitate the need to reinstall it. Please make sure you are able to perform these deletions correctly before you decide to edit the entries. If you are not sure, you should seek help from someone who is familiar with editing the registry.
For information about how to edit the registry in Windows, from your desktop, click Start -> Run -> and type regedit. Click on Help -> Help Topics. Under the Contents tab, click Change Keys and Values (this may be found under the How to... section).
Also, you should always make a backup of the registry before editing it. You can find this in the same section of the Help files.
Subject: RE: Capture audio on CTI Port Replied by: Manas Varma on 08-08-2012 10:34:54 AM Hi Mark,
We are trying to do the same. Can you please share the AVREcieve.java file?
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: