浏览代码

modules/matrix Fixed MI command not exported

Added missing register_mi_mod() call in mod_init.
Anca Vamanu 13 年之前
父节点
当前提交
b26f862322
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      modules/matrix/matrix.c

+ 6 - 0
modules/matrix/matrix.c

@@ -584,6 +584,12 @@ static int mod_init(void)
 {
 	matrix_db_vars();
 
+	if(register_mi_mod(exports.name, mi_cmds)!=0)
+	{
+		LM_ERR("failed to register MI commands\n");
+		return -1;
+	}
+
 	if (init_shmlock() != 0) return -1;
 	if (matrix_db_init() != 0) return -1;
 	if (matrix_db_open() != 0) return -1;