Index: chan_sip.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v retrieving revision 1.898 diff -u -r1.898 chan_sip.c --- chan_sip.c 27 Oct 2005 02:19:37 -0000 1.898 +++ chan_sip.c 28 Oct 2005 04:39:34 -0000 @@ -11180,9 +11183,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);