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

Freeswitch SVN anthm at freeswitch.org
Sat May 26 15:03:17 EDT 2007


Author: anthm
Date: Sat May 26 15:03:16 2007
New Revision: 5222

Modified:
   freeswitch/trunk/src/switch_rtp.c

Log:
update 2833 *stab*

Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c	(original)
+++ freeswitch/trunk/src/switch_rtp.c	Sat May 26 15:03:16 2007
@@ -752,13 +752,13 @@
 		rtp_session->dtmf_data.out_digit_packet[3] = (unsigned char) duration;
 
 
-		rtp_session->dtmf_data.out_digit_seq++;
 
-		if (loops != 1) {
-			rtp_session->dtmf_data.timestamp_dtmf += samples;
-		}
+		rtp_session->dtmf_data.timestamp_dtmf += samples;
 
+		
 		for (x = 0; x < loops; x++) {
+			rtp_session->dtmf_data.out_digit_seq++;
+
 			switch_rtp_write_manual(rtp_session,
 									rtp_session->dtmf_data.out_digit_packet,
 									4,
@@ -770,6 +770,7 @@
 							  loops == 1 ? "middle" : "end", rtp_session->dtmf_data.out_digit, rtp_session->dtmf_data.timestamp_dtmf,
 							  rtp_session->dtmf_data.out_digit_sofar, duration, rtp_session->dtmf_data.out_digit_seq);
 
+			
 		}
 
 		if (loops == 1) {
@@ -804,7 +805,7 @@
 
 
 			for (x = 0; x < 3; x++) {
-				//rtp_session->dtmf_data.out_digit_seq++;
+				rtp_session->dtmf_data.out_digit_seq++;
 				switch_rtp_write_manual(rtp_session,
 										rtp_session->dtmf_data.out_digit_packet,
 										4,



More information about the Freeswitch-svn mailing list