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

Freeswitch SVN anthm at freeswitch.org
Wed Jan 9 12:20:05 EST 2008


Author: anthm
Date: Wed Jan  9 12:20:05 2008
New Revision: 7150

Modified:
   freeswitch/trunk/src/switch_rtp.c

Log:
update

Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c	(original)
+++ freeswitch/trunk/src/switch_rtp.c	Wed Jan  9 12:20:05 2008
@@ -839,6 +839,8 @@
 		if (switch_queue_trypop(rtp_session->dtmf_data.dtmf_queue, &pop) == SWITCH_STATUS_SUCCESS) {
 			switch_dtmf_t *rdigit = pop;
 
+			rtp_session->sending_dtmf = 1;
+
 			memset(rtp_session->dtmf_data.out_digit_packet, 0, 4);
 			rtp_session->dtmf_data.out_digit_sofar = samples;
 			rtp_session->dtmf_data.out_digit_dur = rdigit->duration;
@@ -847,12 +849,12 @@
 			rtp_session->dtmf_data.out_digit_packet[1] = 7;
 
 			if (rtp_session->timer.timer_interface) {
-				rtp_session->dtmf_data.timestamp_dtmf = rtp_session->timer.samplecount;
+				rtp_session->dtmf_data.timestamp_dtmf = rtp_session->timer.samplecount + samples;
 			} else {
 				rtp_session->dtmf_data.timestamp_dtmf = rtp_session->last_write_ts + samples;
 			}
 			
-			rtp_session->sending_dtmf = 1;
+			
 
 			
 			rtp_session->seq++;



More information about the Freeswitch-svn mailing list