Przeglądaj źródła

imc: 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 lat temu
rodzic
commit
700e6f7dd1
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      modules_k/imc/imc.c

+ 6 - 0
modules_k/imc/imc.c

@@ -336,6 +336,12 @@ error:
 
 static int mod_init(void)
 {
+	if(register_mi_mod(exports.name, mi_cmds)!=0)
+	{
+		LM_ERR("failed to register MI commands\n");
+		return -1;
+	}
+
 	if(imc_hash_size <= 0)
 	{
 		LM_ERR("invalid hash size\n");