[asterisk-commits] file: branch 1.4 r43798 -
/branches/1.4/main/rtp.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Sep 27 12:11:00 MST 2006
Author: file
Date: Wed Sep 27 14:10:59 2006
New Revision: 43798
URL: http://svn.digium.com/view/asterisk?rev=43798&view=rev
Log:
Compensate for out of order packets better if RFC2833 compensation is turned on.
Modified:
branches/1.4/main/rtp.c
Modified: branches/1.4/main/rtp.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/rtp.c?rev=43798&r1=43797&r2=43798&view=diff
==============================================================================
--- branches/1.4/main/rtp.c (original)
+++ branches/1.4/main/rtp.c Wed Sep 27 14:10:59 2006
@@ -677,6 +677,12 @@
if (!ast_test_flag(rtp, FLAG_DTMF_COMPENSATE))
f = send_dtmf(rtp, AST_FRAME_DTMF_BEGIN);
} else if (event_end & 0x80 && rtp->lasteventendseqn != seqno && rtp->resp) {
+ f = send_dtmf(rtp, AST_FRAME_DTMF_END);
+ 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;
More information about the asterisk-commits
mailing list