Module: sip-router
Branch: master
Commit: f7fd425060a5b4d76fca787ba5938d2658f0e64a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f7fd425…
Author: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Date: Tue Mar 6 17:58:05 2012 +0000
modules_k/statistics: update_stat() can now be called from ANY_ROUTE
---
modules_k/statistics/README | 3 +--
modules_k/statistics/doc/statistics_admin.xml | 3 +--
modules_k/statistics/statistics.c | 2 +-
3 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/modules_k/statistics/README b/modules_k/statistics/README
index 1bb8659..0554add 100644
--- a/modules_k/statistics/README
+++ b/modules_k/statistics/README
@@ -109,8 +109,7 @@ modparam("statistics", "variable",
"active_calls/no_reset")
pseudovariable);
* value - value to update with; it may be also negative.
- This function can be used from REQUEST_ROUTE, BRANCH_ROUTE,
- FAILURE_ROUTE and ONREPLY_ROUTE.
+ This function can be used from ANY_ROUTE.
Example 1.2. update_stat usage
...
diff --git a/modules_k/statistics/doc/statistics_admin.xml
b/modules_k/statistics/doc/statistics_admin.xml
index ffbe622..fb003f6 100644
--- a/modules_k/statistics/doc/statistics_admin.xml
+++ b/modules_k/statistics/doc/statistics_admin.xml
@@ -105,8 +105,7 @@ modparam("statistics", "variable",
"active_calls/no_reset")
</listitem>
</itemizedlist>
<para>
- This function can be used from REQUEST_ROUTE, BRANCH_ROUTE,
- FAILURE_ROUTE and ONREPLY_ROUTE.
+ This function can be used from ANY_ROUTE.
</para>
<example>
<title><function>update_stat</function> usage</title>
diff --git a/modules_k/statistics/statistics.c b/modules_k/statistics/statistics.c
index 9cf0bcb..7aabe50 100644
--- a/modules_k/statistics/statistics.c
+++ b/modules_k/statistics/statistics.c
@@ -56,7 +56,7 @@ struct stat_or_pv {
static cmd_export_t cmds[]={
{"update_stat", (cmd_function)w_update_stat, 2, fixup_stat, 0,
- REQUEST_ROUTE|BRANCH_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"reset_stat", (cmd_function)w_reset_stat, 1, fixup_stat, 0,
REQUEST_ROUTE|BRANCH_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE|LOCAL_ROUTE},
{0,0,0,0,0,0}