mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-04 05:15:22 +00:00 
			
		
		
		
	issue #5794
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7156 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		@@ -1,3 +1,7 @@
 | 
			
		||||
2005-11-20  Russell Bryant <russell@digium.com>
 | 
			
		||||
 | 
			
		||||
	* channels/chan_sip.c channels/chan_iax2.c: Change warning messages about the number of scheduled events happening all at once to debug messages. (issue #5794)
 | 
			
		||||
 | 
			
		||||
2005-11-20  Josh Roberson <josh@asteriasgi.com>
 | 
			
		||||
 | 
			
		||||
	* pbx/pbx_spool.c: Fix crash in spooler if set/setvar declared incorrectly. (issue #5806)
 | 
			
		||||
 
 | 
			
		||||
@@ -7956,7 +7956,7 @@ static void *network_thread(void *ignore)
 | 
			
		||||
		}
 | 
			
		||||
		ast_mutex_unlock(&iaxq.lock);
 | 
			
		||||
		if (count >= 20)
 | 
			
		||||
			ast_log(LOG_WARNING, "chan_iax2: Sent %d queued outbound frames all at once\n", count);
 | 
			
		||||
			ast_log(LOG_DEBUG, "chan_iax2: Sent %d queued outbound frames all at once\n", count);
 | 
			
		||||
 | 
			
		||||
		/* Now do the IO, and run scheduled tasks */
 | 
			
		||||
		res = ast_sched_wait(sched);
 | 
			
		||||
@@ -7965,10 +7965,10 @@ static void *network_thread(void *ignore)
 | 
			
		||||
		res = ast_io_wait(io, res);
 | 
			
		||||
		if (res >= 0) {
 | 
			
		||||
			if (res >= 20)
 | 
			
		||||
				ast_log(LOG_WARNING, "chan_iax2: ast_io_wait ran %d I/Os all at once\n", res);
 | 
			
		||||
				ast_log(LOG_DEBUG, "chan_iax2: ast_io_wait ran %d I/Os all at once\n", res);
 | 
			
		||||
			count = ast_sched_runq(sched);
 | 
			
		||||
			if (count >= 20)
 | 
			
		||||
				ast_log(LOG_WARNING, "chan_iax2: ast_sched_runq ran %d scheduled tasks all at once\n", count);
 | 
			
		||||
				ast_log(LOG_DEBUG, "chan_iax2: ast_sched_runq ran %d scheduled tasks all at once\n", count);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	return NULL;
 | 
			
		||||
 
 | 
			
		||||
@@ -11245,12 +11245,12 @@ restartsearch:
 | 
			
		||||
			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_log(LOG_DEBUG, "chan_sip: ast_io_wait ran %d all at once\n", res);
 | 
			
		||||
		ast_mutex_lock(&monlock);
 | 
			
		||||
		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);
 | 
			
		||||
				ast_log(LOG_DEBUG, "chan_sip: ast_sched_runq ran %d all at once\n", res);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		/* needs work to send mwi to realtime peers */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user