Module: kamailio
Branch: master
Commit: 47c7dfb801d63cbfb29dbf234c06c2deef17fdc4
URL: https://github.com/kamailio/kamailio/commit/47c7dfb801d63cbfb29dbf234c06c2d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-01-10T23:16:33+01:00
uid_gflags: dedicated sections for rpc commands in docs
---
Modified: src/modules/uid_gflags/doc/xmlrpc.xml
---
Diff: https://github.com/kamailio/kamailio/commit/47c7dfb801d63cbfb29dbf234c06c2d…
Patch: https://github.com/kamailio/kamailio/commit/47c7dfb801d63cbfb29dbf234c06c2d…
---
diff --git a/src/modules/uid_gflags/doc/xmlrpc.xml b/src/modules/uid_gflags/doc/xmlrpc.xml
index 078ffd6..42fec0e 100644
--- a/src/modules/uid_gflags/doc/xmlrpc.xml
+++ b/src/modules/uid_gflags/doc/xmlrpc.xml
@@ -8,58 +8,59 @@
]>
-<section id="gflags.xmlrpc" xmlns:xi="http://www.w3.org/2001/XInclude">
- <sectioninfo>
- </sectioninfo>
-
- <title>RPC Interface</title>
+<section id="gflags.rpc" xmlns:xi="http://www.w3.org/2001/XInclude">
+ <title>RPC Commands</title>
<para>
The state of the global flags can be read and modified over the RPC
interface. This module implements the following RPC interface commands:
</para>
- <itemizedlist>
- <listitem>
+ <section id="uid_gflags.r.gflags.set">
+ <title>gflags.set</title>
<para>
<emphasis>gflags.set</emphasis> - Set the value of a flag to
1. The function accepts one parameter which is the number of
the flag to be set.
</para>
- </listitem>
- <listitem>
+ </section>
+ <section id="uid_gflags.r.gflags.reset">
+ <title>gflags.reset</title>
<para>
<emphasis>gflags.reset</emphasis> - Reset the value of a flag to
0. The function accepts one parameter which is the number of
the flag to be reset.
</para>
- </listitem>
- <listitem>
+ </section>
+ <section id="uid_gflags.r.gflags.is_set">
+ <title>gflags.is_set</title>
<para>
<emphasis>gflags.is_set</emphasis> - Return the status of a
flag. The FIFO function would return TRUE if the flag is set
and FALSE if it is not set. The only parameter of this function
is the number of the flag.
</para>
- </listitem>
- <listitem>
+ </section>
+ <section id="uid_gflags.r.gflags.flush">
+ <title>gflags.flush</title>
<para>
<emphasis>gflags.flush</emphasis> - Flush the state of global flags
into database.
</para>
- </listitem>
- <listitem>
+ </section>
+ <section id="uid_gflags.r.gflags.dump">
+ <title>gflags.dump</title>
<para>
- <emphasis>gflags.dump</emphasis> - Return the status of all flags. The
- value is TRUE if the flag is set and FALSE if the flag is not set. The
+ <emphasis>gflags.dump</emphasis> - Return the status of all flags. The
+ value is TRUE if the flag is set and FALSE if the flag is not set. The
function has no parameters.
</para>
- </listitem>
- <listitem>
+ </section>
+ <section id="uid_gflags.r.global.reload">
+ <title>global.reload</title>
<para>
- <emphasis>global.reload</emphasis> - Reload values from global_attrs
+ <emphasis>global.reload</emphasis> - Reload values from global_attrs
DB table. This function does not have any parameters. There is no return
- value on success.
+ value on success.
</para>
- </listitem>
- </itemizedlist>
+ </section>
</section>
- Please add more details on the dependency libraries.
- There are also a lot of spelling errors
- Document return value of function
- Event routes needs to have their own section (like other modules) and not only be mentioned in the introduction
- There is no real explanation of what the transformation actually does, please add some text
- The pseudo variable needs an explanation too, there is obviously some syntax to it with two arguments
Thank you for updating this in good time for the coming release!
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/905
I'm currently using version 4.4.2 and am having trouble trying to reset the statistics in the TMX module. According to its documentation, all statistics except “inuse_transactions” can be reset.
Checking the tmx_mod.c files for the statistics definition, I saw that the STAT_NO_RESET flag wasn't used for any statistic listed there (which seems odd because I think it should have been set for the inuse_transactions statistic):
`static stat_export_t mod_stats[] = {
{"UAS_transactions", STAT_IS_FUNC, (stat_var**)tmx_stats_uas_trans },
{"UAC_transactions", STAT_IS_FUNC, (stat_var**)tmx_stats_uac_trans },
{"2xx_transactions", STAT_IS_FUNC, (stat_var**)tmx_stats_trans_2xx },
{"3xx_transactions", STAT_IS_FUNC, (stat_var**)tmx_stats_trans_3xx },
{"4xx_transactions", STAT_IS_FUNC, (stat_var**)tmx_stats_trans_4xx },
{"5xx_transactions", STAT_IS_FUNC, (stat_var**)tmx_stats_trans_5xx },
{"6xx_transactions", STAT_IS_FUNC, (stat_var**)tmx_stats_trans_6xx },
{"inuse_transactions", STAT_IS_FUNC, (stat_var**)tmx_stats_trans_inuse },
{"active_transactions", STAT_IS_FUNC, (stat_var**)tmx_stats_trans_active},
{"rpl_received", STAT_IS_FUNC, (stat_var**)tmx_stats_rcv_rpls },
{"rpl_absorbed", STAT_IS_FUNC, (stat_var**)tmx_stats_abs_rpls },
{"rpl_generated", STAT_IS_FUNC, (stat_var**)tmx_stats_rld_loc_rpls},
{"rpl_relayed", STAT_IS_FUNC, (stat_var**)tmx_stats_rld_rcv_rpls},
{"rpl_sent", STAT_IS_FUNC, (stat_var**)tmx_stats_rld_tot_rpls},
{0, 0, 0}
};`
All seems ok, but when I try to reset the stats, the command simply doesn't work. The values remain unaltered. The clear command doesn't work either, it just returns the current values.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/820