[asterisk-commits] russell: branch 1.4 r96022 - /branches/1.4/pbx/pbx_dundi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 2 16:04:48 CST 2008


Author: russell
Date: Wed Jan  2 16:04:47 2008
New Revision: 96022

URL: http://svn.digium.com/view/asterisk?view=rev&rev=96022
Log:
pbx_dundi only needs a rdlock on the contexts list.

Modified:
    branches/1.4/pbx/pbx_dundi.c

Modified: branches/1.4/pbx/pbx_dundi.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/pbx/pbx_dundi.c?view=diff&rev=96022&r1=96021&r2=96022
==============================================================================
--- branches/1.4/pbx/pbx_dundi.c (original)
+++ branches/1.4/pbx/pbx_dundi.c Wed Jan  2 16:04:47 2008
@@ -3644,7 +3644,7 @@
 
 	AST_LIST_TRAVERSE(&mappings, cur, list) {
 		ast_log(LOG_NOTICE, "Should precache context '%s'\n", cur->dcontext);
-		ast_lock_contexts();
+		ast_rdlock_contexts();
 		con = ast_walk_contexts(NULL);
 		while (con) {
 			if (!strcasecmp(cur->lcontext, ast_get_context_name(con))) {




More information about the asterisk-commits mailing list