blob: e05b70c8a23910819ea2d5cba460d5db69114112 [file] [log] [blame]
Philipp Maierc66ab2c2020-06-02 20:55:34 +02001#pragma once
2
3/* NOTE: When adding counters, also the dump_ratectr_* routines in vty.c must be updated. */
4
5struct mgcp_ratectr_global {
6 /* Rate counter group which contains stats for generic MGCP events. */
7 struct rate_ctr_group *mgcp_general_ctr_group;
8};
9
10struct mgcp_ratectr_trunk {
11 /* Rate counter group which contains stats for processed CRCX commands. */
12 struct rate_ctr_group *mgcp_crcx_ctr_group;
13 /* Rate counter group which contains stats for processed MDCX commands. */
14 struct rate_ctr_group *mgcp_mdcx_ctr_group;
15 /* Rate counter group which contains stats for processed DLCX commands. */
16 struct rate_ctr_group *mgcp_dlcx_ctr_group;
17 /* Rate counter group which aggregates stats of individual RTP connections. */
18 struct rate_ctr_group *all_rtp_conn_stats;
19};
20
21int mgcp_ratectr_global_alloc(void *ctx, struct mgcp_ratectr_global *ratectr);
22int mgcp_ratectr_trunk_alloc(void *ctx, struct mgcp_ratectr_trunk *ratectr);