Adds pjmedia probation concepts to res_rtp_asterisk's learning mode.
authorJonathan Rose <jrose@digium.com>
Tue, 17 Jan 2012 17:15:05 +0000 (17:15 +0000)
committerJonathan Rose <jrose@digium.com>
Tue, 17 Jan 2012 17:15:05 +0000 (17:15 +0000)
commitee4cf38a27064fb2b33d2c0d328798d57acc0f65
treea0090f9b8c8146f9bb680f810493c3ed778e8ce8
parent5af788ccd07adf7b7a529f7ae39babd209b0f954
Adds pjmedia probation concepts to res_rtp_asterisk's learning mode.

In order to better handle RTP sources with strictrtp enabled (which is now default in 10)
using the learning mode to figure out new sources when they change is handled by checking
for a number of consecutive (by sequence number) packets received to an rtp struct
based on a new configurable value called 'probation'. Also, during learning mode instead
of liberally accepting all packets received, we now reject packets until a clear source
has been determined.

Review: https://reviewboard.asterisk.org/r/1663/
........

Merged revisions 351287 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 351289 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@351290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
CHANGES
configs/rtp.conf.sample
res/res_rtp_asterisk.c