diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-27 19:12:40 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-27 19:12:40 +0000 |
commit | d3d987c77f4549d314523ee40cca299a6402e2cb (patch) | |
tree | e5621040f60406b9e3aa67274669d0bf605092e7 /main/rtp.c | |
parent | a21b1c1f05557a25a4f3686f6948c1ea07042d96 (diff) |
Merged revisions 43798 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r43798 | file | 2006-09-27 15:10:59 -0400 (Wed, 27 Sep 2006) | 2 lines
Compensate for out of order packets better if RFC2833 compensation is turned on.
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43799 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp.c')
-rw-r--r-- | main/rtp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/rtp.c b/main/rtp.c index 1e79ea405..153426827 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -731,6 +731,12 @@ static struct ast_frame *process_rfc2833(struct ast_rtp *rtp, unsigned char *dat f->samples = duration; rtp->resp = 0; rtp->lasteventendseqn = seqno; + } else if (ast_test_flag(rtp, FLAG_DTMF_COMPENSATE) && event_end & 0x80 && rtp->lasteventendseqn != seqno) { + rtp->resp = resp; + f = send_dtmf(rtp, AST_FRAME_DTMF_END); + f->samples = duration; + rtp->resp = 0; + rtp->lasteventendseqn = seqno; } rtp->dtmfcount = dtmftimeout; |