Browse code

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 authored on 21/04/2009 11:44:52
Showing 1 changed files
... ...
@@ -550,6 +550,12 @@ struct mi_root * mi_reload_blacklist(struct mi_root* cmd, void* param)
550 550
 
551 551
 static int mod_init(void)
552 552
 {
553
+	if(register_mi_mod(exports.name, mi_cmds)!=0)
554
+	{
555
+		LM_ERR("failed to register MI commands\n");
556
+		return -1;
557
+	}
558
+
553 559
 	userblacklist_db_vars();
554 560
 
555 561
 	if (userblacklist_db_init() != 0) return -1;