]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
pbx_dundi only needs a rdlock on the contexts list.
authorRussell Bryant <russell@russellbryant.com>
Wed, 2 Jan 2008 22:04:47 +0000 (22:04 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 2 Jan 2008 22:04:47 +0000 (22:04 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@96022 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/pbx_dundi.c

index 4e35951f890b0f763c06374b5ce96a3ad440bc9c..020e33050e91b208aab74c8c3c8176d6fb976dd9 100644 (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))) {