[SR-Dev] git:master: dialog(k): register exported statistics from mod_init
Elena-Ramona Modroiu
ramona at rosdev.ro
Thu Apr 23 13:23:28 CEST 2009
Module: sip-router
Branch: master
Commit: 3fc1c9220318757a31ba073aed6e68bea977623f
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3fc1c9220318757a31ba073aed6e68bea977623f
Author: Elena-Ramona Modroiu <ramona at rosdev.ro>
Committer: Elena-Ramona Modroiu <ramona at rosdev.ro>
Date: Thu Apr 23 13:42:51 2009 +0300
dialog(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/dialog/dialog.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/modules_k/dialog/dialog.c b/modules_k/dialog/dialog.c
index d3c9b3a..1e6c5de 100644
--- a/modules_k/dialog/dialog.c
+++ b/modules_k/dialog/dialog.c
@@ -362,6 +362,15 @@ static int mod_init(void)
{
unsigned int n;
+
+#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