]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix problems when RTP packet frame size is changed
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 5 Mar 2009 18:22:16 +0000 (18:22 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 5 Mar 2009 18:22:16 +0000 (18:22 +0000)
commit5436d8709fb81cd8fa6ad08ae7fde80d952faec4
tree18543b77306d2365b170bb010de22a93eb3dec31
parentc42b21bc6a44b4ddd3bc95253e8441aec71d1d5a
Fix problems when RTP packet frame size is changed

During some code analysis, I found that calling ast_rtp_codec_setpref() on an ast_rtp session does not work as expected; it does not adjust the smoother that may on the RTP session, in fact it summarily drops it, even if it has data in it, even if the current format's framing size has not changed. This is not good.

This patch changes this behavior, so that if the packetization size for the current format changes, any existing smoother is safely updated to use the new size, and if no smoother was present, one is created. A new API call for smoothers, ast_smoother_reconfigure(), was required to implement these changes.

Review: http://reviewboard.digium.com/r/184/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@180372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/frame.h
main/frame.c
main/rtp.c