Browse code

xcap_client: 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 11:45:21
Showing 1 changed files
... ...
@@ -120,6 +120,12 @@ struct module_exports exports= {
120 120
  */
121 121
 static int mod_init(void)
122 122
 {
123
+	if(register_mi_mod(exports.name, mi_cmds)!=0)
124
+	{
125
+		LM_ERR("failed to register MI commands\n");
126
+		return -1;
127
+	}
128
+
123 129
 	xcap_db_url.len = xcap_db_url.s ? strlen(xcap_db_url.s) : 0;
124 130
 	xcap_db_table.len = xcap_db_table.s ? strlen(xcap_db_table.s) : 0;
125 131