diff options
author | zuul <zuul@gerrit.asterisk.org> | 2016-07-20 09:58:05 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-07-20 09:58:05 -0500 |
commit | 290269bb235d66a238dc4cf6f069a1cd8965013e (patch) | |
tree | 154dbc2c7c505c75d33bf947ec412e17a89ab48e | |
parent | 7ce180a7548af5c89a193592ae3f0e429b948f2d (diff) | |
parent | e404f51b42d9518dc8f7153678998d81489d4edb (diff) |
Merge "res_rtp_asterisk: Count a roll-over of the sequence number even on lost packets." into 13
-rw-r--r-- | res/res_rtp_asterisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 8055e877f..9db5aefe7 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -2592,7 +2592,7 @@ static int ast_rtp_new(struct ast_rtp_instance *instance, /* Set default parameters on the newly created RTP structure */ rtp->ssrc = ast_random(); - rtp->seqno = ast_random() & 0xffff; + rtp->seqno = ast_random() & 0x7fff; rtp->strict_rtp_state = (strictrtp ? STRICT_RTP_LEARN : STRICT_RTP_OPEN); if (strictrtp) { rtp_learning_seq_init(&rtp->rtp_source_learn, (uint16_t)rtp->seqno); |