Browse Source

pua_mi: 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 năm trước cách đây
mục cha
commit
adf4a91716
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      modules_k/pua_mi/pua_mi.c

+ 6 - 0
modules_k/pua_mi/pua_mi.c

@@ -87,6 +87,12 @@ static int mod_init(void)
 	LM_DBG("...\n");
 	bind_pua_t bind_pua;
 	
+	if(register_mi_mod(exports.name, mi_cmds)!=0)
+	{
+		LM_ERR("failed to register MI commands\n");
+		return -1;
+	}
+
 	bind_pua= (bind_pua_t)find_export("bind_pua", 1,0);
 	if (!bind_pua)
 	{