{"action":"created","issue":{"url":"https://api.github.com/repos/kamailio/kamailio/issues/820","repository_url":"https://api.github.com/repos/kamailio/kamailio","labels_url":"https://api.github.com/repos/kamailio/kamailio/issues/820/labels{/name}","comments_url":"https://api.github.com/repos/kamailio/kamailio/issues/820/comments","events_url":"https://api.github.com/repos/kamailio/kamailio/issues/820/events","html_url":"https://github.com/kamailio/kamailio/issues/820","id":182356104,"number":820,"title":"TMX module statistics reset not working","user":{"login":"atilamtm","id":5912004,"avatar_url":"https://avatars.githubusercontent.com/u/5912004?v=3","gravatar_id":"","url":"https://api.github.com/users/atilamtm","html_url":"https://github.com/atilamtm","followers_url":"https://api.github.com/users/atilamtm/followers","following_url":"https://api.github.com/users/atilamtm/following{/other_user}","gists_url":"https://api.github.com/users/atilamtm/gists{/gist_id}","starred_url":"https://api.github.com/users/atilamtm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atilamtm/subscriptions","organizations_url":"https://api.github.com/users/atilamtm/orgs","repos_url":"https://api.github.com/users/atilamtm/repos","events_url":"https://api.github.com/users/atilamtm/events{/privacy}","received_events_url":"https://api.github.com/users/atilamtm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-11T19:45:52Z","updated_at":"2016-10-13T15:12:48Z","closed_at":null,"body":"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.\r\n\r\nChecking 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):\r\n\r\n`static stat_export_t mod_stats[] = {\r\n        {\"UAS_transactions\",    STAT_IS_FUNC, (stat_var**)tmx_stats_uas_trans   },\r\n        {\"UAC_transactions\",    STAT_IS_FUNC, (stat_var**)tmx_stats_uac_trans   },\r\n        {\"2xx_transactions\",    STAT_IS_FUNC, (stat_var**)tmx_stats_trans_2xx   },\r\n        {\"3xx_transactions\",    STAT_IS_FUNC, (stat_var**)tmx_stats_trans_3xx   },\r\n        {\"4xx_transactions\",    STAT_IS_FUNC, (stat_var**)tmx_stats_trans_4xx   },\r\n        {\"5xx_transactions\",    STAT_IS_FUNC, (stat_var**)tmx_stats_trans_5xx   },\r\n        {\"6xx_transactions\",    STAT_IS_FUNC, (stat_var**)tmx_stats_trans_6xx   },\r\n        {\"inuse_transactions\",  STAT_IS_FUNC, (stat_var**)tmx_stats_trans_inuse },\r\n        {\"active_transactions\", STAT_IS_FUNC, (stat_var**)tmx_stats_trans_active},\r\n        {\"rpl_received\",        STAT_IS_FUNC, (stat_var**)tmx_stats_rcv_rpls    },\r\n        {\"rpl_absorbed\",        STAT_IS_FUNC, (stat_var**)tmx_stats_abs_rpls    },\r\n        {\"rpl_generated\",       STAT_IS_FUNC, (stat_var**)tmx_stats_rld_loc_rpls},\r\n        {\"rpl_relayed\",         STAT_IS_FUNC, (stat_var**)tmx_stats_rld_rcv_rpls},\r\n        {\"rpl_sent\",            STAT_IS_FUNC, (stat_var**)tmx_stats_rld_tot_rpls},\r\n        {0, 0, 0}\r\n};`\r\n\r\n \r\nAll 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."},"comment":{"url":"https://api.github.com/repos/kamailio/kamailio/issues/comments/253543079","html_url":"https://github.com/kamailio/kamailio/issues/820#issuecomment-253543079","issue_url":"https://api.github.com/repos/kamailio/kamailio/issues/820","id":253543079,"user":{"login":"atilamtm","id":5912004,"avatar_url":"https://avatars.githubusercontent.com/u/5912004?v=3","gravatar_id":"","url":"https://api.github.com/users/atilamtm","html_url":"https://github.com/atilamtm","followers_url":"https://api.github.com/users/atilamtm/followers","following_url":"https://api.github.com/users/atilamtm/following{/other_user}","gists_url":"https://api.github.com/users/atilamtm/gists{/gist_id}","starred_url":"https://api.github.com/users/atilamtm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atilamtm/subscriptions","organizations_url":"https://api.github.com/users/atilamtm/orgs","repos_url":"https://api.github.com/users/atilamtm/repos","events_url":"https://api.github.com/users/atilamtm/events{/privacy}","received_events_url":"https://api.github.com/users/atilamtm/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T15:12:48Z","updated_at":"2016-10-13T15:12:48Z","body":"I tried:\r\nstats.clear_statistics all\r\nstats.reset_statistics all\r\nstats.clear_statistics tmx <field>\r\nstats.reset_statistics tmx <field>\r\n\r\nBut none of those commands worked."}}
{"actor":{"display_login":"atilamtm"}}