[SR-Dev] git:master: usrloc(k): register exported statistics from mod_init
Elena-Ramona Modroiu
ramona at rosdev.ro
Thu Apr 23 13:23:29 CEST 2009
Module: sip-router
Branch: master
Commit: 29494fc266fc36959e0ef560e3d05bd4e827d644
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=29494fc266fc36959e0ef560e3d05bd4e827d644
Author: Elena-Ramona Modroiu <ramona at rosdev.ro>
Committer: Elena-Ramona Modroiu <ramona at rosdev.ro>
Date: Thu Apr 23 14:00:08 2009 +0300
usrloc(k): register exported statistics from mod_init
- k statistics API is now in kcore library, SR core doesn't register
stats from module_exports
---
modules_k/usrloc/ul_mod.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/modules_k/usrloc/ul_mod.c b/modules_k/usrloc/ul_mod.c
index 8e6e1c2..ff82b73 100644
--- a/modules_k/usrloc/ul_mod.c
+++ b/modules_k/usrloc/ul_mod.c
@@ -214,6 +214,14 @@ struct module_exports exports = {
*/
static int mod_init(void)
{
+#ifdef STATISTICS
+ /* register statistics */
+ if (register_module_stats( exports.name, mod_stats)!=0 ) {
+ LM_ERR("failed to register core statistics\n");
+ return -1;
+ }
+#endif
+
if(register_mi_mod(exports.name, mi_cmds)!=0)
{
LM_ERR("failed to register MI commands\n");
More information about the sr-dev
mailing list