Browse Source

ratelimit: 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
74e3087026
1 changed files with 6 additions and 0 deletions
  1. 6 0
      modules_k/ratelimit/ratelimit.c

+ 6 - 0
modules_k/ratelimit/ratelimit.c

@@ -433,6 +433,12 @@ static int mod_init(void)
 {
 	int i;
 
+	if(register_mi_mod(exports.name, mi_cmds)!=0)
+	{
+		LM_ERR("failed to register MI commands\n");
+		return -1;
+	}
+
 	rl_lock = lock_alloc();
 	if (! rl_lock) {
 		LM_ERR("oom in lock_alloc()\n");