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

Function stats_trans_code

modules/tm/t_stats.h:70–87  ·  view source on GitHub ↗

update the statistics regading the final codes of the transactions * A single transaction will generate a single update on one of * these statistics */

Source from the content-addressed store, hash-verified

68 * these statistics
69 */
70inline static void stats_trans_code( int code)
71{
72 if (tm_enable_stats) {
73 if (code>=700) {
74 return;
75 } else if (code>=600) {
76 update_stat( tm_trans_6xx, 1);
77 } else if (code>=500) {
78 update_stat( tm_trans_5xx, 1);
79 } else if (code>=400) {
80 update_stat( tm_trans_4xx, 1);
81 } else if (code>=300) {
82 update_stat( tm_trans_3xx, 1);
83 } else if (code>=200) {
84 update_stat( tm_trans_2xx, 1);
85 }
86 }
87}
88
89/* update the statistics regading the final replies sent to UAC side
90 * A single transaction may generate multiple updates on different

Callers 1

put_on_waitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected