Explorar el Código

siptrace: 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 hace 16 años
padre
commit
e8b35ce3d7
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      modules_k/siptrace/siptrace.c

+ 6 - 0
modules_k/siptrace/siptrace.c

@@ -190,6 +190,12 @@ static int mod_init(void)
 {
 	pv_spec_t avp_spec;
 
+	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);
 	siptrace_table.len = strlen(siptrace_table.s);
 	date_column.len = strlen(date_column.s);