Răsfoiți Sursa

modules_k/statistics: update_stat() can now be called from ANY_ROUTE

Peter Dunkley 13 ani în urmă
părinte
comite
f7fd425060

+ 1 - 2
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
 ...

+ 1 - 2
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>

+ 1 - 1
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}