[Asterisk-cvs] asterisk rtp.c,1.101,1.102

markster at lists.digium.com markster at lists.digium.com
Tue Dec 28 11:40:37 CST 2004


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

Modified Files:
	rtp.c 
Log Message:
Permit RTP to be reset


Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -d -r1.101 -r1.102
--- rtp.c	14 Dec 2004 23:36:29 -0000	1.101
+++ rtp.c	28 Dec 2004 16:35:31 -0000	1.102
@@ -976,6 +976,24 @@
 	}
 }
 
+void ast_rtp_reset(struct ast_rtp *rtp)
+{
+	memset(&rtp->rxcore, 0, sizeof(rtp->rxcore));
+	memset(&rtp->txcore, 0, sizeof(rtp->txcore));
+	memset(&rtp->dtmfmute, 0, sizeof(rtp->dtmfmute));
+	rtp->lastts = 0;
+	rtp->lastrxts = 0;
+	rtp->lastividtimestamp = 0;
+	rtp->lastovidtimestamp = 0;
+	rtp->lasteventseqn = 0;
+	rtp->lasttxformat = 0;
+	rtp->lastrxformat = 0;
+	rtp->dtmfcount = 0;
+	rtp->dtmfduration = 0;
+	rtp->seqno = 0;
+	rtp->rxseqno = 0;
+}
+
 void ast_rtp_destroy(struct ast_rtp *rtp)
 {
 	if (rtp->smoother)




More information about the svn-commits mailing list