Browse code

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 authored on 21/04/2009 12:39:09
Showing 1 changed files
... ...
@@ -157,6 +157,12 @@ struct module_exports exports = {
157 157
 static int mod_init(void) {
158 158
 	struct stat fs;
159 159
 
160
+	if(register_mi_mod(exports.name, mi_cmds)!=0)
161
+	{
162
+		LM_ERR("failed to register MI commands\n");
163
+		return -1;
164
+	}
165
+
160 166
 	subscriber_table.len = strlen(subscriber_table.s);
161 167
 	subscriber_username_col.len = strlen(subscriber_username_col.s);
162 168
 	subscriber_domain_col.len = strlen(subscriber_domain_col.s);