Merge "res_rtp_asterisk: Always update SRTP on local SSRC change."

This commit is contained in:
Jenkins2
2018-05-03 10:29:38 -05:00
committed by Gerrit Code Review

View File

@@ -3947,6 +3947,7 @@ static void ast_rtp_change_source(struct ast_rtp_instance *instance)
if (rtp->lastts) {
/* We simply set this bit so that the next packet sent will have the marker bit turned on */
ast_set_flag(rtp, FLAG_NEED_MARKER_BIT);
}
ast_debug(3, "Changing ssrc from %u to %u due to a source change\n", rtp->ssrc, ssrc);
@@ -3957,7 +3958,6 @@ static void ast_rtp_change_source(struct ast_rtp_instance *instance)
res_srtp->change_source(rtcp_srtp, rtp->ssrc, ssrc);
}
}
}
rtp->ssrc = ssrc;