[Asterisk-code-review] res rtp asterisk: Fix ssrc change for rtcp srtp (asterisk[13])

George Joseph asteriskteam at digium.com
Wed Jun 14 08:58:36 CDT 2017


George Joseph has uploaded this change for review. ( https://gerrit.asterisk.org/5828


Change subject: res_rtp_asterisk:  Fix ssrc change for rtcp srtp
......................................................................

res_rtp_asterisk:  Fix ssrc change for rtcp srtp

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
---
M res/res_rtp_asterisk.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/28/5828/1

diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index f75482f..5003c95 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -3443,7 +3443,7 @@
 		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);
 		}
 	}
 

-- 
To view, visit https://gerrit.asterisk.org/5828
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic88f3aee7227b401c58745ac265ff92c19620095
Gerrit-Change-Number: 5828
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170614/edebabd4/attachment.html>


More information about the asterisk-code-review mailing list