2
0
Эх сурвалжийг харах

carrierroute: 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 жил өмнө
parent
commit
04f66b6921

+ 6 - 0
modules/carrierroute/carrierroute.c

@@ -157,6 +157,12 @@ struct module_exports exports = {
 static int mod_init(void) {
 	struct stat fs;
 
+	if(register_mi_mod(exports.name, mi_cmds)!=0)
+	{
+		LM_ERR("failed to register MI commands\n");
+		return -1;
+	}
+
 	subscriber_table.len = strlen(subscriber_table.s);
 	subscriber_username_col.len = strlen(subscriber_username_col.s);
 	subscriber_domain_col.len = strlen(subscriber_domain_col.s);