From: Matthew Nicholson Date: Wed, 17 Aug 2011 14:31:30 +0000 (+0000) Subject: print a warning instructing the user to disable storesipcause if we process 100 X-Git-Tag: 1.8.7.0-rc1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8345854458a974db9e4bb2f8b86af9149317c6f2;p=thirdparty%2Fasterisk.git print a warning instructing the user to disable storesipcause if we process 100 or more scheduler entries at a time AST-580 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@332234 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index c94cec8a97..e98564e15e 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -25145,6 +25145,8 @@ static void *do_monitor(void *data) res = ast_sched_runq(sched); if (res >= 20) ast_debug(1, "chan_sip: ast_sched_runq ran %d all at once\n", res); + if (global_store_sip_cause && res >= 100) + ast_log(LOG_WARNING, "scheduler delays detected, setting 'storesipcause' to 'no' in %s will improve performance\n", config); ast_mutex_unlock(&monlock); }