From: Kevin P. Fleming Date: Wed, 20 Apr 2005 16:46:25 +0000 (+0000) Subject: ensure that sequential DTMF sent via RTP has some 'dead air' between digits (bug... X-Git-Tag: 1.2.0-beta1~828 X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=commitdiff_plain;h=35f2e4b8aeb706496427aeae486f7d8377c86de0;ds=sidebyside ensure that sequential DTMF sent via RTP has some 'dead air' between digits (bug #3675) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5489 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/rtp.c b/rtp.c index 41f37b3..ef0861b 100755 --- a/rtp.c +++ b/rtp.c @@ -1167,11 +1167,12 @@ int ast_rtp_senddigit(struct ast_rtp *rtp, char digit) rtpheader[3] |= htonl((1 << 23)); } } - /* Increment the digit timestamp by 100ms, to ensure that digits + /* Increment the digit timestamp by 120ms, to ensure that digits sent sequentially with no intervening non-digit packets do not - get sent with the same timestamp. + get sent with the same timestamp, and that sequential digits + have some 'dead air' in between them */ - rtp->lastdigitts += 800; + rtp->lastdigitts += 960; return 0; }