Module: sip-router
Branch: master
Commit: 51c1fe92ea71db3e418e146fe48fe9c93f18181f
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=51c1fe9…
Author: Elena-Ramona Modroiu <ramona(a)rosdev.ro>
Committer: Elena-Ramona Modroiu <ramona(a)rosdev.ro>
Date: Thu Apr 23 13:53:31 2009 +0300
siptrace(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/siptrace/siptrace.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/modules_k/siptrace/siptrace.c b/modules_k/siptrace/siptrace.c
index c7c9e8a..421f6b5 100644
--- a/modules_k/siptrace/siptrace.c
+++ b/modules_k/siptrace/siptrace.c
@@ -190,6 +190,14 @@ static int mod_init(void)
{
pv_spec_t avp_spec;
+#ifdef STATISTICS
+ /* register statistics */
+ if (register_module_stats( exports.name, siptrace_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");