From 444425ae797e044e2804eccdf98bcd354dcb811c Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 16 Jan 2009 20:59:07 +0000 Subject: [PATCH] FSCORE-266 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11262 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 8c773009f7..334984852f 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -1400,7 +1400,11 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_ uint16_t in_digit_seq = ntohs((uint16_t) rtp_session->recv_msg.header.seq); uint32_t ts = htonl(rtp_session->recv_msg.header.ts); - + if (in_digit_seq < rtp_session->dtmf_data.in_digit_seq) { + if (rtp_session->dtmf_data.in_digit_seq - in_digit_seq > 100) { + rtp_session->dtmf_data.in_digit_seq = 0; + } + } if (in_digit_seq > rtp_session->dtmf_data.in_digit_seq) {