Jelajahi Sumber

usrloc: 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 tahun lalu
induk
melakukan
212e75b5e4
1 mengubah file dengan 6 tambahan dan 0 penghapusan
  1. 6 0
      modules_k/usrloc/ul_mod.c

+ 6 - 0
modules_k/usrloc/ul_mod.c

@@ -214,6 +214,12 @@ struct module_exports exports = {
  */
 static int mod_init(void)
 {
+	if(register_mi_mod(exports.name, mi_cmds)!=0)
+	{
+		LM_ERR("failed to register MI commands\n");
+		return -1;
+	}
+
 	/* Compute the lengths of string parameters */
 	user_col.len = strlen(user_col.s);
 	domain_col.len = strlen(domain_col.s);