From: Kevin P. Fleming Date: Mon, 31 Oct 2005 22:18:36 +0000 (+0000) Subject: add some warning message for when chan_sip gets overloaded (issue #5530) X-Git-Tag: 1.2.0-beta2~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3da6bf02c933b661557e47c1949396fa315ae690;p=thirdparty%2Fasterisk.git add some warning message for when chan_sip gets overloaded (issue #5530) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6908 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 22d07e0804..e767d0a933 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -11199,9 +11199,14 @@ restartsearch: 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);