diff options
Diffstat (limited to 'channels')
-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); |