Browse Source

userblacklist: export MI commands

- MI commands exported from mod_init
- MI API is now a library (lib/kmi), SR core does not call anymore
  register_mi_mod(...)
Daniel-Constantin Mierla 16 years ago
parent
commit
571bc6e4fe
1 changed files with 6 additions and 0 deletions
  1. 6 0
      modules_k/userblacklist/userblacklist.c

+ 6 - 0
modules_k/userblacklist/userblacklist.c

@@ -550,6 +550,12 @@ struct mi_root * mi_reload_blacklist(struct mi_root* cmd, void* param)
 
 
 static int mod_init(void)
 static int mod_init(void)
 {
 {
+	if(register_mi_mod(exports.name, mi_cmds)!=0)
+	{
+		LM_ERR("failed to register MI commands\n");
+		return -1;
+	}
+
 	userblacklist_db_vars();
 	userblacklist_db_vars();
 
 
 	if (userblacklist_db_init() != 0) return -1;
 	if (userblacklist_db_init() != 0) return -1;