Index: main/pbx.c =================================================================== --- main/pbx.c (revision 279504) +++ main/pbx.c (working copy) @@ -492,7 +492,7 @@ }; static struct ast_context *contexts; -AST_RWLOCK_DEFINE_STATIC(conlock); /*!< Lock for the ast_context list */ +AST_MUTEX_DEFINE_STATIC(conlock); /*!< Lock for the ast_context list */ static AST_LIST_HEAD_STATIC(apps, ast_app); @@ -6193,22 +6193,22 @@ */ int ast_lock_contexts() { - return ast_rwlock_wrlock(&conlock); + return ast_mutex_lock(&conlock); } int ast_rdlock_contexts(void) { - return ast_rwlock_rdlock(&conlock); + return ast_mutex_lock(&conlock); } int ast_wrlock_contexts(void) { - return ast_rwlock_wrlock(&conlock); + return ast_mutex_lock(&conlock); } int ast_unlock_contexts() { - return ast_rwlock_unlock(&conlock); + return ast_mutex_unlock(&conlock); } /*