Module: sip-router
Branch: master
Commit: 9bdaf1a820719b9431382cfa79cc0af36f0d9a3b
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9bdaf1a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Apr 21 12:46:44 2009 +0200
dispatcher: 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(...)
---
modules_k/dispatcher/dispatcher.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules_k/dispatcher/dispatcher.c b/modules_k/dispatcher/dispatcher.c
index 93799ba..fdd73ca 100644
--- a/modules_k/dispatcher/dispatcher.c
+++ b/modules_k/dispatcher/dispatcher.c
@@ -204,6 +204,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;
+ }
+
if (dst_avp_param.s)
dst_avp_param.len = strlen(dst_avp_param.s);
if (grp_avp_param.s)