فهرست منبع

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

+ 6 - 0
modules_k/perl/perl.c

@@ -320,6 +320,12 @@ static int mod_init(void) {
 
 	int ret = 0;
 
+	if(register_mi_mod(exports.name, mi_cmds)!=0)
+	{
+		LM_ERR("failed to register MI commands\n");
+		return -1;
+	}
+
 	if (!filename) {
 		LM_ERR("insufficient module parameters. Module not loaded.\n");
 		return -1;