mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user