[svn-commits] mnicholson: branch 1.8 r332234 - /branches/1.8/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Aug 17 09:31:35 CDT 2011


Author: mnicholson
Date: Wed Aug 17 09:31:30 2011
New Revision: 332234

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=332234
Log:
print a warning instructing the user to disable storesipcause if we process 100
or more scheduler entries at a time

Modified:
    branches/1.8/channels/chan_sip.c

Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=332234&r1=332233&r2=332234
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Wed Aug 17 09:31:30 2011
@@ -25145,6 +25145,8 @@
 		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);
 	}
 




More information about the svn-commits mailing list