Browse code

modules/matrix Fixed MI command not exported

Added missing register_mi_mod() call in mod_init.
(cherry picked from commit b26f862322ad311e3c42d899f72eaa1fb665b755)

Anca Vamanu authored on 20/07/2012 13:59:52
Showing 1 changed files
... ...
@@ -584,6 +584,12 @@ static int mod_init(void)
584 584
 {
585 585
 	matrix_db_vars();
586 586
 
587
+	if(register_mi_mod(exports.name, mi_cmds)!=0)
588
+	{
589
+		LM_ERR("failed to register MI commands\n");
590
+		return -1;
591
+	}
592
+
587 593
 	if (init_shmlock() != 0) return -1;
588 594
 	if (matrix_db_init() != 0) return -1;
589 595
 	if (matrix_db_open() != 0) return -1;