43d90c48b1456152ca599d59d16d396a4b8ec7ce
[sip-router] / modules / tm / t_stats.h
1 /*
2  *
3  * $Id$
4  *
5  */
6
7 #ifndef _T_STATS_H
8 #define _T_STATS_H
9
10
11 extern struct t_stats *cur_stats, *acc_stats;
12
13 struct t_stats {
14         /* number of server transactions */
15         unsigned int transactions;
16         /* number of UAC transactions (part of transactions) */
17         unsigned int client_transactions;
18         /* number of transactions in wait state */
19         unsigned int waiting;
20         /* number of transactions which completed with this status */
21         unsigned int completed_3xx, completed_4xx, completed_5xx, 
22                 completed_6xx, completed_2xx;
23         unsigned int replied_localy;
24 };
25
26 int init_tm_stats(void);
27
28 #endif