Filip Olsson has posted details of a patch to allow more verbose RTP debugging:
Hi guys,
I've posted a patch in #2570 for doing _some_ more verbose RTP-debugging. It adds the CLI commands 'rtp debug [ip host[:port]]' and 'rtp no debug'. It works pretty much the same way sip debug does.
Here's some output:
Got RTP packet from 10.0.0.37:8000 (type 0, seq 4041, ts 1771635040, len 160)
Sent RTP packet to 10.0.0.38:8002 (type 0, seq 8584, ts 88800, len 160)
Here you can see the payload type(more or less the codec), sequence number, timestamp and the size of the packet.
It's handy to have when trying to figure out where those RFC2833 packets are going and why it's not working.
Please test the patch and give me feedback on additional features you'd like to see in it or anything else such as that you would like to resolve the PT in the output. Put warnings up when we see a jump in sequence numbers? This would(not always) indicate a packet loss. Output the RFC2833 digit?
The RTCP-version of this one is coming up soon. It's very nice to be able to get some information on the transmission quality such as number of lost packets and interarrival jitter.
I'm planning on doing some kind of 'monitor' for RTCP RRs and SRs and doing some statistical calculations on them and log this for all/some calls. I think this would be _very_ useful when hunting down echos and other network problems in general. Please note that Asterisk don't send any RTCP-packets, some RTP-stacks send them to us. At the moment we don't do anything about them, but there's alot of useful information in them.
I actually don't know if it would be useful for us to be sending SRs and RRs to our peers, will it take any kind of action depending on what we send? Can someone tell me if there's a RTP-stack that would change behaviour because of content in RTCP-packets?
The only(?) reason I see where it would be useful to generate RTCP-packets is when the remote peer is another Asterisk(or other RTP-stack) that can do something useful with the packets(for monitoring purposes or controlling bandwidth).
It would be cool to output all this information to monitor(generate fancy graphs?) call quality over time and identify individual hosts that have problems.
What say you?
//Filip
Current Rating: 0/10 (0 votes) Similar Articles (Based on Title)Vulnerability in Asterisk with verbose debugging - December 28, 2004 There have been some fixes to Asterisk to remove Format String Vulnerabilites
Lock Debugging Improvements - August 2, 2007 Russell has posted details of some changes he has put into place to allow for more simple locking debugging when in DEBUG_THREADS mode.
Convergence: IAX2 trunked (vs) IAX2+trunking (vs) RTP (vs) cRTP - October 31, 2004 Wasim has put up a comparisson of packet usages between diferrent methods of communication (trunking)
RTP timing problems patch - October 5, 2005 Carlos Antunes has posted details of a patch he has written which will generate timing independently of incoming packets.
Secure RTP - ready for testing - June 20, 2006 Olle has posted details of a testing branch for Secure RTP.
RTP packetization - August 18, 2006 Dan Austin has posted details of some packetization patches that need review.
RTP Packetization - September 1, 2006 Dan Austin has posted some details about a patch for RTP Packetization he is trying to complete (bugid 5162).
rtpBreak - detects, reconstructs and analyzes any RTP session - June 5, 2007 Michele Dallachiesa has posted details of an RTP analysis package.
AST-2009-004: Remote Crash Vulnerability in RTP stack - August 4, 2009 An attacker can cause Asterisk to crash remotely by sending malformed RTP text frames. While the attacker can cause Asterisk to crash, he cannot execute arbitrary remote code with this exploit.
Asterisk RTP Monitoring - September 25, 2009 Tzafrir has committed some documentation to his branch for RTP Monitoring.
What would you like to see more of? - October 8, 2004 I've readded the poll, because my coding was crap yesterday! Works now!
IAXclient-devel: Even more codecs - October 15, 2004 SteveK has now added changes to iaxclient libraries so that they support ulaw, speex, gsm and iLBC. (IAXclient libraries are used to create softphones)
Original Content (C) 2004-2010
Matt Riddell

Icons by: FastIcon.com
|
AstriDevCon: October 29th, Washington DC August 23, 2010 Average Vote: 10
John Todd has posted a note about the AstriDevCon conference which occurs within the Astricon conference.
Code Review: SRTP support for Asterisk March 12, 2009 Average Vote: 10
Terry Wilson has moved his SRTP branch onto the Digium review board.
The Everything Asterisk Video Collection August 5, 2010 Average Vote: 10
Steven Sokol has posted a blog entry on Asterisk Video Resources.
Voip-Forum: Lots of new articles March 12, 2005 Average Vote: 10
Oej's Voip-Forum.com site has posted lots of new news articles while I've been away. Hopefully you found them via the asterisk-docs site. If not I've bookmarked them for you.
Interview with Mark Spencer November 26, 2004 Average Vote: 9.9
We have managed to get an interview with Mark Spencer AKA Markster. Mark Spencer is the creator of Asterisk and by far the most active developer.
Asterisk and Kamailio realtime integration tutorial May 24, 2010 Average Vote: 9.9
Daniel-Constantin Mierla has posted a link to a tutorial on integrating Asterisk and Kamailio using realtime.
Asterisk and Kamailio (openser) realtime integration August 5, 2010 Average Vote: 9.8
Daniel-Constantin Mierla posted a writeup on combining Asterisk and Kamailio.
Asterisk IPv6 update February 1, 2010 Average Vote: 9.8
Olle has posted an update on IPV6 in Asterisk and a link to a blog post of his.
Proposal for T.38 transparent gateway design in Asterisk April 29, 2010 Average Vote: 9.8
Kevin Fleming has posted a proposed design for a transparent T.38 gateway for Asterisk:
Back to life July 21, 2010 Average Vote: 9.8
Hey all - I am back online after some pretty big projects which have taken all my time. Will be updating the Asterisk news over the next few days.
Announcing Adhearsion 0.8.5 August 25, 2010 Average Vote: 9.8
Ben Klang has posted a note about the latest release of Adhearsion - a framework for developing Asterisk based solutions using Ruby.
app_swift v2.0 released July 21, 2010 Average Vote: 9.8
Like a few of these news stories that I will be posting over the next couple of days this is a little old - hope it is not something you have already seen. This one is for a new version of the app_swift text-to-speech module for Asterisk 1.2, 1.4, and 1.6.
Monitoring Asterisk with Munin January 7, 2010 Average Vote: 9.7
I had a few requests for these munin plugins after some discussion on one of the Asterisk lists and thought people might like them.
GUI changes from Trixbox, FreePBX, 2600hz, BlueBox September 1, 2010 Average Vote: 9.7
Ok, bear with me on this one. If you understand all the ramifications, FreePBX has split to a new project called BlueBox contained within the 2600hz project. This obviously has implications for Trixbox that uses FreePBX to provide quite a bit of functionality.
Nerd Vittles: Finally... Installing Asterisk at Home on Your Windows PC February 9, 2006 Average Vote: 9.7
Ward Mundy has posted details of a how to for installing Asterisk at Home on a windows machine without removing windows.
Asterisk 1.8.0-beta5 Now Available September 9, 2010 The Asterisk Development Team has announced the release of Asterisk 1.8.0-beta5.
libpri 1.4.11.4 Now Available September 3, 2010 The Asterisk Development Team has announced the release of libpri 1.4.11.4.
New CDR Stats Package September 1, 2010 This one has been a long time coming. A new CDR stats package from Star2Billing to replace the 7 year old stalwart for viewing Asterisk call detail records.
GUI changes from Trixbox, FreePBX, 2600hz, BlueBox September 1, 2010 Ok, bear with me on this one. If you understand all the ramifications, FreePBX has split to a new project called BlueBox contained within the 2600hz project. This obviously has implications for Trixbox that uses FreePBX to provide quite a bit of functionality.
RazorQuotePBP Asterisk Payment Module August 31, 2010 RazorQuote has sent us a press release about the launch of RazorQuotePBP, a native Asterisk module that allows any Asterisk connected device to accept credit card payments.
CloudVox: Install an open source Asterisk phone app and get 250 dollars August 30, 2010 CloudVox is running a competition for people to receive 250 dollars for writing up some documentation for Open Source applications on CloudVox - first in first served.
AstriCon approaches August 25, 2010 John Todd has posted a note about the upcoming AstriCon conference in Washington, DC, and the innovation awards.
Announcing Adhearsion 0.8.5 August 25, 2010 Ben Klang has posted a note about the latest release of Adhearsion - a framework for developing Asterisk based solutions using Ruby.
Asterisk 1.8.0-beta4 Now Available August 25, 2010 The Asterisk Development Team has announced the release of Asterisk 1.8.0-beta4.
AstriDevCon: October 29th, Washington DC August 23, 2010 John Todd has posted a note about the AstriDevCon conference which occurs within the Astricon conference.
|