Преглед на файлове

cpl-c: 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 години
родител
ревизия
f07cb986b6
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      modules_k/cpl-c/cpl.c

+ 6 - 0
modules_k/cpl-c/cpl.c

@@ -233,6 +233,12 @@ static int cpl_init(void)
 	pv_spec_t avp_spec;
 	unsigned short avp_type;
 
+	if(register_mi_mod(exports.name, mi_cmds)!=0)
+	{
+		LM_ERR("failed to register MI commands\n");
+		return -1;
+	}
+
 	db_url.len = strlen(db_url.s);
 	db_table.len = strlen(db_table.s);
 	if (timer_avp.s) timer_avp.len = strlen(timer_avp.s);