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

Freeswitch SVN mikej at freeswitch.org
Wed Jan 23 11:23:02 EST 2008


Author: mikej
Date: Wed Jan 23 11:23:01 2008
New Revision: 7323

Modified:
   freeswitch/trunk/src/switch_rtp.c

Log:
possible fix or MODENDP-79 - Duplicate rtp timestamps from portaudio to sip

Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c	(original)
+++ freeswitch/trunk/src/switch_rtp.c	Wed Jan 23 11:23:01 2008
@@ -1543,6 +1543,9 @@
 			rtp_session->ts = (uint32_t) timestamp;
 		} else if (rtp_session->timer.timer_interface) {
 			rtp_session->ts = rtp_session->timer.samplecount;
+			if (rtp_session->ts <= rtp_session->last_write_ts) {
+				rtp_session->ts = rtp_session->last_write_ts + rtp_session->samples_per_interval;
+			}
 		} else {
 			rtp_session->ts += rtp_session->samples_per_interval;
 		}



More information about the Freeswitch-svn mailing list