[Asterisk-cvs] asterisk/channels chan_sip.c,1.260,1.261

markster at lists.digium.com markster at lists.digium.com
Tue Dec 9 16:12:54 CST 2003


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

Modified Files:
	chan_sip.c 
Log Message:
Minor sip fixes


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.260
retrieving revision 1.261
diff -u -d -r1.260 -r1.261
--- chan_sip.c	9 Dec 2003 00:02:06 -0000	1.260
+++ chan_sip.c	9 Dec 2003 22:04:23 -0000	1.261
@@ -1112,12 +1112,15 @@
 				   INVITE, but do set an autodestruct just in case. */
 				needdestroy = 0;
 				sip_scheddestroy(p, 15000);
-				/* channel still up - reverse dec of inUse counter */
-				if ( p->outgoing ) {
-					find_user(p, INC_OUT_USE);
-				}
-				else {
-					find_user(p, INC_IN_USE);
+				if ( p->initid != -1 ) {
+					/* channel still up - reverse dec of inUse counter
+					   only if the channel is not auto-congested */
+					if ( p->outgoing ) {
+						find_user(p, INC_OUT_USE);
+					}
+					else {
+						find_user(p, INC_IN_USE);
+					}
 				}
 			} else {
 				char *res;




More information about the svn-commits mailing list