]> 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 18:51:40 +0000 (13:51 -0500)
commite91efef2bb35cd0b03f45ad1b1ba43203948368d
tree07a894e465b8847215c334ca317a4abf853fb141
parent7af41de3643cab760be85e9e2dbe79d634193f96
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