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

markster at lists.digium.com markster at lists.digium.com
Fri Mar 19 03:21:06 CST 2004


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

Modified Files:
	chan_iax2.c 
Log Message:
Just to be on the safe side, don't update timestamps against anything but voice packets.


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -d -r1.108 -r1.109
--- chan_iax2.c	19 Mar 2004 08:12:04 -0000	1.108
+++ chan_iax2.c	19 Mar 2004 08:16:19 -0000	1.109
@@ -4574,7 +4574,7 @@
 		fr.oseqno = fh->oseqno;
 		fr.iseqno = fh->iseqno;
 		fr.ts = ntohl(fh->ts);
-		if (ntohs(fh->dcallno) & IAX_FLAG_RETRANS)
+		if ((ntohs(fh->dcallno) & IAX_FLAG_RETRANS) || (f.frametype != AST_FRAME_VOICE))
 			updatehistory = 0;
 		if ((iaxs[fr.callno]->iseqno != fr.oseqno) &&
 			(iaxs[fr.callno]->iseqno ||




More information about the svn-commits mailing list