summaryrefslogtreecommitdiff
path: root/rtp.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-05-15 16:26:52 +0000
committerMark Spencer <markster@digium.com>2004-05-15 16:26:52 +0000
commitd146b72e53e29787c42ea18be26f31d3206fa4b8 (patch)
tree1392c8e3da847a369ba4f5bd300bb2305a5a45ee /rtp.c
parent4d1137ded4ae40638f79ae8f9647e152446e2eb2 (diff)
Fix typo in outgoing rfc2833 handling (bug #1646)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2969 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rtp.c')
-rwxr-xr-xrtp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rtp.c b/rtp.c
index b88274457..c111430b7 100755
--- a/rtp.c
+++ b/rtp.c
@@ -918,7 +918,6 @@ int ast_rtp_senddigit(struct ast_rtp *rtp, char digit)
int hdrlen = 12;
int res;
int ms;
- int pred;
int x;
char data[256];
@@ -951,7 +950,7 @@ int ast_rtp_senddigit(struct ast_rtp *rtp, char digit)
ms = calc_txstamp(rtp, NULL);
/* Default prediction */
- pred = rtp->lastts + ms * 8;
+ rtp->lastts = rtp->lastts + ms * 8;
/* Get a pointer to the header */
rtpheader = (unsigned int *)data;