loader: Add dependency fields to module structures.
[asterisk/asterisk.git] / res / res_pjsip_history.c
index ed374d6..40d26d5 100644 (file)
@@ -1280,7 +1280,7 @@ static char *pjsip_show_history(struct ast_cli_entry *e, int cmd, struct ast_cli
                }
                entry = ao2_bump(AST_VECTOR_GET(vec, 0));
                if (vec == &vector_history) {
-                       ast_mutex_lock(&history_lock);
+                       ast_mutex_unlock(&history_lock);
                }
        }
 
@@ -1403,4 +1403,5 @@ AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_LOAD_ORDER, "PJSIP History",
                .load = load_module,
                .unload = unload_module,
                .load_pri = AST_MODPRI_APP_DEPEND,
+               .requires = "res_pjsip",
        );