diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-06 18:46:28 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-06 18:46:28 +0000 |
commit | 39b01dc767b7b3b8c3ac3db5fb8ea864ab14c32c (patch) | |
tree | bc6621bf6e2b0a8edae10778a63bb87e5594e58a /main | |
parent | 6f094172512122a5d5d3859a876f45f5f2890ade (diff) |
When the sequence number rolls over then reset the recorded sequence number for DTMF (issue #8106 reported by bungalow)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44605 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/rtp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/rtp.c b/main/rtp.c index dc8b90368..66f2307ae 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -1177,6 +1177,10 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp) ast_verbose("Got RTP packet from %s:%d (type %-2.2d, seq %-6.6u, ts %-6.6u, len %-6.6u)\n", ast_inet_ntoa(sin.sin_addr), ntohs(sin.sin_port), payloadtype, seqno, timestamp,res - hdrlen); + /* When the seqno starts over we need to reset the seqno for DTMF */ + if (seqno == 0) + rtp->lasteventseqn = 0; + rtpPT = ast_rtp_lookup_pt(rtp, payloadtype); if (!rtpPT.isAstFormat) { struct ast_frame *f = NULL; |