Module: sip-router
Branch: 3.2
Commit: c963bd1eeece75d9cb5a8d8f7bc286bf55d2eb53
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c963bd1…
Author: Anca Vamanu <anca.vamanu(a)1and1.ro>
Committer: Anca Vamanu <anca.vamanu(a)1and1.ro>
Date: Fri Jul 20 16:59:52 2012 +0300
modules/matrix Fixed MI command not exported
Added missing register_mi_mod() call in mod_init.
(cherry picked from commit b26f862322ad311e3c42d899f72eaa1fb665b755)
---
modules/matrix/matrix.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/matrix/matrix.c b/modules/matrix/matrix.c
index 67d117e..d9fb9cf 100644
--- a/modules/matrix/matrix.c
+++ b/modules/matrix/matrix.c
@@ -584,6 +584,12 @@ static int mod_init(void)
{
matrix_db_vars();
+ if(register_mi_mod(exports.name, mi_cmds)!=0)
+ {
+ LM_ERR("failed to register MI commands\n");
+ return -1;
+ }
+
if (init_shmlock() != 0) return -1;
if (matrix_db_init() != 0) return -1;
if (matrix_db_open() != 0) return -1;