[Freeswitch-svn] [commit] r11262 - freeswitch/trunk/src

FreeSWITCH SVN anthm at freeswitch.org
Fri Jan 16 12:59:08 PST 2009


Author: anthm
Date: Fri Jan 16 14:59:07 2009
New Revision: 11262

Log:
FSCORE-266

Modified:
   freeswitch/trunk/src/switch_rtp.c

Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c	(original)
+++ freeswitch/trunk/src/switch_rtp.c	Fri Jan 16 14:59:07 2009
@@ -1400,7 +1400,11 @@
 			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) {
 



More information about the Freeswitch-svn mailing list