aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-20 16:46:25 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-20 16:46:25 +0000
commit78bebade1972eb48c8fc73e2f7b441d5592f4055 (patch)
tree00adaa5a583802e71b85f9e4d8cfd69e243dd32f
parent32fbbc1833bd2b0c67bb1d589e1fd04d29b10d2d (diff)
ensure that sequential DTMF sent via RTP has some 'dead air' between digits (bug #3675)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5489 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xrtp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/rtp.c b/rtp.c
index 41f37b33f..ef0861b32 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;
}