[Asterisk-cvs] asterisk/channels chan_iax2.c,1.107,1.108

markster at lists.digium.com markster at lists.digium.com
Fri Mar 19 03:16:51 CST 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv3448/channels

Modified Files:
	chan_iax2.c 
Log Message:
Don't use hard timestamps for non-voice frames.


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -d -r1.107 -r1.108
--- chan_iax2.c	16 Mar 2004 22:55:05 -0000	1.107
+++ chan_iax2.c	19 Mar 2004 08:12:04 -0000	1.108
@@ -2659,7 +2659,7 @@
 	lastsent = pvt->lastsent;
 
 	/* Calculate actual timestamp */
-	fts = calc_timestamp(pvt, ts, &f->delivery);
+	fts = calc_timestamp(pvt, ts, (f->frametype == AST_FRAME_VOICE) ? &f->delivery : NULL);
 
 	if ((pvt->trunk || ((fts & 0xFFFF0000L) == (lastsent & 0xFFFF0000L)))
 		/* High two bits are the same on timestamp, or sending on a trunk */ &&




More information about the svn-commits mailing list