[asterisk-commits] mvanbaak: branch mvanbaak/skinnyrtptimeout r179216 - /team/mvanbaak/skinnyrtp...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Feb 28 11:09:38 CST 2009


Author: mvanbaak
Date: Sat Feb 28 11:09:33 2009
New Revision: 179216

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=179216
Log:
add lastrtprx and lastrtptx members
update those members when we read/write rtp

Modified:
    team/mvanbaak/skinnyrtptimeout/channels/chan_skinny.c

Modified: team/mvanbaak/skinnyrtptimeout/channels/chan_skinny.c
URL: http://svn.digium.com/svn-view/asterisk/team/mvanbaak/skinnyrtptimeout/channels/chan_skinny.c?view=diff&rev=179216&r1=179215&r2=179216
==============================================================================
--- team/mvanbaak/skinnyrtptimeout/channels/chan_skinny.c (original)
+++ team/mvanbaak/skinnyrtptimeout/channels/chan_skinny.c Sat Feb 28 11:09:33 2009
@@ -1113,6 +1113,9 @@
 	struct ast_channel *owner;
 	struct ast_rtp *rtp;
 	struct ast_rtp *vrtp;
+	time_t lastrtprx;
+	time_t lastrtptx;
+	int rtptimeout;
 	unsigned int callid;
 	/* time_t lastouttime; */ /* Unused */
 	int progress;
@@ -3953,6 +3956,7 @@
 	struct ast_frame *fr;
 	struct skinny_subchannel *sub = ast->tech_pvt;
 	ast_mutex_lock(&sub->lock);
+	sub->lastrtprx = time(NULL);
 	fr = skinny_rtp_read(sub);
 	ast_mutex_unlock(&sub->lock);
 	return fr;
@@ -3979,6 +3983,7 @@
 	if (sub) {
 		ast_mutex_lock(&sub->lock);
 		if (sub->rtp) {
+			sub->lastrtptx = time(NULL);
 			res = ast_rtp_write(sub->rtp, frame);
 		}
 		ast_mutex_unlock(&sub->lock);




More information about the asterisk-commits mailing list