ソースを参照

presence_xml: 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 年 前
コミット
9d5361ebc1
1 ファイル変更6 行追加0 行削除
  1. 6 0
      modules_k/presence_xml/presence_xml.c

+ 6 - 0
modules_k/presence_xml/presence_xml.c

@@ -142,6 +142,12 @@ static int mod_init(void)
 	bind_presence_t bind_presence;
 	presence_api_t pres;
 		
+	if(register_mi_mod(exports.name, mi_cmds)!=0)
+	{
+		LM_ERR("failed to register MI commands\n");
+		return -1;
+	}
+
 	db_url.len = db_url.s ? strlen(db_url.s) : 0;
 	LM_DBG("db_url=%s/%d/%p\n",ZSW(db_url.s),db_url.len, db_url.s);
 	xcap_table.len = xcap_table.s ? strlen(xcap_table.s) : 0;