Consider the simple timeout scenario: ``` Messages INVITE ----------> 1 407 <---------- 1 ACK ----------> 1 INVITE ----------> 1 100 <---------- 1 180 <---------- 0 183 <---------- 0 408 <---------- 1 ACK ----------> 1 ``` In the current implementation, running _kamctl fifo get_statistics tmx:_ on a fresh kamailio prints: ``` ... tmx:local_replies = 2 tmx:received_replies = 1 tmx:relayed_replies = 18446744073709551615 ``` After this patch: ``` ... tmx:local_replies = 2 tmx:received_replies = 1 tmx:relayed_replies = 0 ``` Fix the above by counting the relayed_total and substracting the relayed_local. You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/420
-- Commit Summary --
* tmx: Fix relayed_replies counter
-- File Changes --
M modules/tm/t_reply.c (5) M modules/tm/t_stats.c (1) M modules/tm/t_stats.h (6) M modules/tmx/tmx_mod.c (7)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/420.patch https://github.com/kamailio/kamailio/pull/420.diff
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/420