MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / stats_trans_rpl

Function stats_trans_rpl

modules/tm/t_stats.h:94–112  ·  view source on GitHub ↗

update the statistics regading the final replies sent to UAC side * A single transaction may generate multiple updates on different * statistics if (1) there is a retransmission of the final reply or * (2) there are multiple final replies (like multi 200 OK) */

Source from the content-addressed store, hash-verified

92 * (2) there are multiple final replies (like multi 200 OK)
93 */
94inline static void stats_trans_rpl( int code, int local )
95{
96 stat_var *numerical_stat;
97
98 if (tm_enable_stats) {
99 if (local)
100 update_stat( tm_loc_rpls, 1);
101 else
102 update_stat( tm_rld_rpls, 1);
103
104 numerical_stat =
105 get_stat_var_from_num_code(code, 1);
106
107 /* Increment the status code. */
108 if (numerical_stat != NULL)
109 update_stat(numerical_stat, 1);
110
111 }
112}
113
114inline static void stats_trans_new( int local ) {
115 if (tm_enable_stats) {

Callers 3

_reply_lightFunction · 0.85
relay_replyFunction · 0.85
local_replyFunction · 0.85

Calls 1

Tested by

no test coverage detected