فهرست منبع

pv: 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 سال پیش
والد
کامیت
ba94f02fd0
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      modules_k/pv/pv.c

+ 6 - 0
modules_k/pv/pv.c

@@ -388,6 +388,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;
+	}
+
 	if(init_shvars()<0)
 	{
 		LM_ERR("init shvars failed\n");