Răsfoiți Sursa

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 16 ani în urmă
părinte
comite
f9fe1066c2
1 a modificat fișierele cu 6 adăugiri și 0 ștergeri
  1. 6 0
      modules_k/xcap_client/xcap_client.c

+ 6 - 0
modules_k/xcap_client/xcap_client.c

@@ -120,6 +120,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;
+	}
+
 	xcap_db_url.len = xcap_db_url.s ? strlen(xcap_db_url.s) : 0;
 	xcap_db_table.len = xcap_db_table.s ? strlen(xcap_db_table.s) : 0;