Module: kamailio Branch: master Commit: 9bd5d2da7f92f0a45962b5adfce56d02defdecbd URL: https://github.com/kamailio/kamailio/commit/9bd5d2da7f92f0a45962b5adfce56d02...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2016-01-22T19:29:58+01:00
stats: rpc command renamed to statsc.report
---
Modified: modules/statsc/statsc_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/9bd5d2da7f92f0a45962b5adfce56d02... Patch: https://github.com/kamailio/kamailio/commit/9bd5d2da7f92f0a45962b5adfce56d02...
---
diff --git a/modules/statsc/statsc_mod.c b/modules/statsc/statsc_mod.c index f9ee2fa..d746e1a 100644 --- a/modules/statsc/statsc_mod.c +++ b/modules/statsc/statsc_mod.c @@ -304,7 +304,7 @@ int statsc_track_param(modparam_t type, void* val) /** * */ -static const char* statsc_rpc_exec_doc[2] = { +static const char* statsc_rpc_report_doc[2] = { "Statistics collector control command", 0 }; @@ -312,7 +312,7 @@ static const char* statsc_rpc_exec_doc[2] = { /** * */ -static void statsc_rpc_exec(rpc_t* rpc, void* ctx) +static void statsc_rpc_report(rpc_t* rpc, void* ctx) { statsc_nmap_t *sm = NULL; str cname; @@ -458,7 +458,7 @@ static void statsc_rpc_exec(rpc_t* rpc, void* ctx) * */ rpc_export_t statsc_rpc[] = { - {"statsc.exec", statsc_rpc_exec, statsc_rpc_exec_doc, 0}, + {"statsc.report", statsc_rpc_report, statsc_rpc_report_doc, 0}, {0, 0, 0, 0} };
@@ -467,8 +467,7 @@ rpc_export_t statsc_rpc[] = { */ int statsc_init_rpc(void) { - if (rpc_register_array(statsc_rpc)!=0) - { + if (rpc_register_array(statsc_rpc)!=0) { LM_ERR("failed to register RPC commands\n"); return -1; }