2
0
Эх сурвалжийг харах

modules/matrix Fixed MI command not exported

Added missing register_mi_mod() call in mod_init.
Anca Vamanu 13 жил өмнө
parent
commit
b26f862322

+ 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;