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
This commit is contained in:
Kevin P. Fleming
2005-10-31 22:18:36 +00:00
parent a15a52208d
commit 3da6bf02c9

View File

@@ -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);