]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
print a warning instructing the user to disable storesipcause if we process 100
authorMatthew Nicholson <mnicholson@digium.com>
Wed, 17 Aug 2011 14:31:30 +0000 (14:31 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Wed, 17 Aug 2011 14:31:30 +0000 (14:31 +0000)
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

channels/chan_sip.c

index c94cec8a97e141062a897bb0d1ddc20ebeaa8198..e98564e15e7a7453006efbe4d427bea1a0bd8727 100644 (file)
@@ -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);
        }