Capturing RTP Streams.

1 reply [Last post]
shadi
Offline
Joined: 07/26/2009

Hi,

I'm looking to write a packet capture routine to do the following;

1. Read Packets from 2-3 network interfaces;

2. Look for a specific pattern (e.g SIP (ACK))

3. Dump the specific UDP stream (RTP) to file i.e. from a specific src/dst port and src/dstIP.

The ideas is to be able to capture stimulations RTP streams on the network based on analysing passing traffic.

Is this possible with jNetpcap?

All the Best,

Shadi

Mark Bednarczyk
Mark Bednarczyk's picture
Offline
Joined: 03/22/2008
Yes its possible

shadi wrote:

Is this possible with jNetpcap?
Shadi

Here is a link to a test that does almost exactly that. It captures RTP audio stream and extracts the RTP payload to individual files:

http://jnetpcap.svn.sourceforge.net/viewvc/jnetpcap/jnetpcap/trunk/tests...

You will be interested to look at test method: testRtpAudioExtract.

The analysis part of the API isn't complete yet, but you should be able to work with whats there to accomplish your goal.

Sly Technologies, Inc.
R&D

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.