]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp_asterisk: rtcp mux using the wrong srtp unprotecting algorithm
authorKevin Harwell <kharwell@digium.com>
Mon, 22 May 2017 18:51:40 +0000 (13:51 -0500)
committerKevin Harwell <kharwell@digium.com>
Mon, 22 May 2017 19:05:45 +0000 (14:05 -0500)
commit9db41320b8eeb53a991bf6b781cc239acd322876
treeb08c90444068d1c242f520e0e750b6dbce3b5d10
parent2684e9c2ea8fa0729da5b3d0304d4d9c5fcc7639
res_rtp_asterisk: rtcp mux using the wrong srtp unprotecting algorithm

When using rtcp mux if an rtcp payload came in it would still use the srtp
unprotect algorithm instead of the srtp unprotect rtcp method. Since rtcp
data was being passed to the rtp unprotect method this would result in an
error.

This patch ensures that the correct unprotect method is chosen by making
sure the passed in rtcp flag is appropriately set when rtcp mux is enabled
and an rtcp payload is received.

ASTERISK-26979 #close

Change-Id: Ic5409f9d1a267f1d4785fc5aed867daaecca6241
res/res_rtp_asterisk.c