[pjsip] Fixing crashes due to bad RTCP handling when using SRTP

Saúl Ibarra Corretgé saul at ag-projects.com
Mon Apr 2 06:52:30 EDT 2012

Hi all,

When using SRTP I've seen a number of crashes when handling RTCP, and backtraces pointed at rdb_add_index function from libsrtp. Sorry, I have no coredumps available right now, but trust me, this happens.

Apparently this is a bug in libsrtp 1.4.4 (the one bundled with PJSIP) which also manifests in other software applications such as Asterisk (https://issues.asterisk.org/jira/browse/ASTERISK-16665).

There is a fix for this in libsrtp 1.5 (http://srtp.cvs.sourceforge.net/viewvc/srtp/srtp/crypto/replay/rdb.c?r1=1.4&r2=1.5) so maybe it's a good time to upgrade the bundled libsrtp :-)

Kind regards,

Saúl Ibarra Corretgé
AG Projects

More information about the pjsip mailing list