[Asterisk-cvs] asterisk/channels chan_sip.c,1.902,1.903

kpfleming kpfleming
Mon Oct 31 17:26:32 CST 2005


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

Modified Files:
	chan_sip.c 
Log Message:
add some warning message for when chan_sip gets overloaded (issue #5530)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.902
retrieving revision 1.903
diff -u -d -r1.902 -r1.903
--- chan_sip.c	31 Oct 2005 22:08:41 -0000	1.902
+++ chan_sip.c	31 Oct 2005 22:18:36 -0000	1.903
@@ -11199,9 +11199,14 @@
 		if (fastrestart)
 			res = 1;
 		res = ast_io_wait(io, res);
+		if (res > 20)
+			ast_log(LOG_WARNING, "chan_sip: ast_io_wait ran %d all at once\n", res);
 		ast_mutex_lock(&monlock);
-		if (res >= 0) 
-			ast_sched_runq(sched);
+		if (res >= 0)  {
+			res = ast_sched_runq(sched);
+			if (res >= 20)
+				ast_log(LOG_WARNING, "chan_sip: ast_sched_runq ran %d all at once\n", res);
+		}
 
 		/* needs work to send mwi to realtime peers */
 		time(&t);




More information about the svn-commits mailing list