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
1.4
Russell Bryant 18 years ago
parent 4ee7457343
commit 93748ccb9c

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

Loading…
Cancel
Save