فهرست منبع

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

+ 6 - 1
modules_k/regex/regex_mod.c

@@ -176,9 +176,14 @@ struct module_exports exports = {
  */
 static int mod_init(void)
 {
-	
 	LM_INFO("initializing module...\n");
 	
+	if(register_mi_mod(exports.name, mi_cmds)!=0)
+	{
+		LM_ERR("failed to register MI commands\n");
+		return -1;
+	}
+
 	/* Group matching feature */
 	if (file == NULL) {
 		LM_NOTICE("'file' parameter is not set, group matching disabled\n");