diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-31 22:18:36 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-31 22:18:36 +0000 |
commit | c722c4363361ba50153e8253be00315d4a79cf33 (patch) | |
tree | 2ff2340b28a01d67c6fcafb93269223d9255a14f /channels/chan_sip.c | |
parent | e70a6af68066b3bd891c3258df1a9882aa0fc2f9 (diff) |
add some warning message for when chan_sip gets overloaded (issue #5530)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6908 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rwxr-xr-x | channels/chan_sip.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 22d07e080..e767d0a93 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); |