]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_rtp_asterisk: Fix ssrc change for rtcp srtp
authorGeorge Joseph <gjoseph@digium.com>
Wed, 14 Jun 2017 13:54:45 +0000 (07:54 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Wed, 14 Jun 2017 13:58:57 +0000 (08:58 -0500)
It looks like there was a copy/paste error in ast_rtp_change_source
where if there was a rtcp srtp instance, instead of updating its
ssrc we were updating the srtp instance ssrc twice.

ASTERISK-27022 #close
Reported-by: Michael Walton
Change-Id: Ic88f3aee7227b401c58745ac265ff92c19620095

res/res_rtp_asterisk.c

index 1006c22b2ad1309604e2d0fbe6fb1072a6c1f524..f6317f5f50af0c4cfdd61c1677a208b795c3b0f5 100644 (file)
@@ -3443,7 +3443,7 @@ static void ast_rtp_change_source(struct ast_rtp_instance *instance)
                ast_debug(3, "Changing ssrc for SRTP from %u to %u\n", rtp->ssrc, ssrc);
                res_srtp->change_source(srtp, rtp->ssrc, ssrc);
                if (rtcp_srtp != srtp) {
-                       res_srtp->change_source(srtp, rtp->ssrc, ssrc);
+                       res_srtp->change_source(rtcp_srtp, rtp->ssrc, ssrc);
                }
        }