From 93748ccb9c1e4d20023032c0dc09d9beb307dc9a Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 2 Jan 2008 22:04:47 +0000 Subject: [PATCH] pbx_dundi only needs a rdlock on the contexts list. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@96022 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- pbx/pbx_dundi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c index 4e35951f89..020e33050e 100644 --- a/pbx/pbx_dundi.c +++ b/pbx/pbx_dundi.c @@ -3644,7 +3644,7 @@ static void dundi_precache_full(void) 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))) {