[asterisk-dev] [Code Review] Fix problems when RTP packet frame size is changed

Kevin Fleming kpfleming at digium.com
Thu Mar 5 09:19:57 CST 2009


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.digium.com/r/184/
-----------------------------------------------------------

(Updated 2009-03-05 09:19:57.810445)


Review request for Asterisk Developers.


Changes
-------

Added optimization per Josh's suggestion.


Summary
-------

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.


Diffs (updated)
-----

  /branches/1.4/include/asterisk/frame.h 180363 
  /branches/1.4/main/frame.c 180363 
  /branches/1.4/main/rtp.c 180363 

Diff: http://reviewboard.digium.com/r/184/diff


Testing
-------

Compile testing only.


Thanks,

Kevin




More information about the asterisk-dev mailing list