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
This commit is contained in:
Russell Bryant
2008-01-02 22:04:47 +00:00
parent 4ee7457343
commit 93748ccb9c

View File

@@ -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))) {