[Asterisk-cvs] asterisk/channels chan_sip.c,1.494,1.495

markster at lists.digium.com markster at lists.digium.com
Wed Sep 8 21:31:06 CDT 2004


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

Modified Files:
	chan_sip.c 
Log Message:
Don't consider RTP timeout if the channel isn't up


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.494
retrieving revision 1.495
diff -u -d -r1.494 -r1.495
--- chan_sip.c	7 Sep 2004 23:45:34 -0000	1.494
+++ chan_sip.c	9 Sep 2004 01:33:17 -0000	1.495
@@ -7650,7 +7650,7 @@
 		sip = iflist;
 		while(sip) {
 			ast_mutex_lock(&sip->lock);
-			if (sip->rtp && sip->lastrtprx && (sip->rtptimeout || sip->rtpholdtimeout) && !sip->redirip.sin_addr.s_addr) {
+			if (sip->rtp && sip->owner && (sip->owner->_state == AST_STATE_UP) && sip->lastrtprx && (sip->rtptimeout || sip->rtpholdtimeout) && !sip->redirip.sin_addr.s_addr) {
 				if (t > sip->lastrtprx + sip->rtptimeout) {
 					/* Might be a timeout now -- see if we're on hold */
 					struct sockaddr_in sin;




More information about the svn-commits mailing list