<p>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.</p>
<p>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):</p>
<p><code>static stat_export_t mod_stats[] = {<br>
{"UAS_transactions", STAT_IS_FUNC, (stat_var**)tmx_stats_uas_trans },<br>
{"UAC_transactions", STAT_IS_FUNC, (stat_var**)tmx_stats_uac_trans },<br>
{"2xx_transactions", STAT_IS_FUNC, (stat_var**)tmx_stats_trans_2xx },<br>
{"3xx_transactions", STAT_IS_FUNC, (stat_var**)tmx_stats_trans_3xx },<br>
{"4xx_transactions", STAT_IS_FUNC, (stat_var**)tmx_stats_trans_4xx },<br>
{"5xx_transactions", STAT_IS_FUNC, (stat_var**)tmx_stats_trans_5xx },<br>
{"6xx_transactions", STAT_IS_FUNC, (stat_var**)tmx_stats_trans_6xx },<br>
{"inuse_transactions", STAT_IS_FUNC, (stat_var**)tmx_stats_trans_inuse },<br>
{"active_transactions", STAT_IS_FUNC, (stat_var**)tmx_stats_trans_active},<br>
{"rpl_received", STAT_IS_FUNC, (stat_var**)tmx_stats_rcv_rpls },<br>
{"rpl_absorbed", STAT_IS_FUNC, (stat_var**)tmx_stats_abs_rpls },<br>
{"rpl_generated", STAT_IS_FUNC, (stat_var**)tmx_stats_rld_loc_rpls},<br>
{"rpl_relayed", STAT_IS_FUNC, (stat_var**)tmx_stats_rld_rcv_rpls},<br>
{"rpl_sent", STAT_IS_FUNC, (stat_var**)tmx_stats_rld_tot_rpls},<br>
{0, 0, 0}<br>
};</code></p>
<p>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.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/820">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZdaGjp8H_kLDw_ZbUhOsNPxldTfyks5qy-dzgaJpZM4KUBtp">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZWTLD9ixaLdIe13w5A1Mz9fHA9HCks5qy-dzgaJpZM4KUBtp.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/kamailio/kamailio/issues/820"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"TMX module statistics reset not working (#820)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/820"}}}</script>