Review Board 1.7.16

Randomize IAX2 encryption padding

Review Request #193 - Created March 13, 2009 and submitted

David Vossel
The 16-32 byte random padding at the beginning of an encrypted IAX2 frame turns out to not be all that random at all.  This patch calls ast_random to fill the padding buffer with random data.  The padding is randomized at the beginning of every encrypted call and for every encrypted retransmit frame.
ran an encrypted call, everything worked as expected. 
Review request changed
Updated (March 13, 2009, 9:34 a.m.)
update Russell's comments
Ship it!
Posted (March 13, 2009, 9:37 a.m.)
 runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to