Merge "RTP: reset DTMF last seqno/timestamp on RTP renegotiation" into 16

This commit is contained in:
Joshua C. Colp 2019-01-14 08:03:50 -06:00 committed by Gerrit Code Review
commit 32934180f9
1 changed files with 4 additions and 0 deletions

View File

@ -7369,6 +7369,10 @@ static void ast_rtp_remote_address_set(struct ast_rtp_instance *instance, struct
ast_rtp_instance_set_remote_address(mapping->instance, addr);
}
/* Need to reset the DTMF last sequence number and the timestamp of the last END packet */
rtp->last_seqno = 0;
rtp->last_end_timestamp = 0;
if (strictrtp && rtp->strict_rtp_state != STRICT_RTP_OPEN
&& !ast_sockaddr_isnull(addr) && ast_sockaddr_cmp(addr, &rtp->strict_rtp_address)) {
/* We only need to learn a new strict source address if we've been told the source is