[Asterisk-cvs] asterisk/channels chan_iax2.c,1.126,1.127 iax2-parser.c,1.18,1.19

markster at lists.digium.com markster at lists.digium.com
Thu Apr 22 15:11:58 CDT 2004


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

Modified Files:
	chan_iax2.c iax2-parser.c 
Log Message:
Oops that wasn't quite right. Partially revert changes until real data is collected.


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -d -r1.126 -r1.127
--- chan_iax2.c	22 Apr 2004 18:51:42 -0000	1.126
+++ chan_iax2.c	22 Apr 2004 19:16:52 -0000	1.127
@@ -4565,14 +4565,6 @@
 								f.src = "IAX2";
 								f.mallocd = 0;
 								f.offset = 0;
-								f.delivery.tv_sec = peer->rxtrunktime.tv_sec;
-								f.delivery.tv_usec = peer->rxtrunktime.tv_usec;
-								f.delivery.tv_sec += ts / 1000;
-								f.delivery.tv_usec += ts % 1000;
-								if (f.delivery.tv_usec >= 1000000) {
-									f.delivery.tv_usec -= 1000000;
-									f.delivery.tv_sec += 1;
-								}
 								if (f.datalen && (f.frametype == AST_FRAME_VOICE)) 
 									f.samples = get_samples(&f);
 								else

Index: iax2-parser.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/iax2-parser.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- iax2-parser.c	22 Apr 2004 18:51:42 -0000	1.18
+++ iax2-parser.c	22 Apr 2004 19:16:52 -0000	1.19
@@ -570,7 +570,8 @@
 	fr->af.samples = f->samples;
 	fr->af.offset = AST_FRIENDLY_OFFSET;
 	fr->af.src = f->src;
-	fr->af.delivery = f->delivery;
+	fr->af.delivery.tv_sec = 0;
+	fr->af.delivery.tv_usec = 0;
 	fr->af.data = fr->afdata;
 	if (fr->af.datalen) 
 		memcpy(fr->af.data, f->data, fr->af.datalen);




More information about the svn-commits mailing list